[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why is no one acknowledging Crystal?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 46
Thread images: 3

File: image.png (68KB, 1280x717px) Image search: [Google]
image.png
68KB, 1280x717px
It's one of the best languages to arise in this decade.

>syntax style of Ruby yet faster
>Faster than golang and nodejs
>Tons of web frameworks
>Many libraries, SFML bindings, OpenGL bindings, database libraries and more
>comfy

Why aren't you using it?
>>
>ruby like syntax
/thread
>>
>>60797088
I'd use it over node.js any day!
Just look at how comfy it is
# A very basic HTTP server
require "http/server"

server = HTTP::Server.new(8080) do |context|
context.response.content_type = "text/plain"
context.response.print "Hello world, got #{context.request.path}!"
end

puts "Listening on http://127.0.0.1:8080"
server.listen

With better the speed too!
>>
>>60797060
So basically if you know Ruby you know Crystal? Just Crystal is better?
>>
>>60797227
Crystal has some of it's syntax inspired from ruby, there's a lot of different features in Crystal I've seen
>>
What can I build with it that Ruby can't?
>>
>>60797060
>test(s) used for comparison not mentioned
You'll need more than this and some fancy words to convince me you're not a shill.
>>
>>60797261
Here's where I got my info from of it's speed
https://www.stefanwille.com/2015/05/redis-clients-crystal-vs-ruby-vs-c-vs-go/
>>
>>60797246
I don't know Ruby myself but this seems to cover it
https://github.com/crystal-lang/crystal/wiki/Crystal-for-Rubyists
>>
File: wdegfr.jpg (12KB, 166x103px) Image search: [Google]
wdegfr.jpg
12KB, 166x103px
>>60797139
># A very basic HTTP server
>require "http/server"
i wanna die
>>
>>60797315
The macro feature seems very nice, but the lack of operators such as "&&" and "||" is a downside for me. It really does look like Ruby with another name, I wonder what Matz thinks about this language
>>
>>60797139
wow that looks like aids
>>
>>60797555
What? it has "&&' and "||"
scroll down it's there
https://crystal-lang.org/docs/syntax_and_semantics/and.html
>>
>>60797606
Oops, I read it wrong, it doesn't support "and" and "or" yet
>>
>>60797139
I do not know Crystal nor Ruby very well, but judging from your example, Python has already covered it very well, at least in terms of syntax and modules/libraries.

So the question is, why should someone use Crystal instead of pure Ruby or Python? Is speed the only advantage or is there something more?
>>
>>60797756
Speed. It's also compiled if that's your thing
>>
Oh look! Another hipster language.
>>
No windows compatibility
No official benchmarks, it just SAYS its "fast as C"
>>
>>60797756
>Python
>Web
Worse than javashit cancer, you should fucking hang yourself
>>
>>60797320
Literally every language requires you to import the HTTP package, there's no reason to include that in the stdlib
>>
>>60798084
except languages where you're expected to actually write the http server and can't just import it and call it yours, you fuckin goon.
>>
>>60798244
>If you don't write it from scratch it's a bad language!
ok.
>>
>>60797060
I don't like intersection types.
>>
>>60798244
>I want to waste time reinventing mature established standards
This is not how you get anything productive done. And if you really want to, you're free to, it's not like this prevents you from writing your own.
>>
>>60798258
hey guys watch me do a backflip
*backflip*
Why aren't you clapping?
>>
>>60798424
>Look at those faggots driving cars made in a factory
>Real men build their own cars!
>Of their own design!
>From scratch!
>Who cares if the internal combustion engine has been used for over a century!
>I'm gunna use an EXTERNAL combustion engine!
>>
Probably because it's still in fucking Alpha, and I don't tend to hear about it outside of /g/.

If you want a userbase:
1. Get a stable release
2. Get libraries
3. Advertise like a mad cunt.
>>
>>60798449
>Check out this cool HTTP server I made in C
>#include "http.c"
>int main() {
>do_http()
>}
>>
>>60798702
>He didnt write a standardized netcode implementation himself!
>HE'S A HACK!
>KILL HIM
There's literally nothing with importing HTTP libraries
>>
>>60797060
Fortran is faster
>>
>>60797060
>Crystal
>real language
pick one
>>
>>60798711
You're not demonstrating anything with "do_http()"
>>
>Why is no one acknowledging Crystal?

Because it has no working gc (yet?). But other than that, crystal is quite nice.

There were things before it, notably Mirah.
>>
>>60797060
>0.18.7
On a scale of 1 to 10 how ready for production would you say this thing is?
>>
https://pastebin.com/raw/fnCKMER7
rate my http server /g/
>>
>>60797320
Perfectly acceptable. Unless you're writing in machine code you're a fucking hypocrite.
>>
>>60797060
shit syntax, my man
>>60797088
/thread
>>
As another alt-Ruby language, what do you think about Elixir?

It gives us tons of new features: FP/pattern match/OTP.
>>
>>60797060
> comparing performance against Ruby to prove a point

meme someplace ell
>>
>no windows support
fucking dropped.
>>
>>60800953
BASED CRYSTAL
>>
>>60798033
>being this aggressive because of a simple question
It's a proven fact that Python can handle it very well, like it or not.

You also should note that I'm not endorsing the use of Python instead of Crystal (although there's nothing wrong with both of them), just stating the fact that Python can do the example just as the same and asking why does one should use Crystal instead.
>>
Pajeet, please, stop advertising your C translator piece of shit that doesn't even work outside of the unix world
>>
File: animeisdumb.jpg (81KB, 658x300px) Image search: [Google]
animeisdumb.jpg
81KB, 658x300px
>>60803645
>Pajeet, please, stop advertising your C translator piece of shit that doesn't even work outside of the unix world
>doesn't even work outside of the unix world
>outside of the unix world
And what world do you live in, Anonymous?
Because that world's days are numbered.
I bet you even watched anime while going in debt to attend college.
>>
>>60798424
*claps*
>>
>>60797060
>it's 20 times faster than Ruby
>sounds good except Ruby is 150 times slower than Javascript
That's why.
Thread posts: 46
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.