Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
RX14
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
RX14
8y ago
Yep, exactly like that.
62.
▲
by
RX14
8y ago
No, each request is handled concurrently in the same thread using evented IO. You spawn fibers, which are the analogue to go's goroutines, and many of those run in one thread. Just like nodejs (without callbacks/promises/asyn
63.
▲
by
RX14
8y ago
Probably because they loved the language. Humans are humans, and not everything is made with a rational financial decision. If you use the language, and like ruby and static typing, you'll find that there's a lot to love.
64.
▲
by
RX14
8y ago
You can't use rails with crystal, the keyword is "rails-like".
65.
▲
by
RX14
8y ago
While elixir's syntax is inspired by ruby, the semantics are vastly different. That change in semantics is really good for elixir, because it means it can take advantage of the unique properties of the erlang vm, but it's worth no
66.
▲
by
RX14
8y ago
Crystal has had concurrency, almost identical to goroutines, for a long time. It's just as if you're always running with GOMAXPROCS=1. And you can still get some excellent performance on IO bound workloads with a single core. The
67.
▲
by
RX14
8y ago
Crystal's multi threading model will eventually be exactly the same as go's, not ruby's, but yes its not done yet.
68.
▲
by
RX14
8y ago
It's not official, largely because it's a big hack.
69.
▲
by
RX14
8y ago
All the goroutines share the heap, so go does support shared memory, it's just you're encouraged to use channels instead because they're easier to get right.
70.
▲
by
RX14
8y ago
But crystal support concurrency, and it supports it very well. That's why it achieves about 100,000 HTTP requests per second per core, you just can't get that kind of performance on a single core without using evented IO.
71.
▲
by
RX14
8y ago
Crystal is still fairly early in it's development. We have plenty of time available to make the breaking changes required to make windows a true first class citizen. I'm putting a lot of thought into how to do this.
72.
▲
by
RX14
8y ago
Manas is a tiny company without the resources to spare a single developer. The money to pay for the single developer who is working full-time on crystal comes entirely from bountysource and other donations: https://salt.bountysou
73.
▲
by
RX14
8y ago
Crystal will eventually have go-style parallelism as well as go-style concurrency. It's a hard thing to implement, and we don't have the resources of google (in fact we have very little resources at all) so it's taking time.
74.
▲
by
RX14
8y ago
it's not very very soon - it'll be more than 2 months - but it is coming.
75.
▲
by
RX14
8y ago
Every project has it's warts, long running feature requests, and it's bugs so minor nobody's gotten around to fixing them. Some projects decide to hide those by closing the issues, we generally keep them open, because they ar
76.
▲
by
RX14
8y ago
I think you're getting confused by concurrency and parallelism. Crystal is concurrency-first and uses the same concurrency model as go. Expanding that to run fibers on multiple cores is just an implementation detail. A difficult implem
77.
▲
by
RX14
8y ago
Crystal has the foundation for parallelism, it has the same concurrency model as go. Adding parallelism will happen before 1.0. Adding parallelism to crystal is easy, it's already been done in a branch and it works fine. The problem is
78.
▲
by
RX14
8y ago
No, it's not because it's compiled, it's because of the global type inference algorithm (which is very different from any existing type inference algorithm). Crystal used to have a repl but it was removed because it was buggy
79.
▲
by
RX14
8y ago
Crystal 0.25.0 has just been released, you can check out the new features here: https://crystal-lang.org/2018/06/15/crystal-0.25.0-released....
80.
▲
by
RX14
8y ago
The number of open issues is a bad correlation for how well a project is managed: rust has nearly 4000 open issues. Most of these are either feature requests we'll get to some day, or minor bugs. Crystal development is proceding nicely
81.
▲
by
RX14
8y ago
I think the best lens to view this blog post through is shown in the quote far down in the article: > I plan to only use this language in my personal projects I think this is more a blog post about what language the author finds most int
82.
▲
by
RX14
8y ago
Wsl is getting scarily close to Linux performance in benchmarks and improving fast. I don't see extend being too far away...
83.
▲
by
RX14
8y ago
"the inbox" refers to a HTTP endpoint required by the activitypub spec. He's just saying that pixelfed can't receive messages from other AP instances, so he disabled it sending messages to other AP instances too, to avoi
84.
▲
by
RX14
8y ago
no, it only implements ostatus, not activitypub
85.
▲
by
RX14
8y ago
To be fair to bcache, that bug wasn't in the bcache code. It was in core kernel bio code and could easily have effected other subsystems.
86.
▲
Bcachefs is being upstreamed into the linux kernel
(lwn.net)
6 points
by
RX14
8y ago
|
0 comments
87.
▲
by
RX14
8y ago
Yeah, crystal has one of those (and it's about to gain exhaustiveness checking), so I didn't literally always mean `if/else` :)
88.
▲
by
RX14
8y ago
Pattern matching, at least in functional languages, is mainly used both as control flow to match on the type of arguments, and also to destructure data structures. In flow typing you replace the control flow part of pattern matching with `i
89.
▲
by
RX14
8y ago
I've always heard good things about gandi
90.
▲
by
RX14
8y ago
I'm pretty sure the article implies this is for user-facing applications where the user would manually extract it once to a place of their choosing then run it from there. I think you're missing the point of the whole article.
More ›