Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maattdd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
maattdd
5y ago
Typesafe SQL, typesafe template (or just useful template, not the ones in the stdlib which sucks tremendously), model metaprogramming, etc...
62.
▲
by
maattdd
5y ago
Google Cloud revenue is only up 30% YoY, which seems really low considering the marketing and the focus on it (and the growth of the competitors).
63.
▲
by
maattdd
5y ago
Yes, and the fanciness part is done by another crate actually: https://github.com/zesterer/ariadne .
64.
▲
by
maattdd
5y ago
It's not specifically on OCaml.
65.
▲
by
maattdd
5y ago
"Stay hungry, stay foolish"
66.
▲
by
maattdd
5y ago
On VSCode, I use the Gremlins extension which highlight all those suspicious characters. https://github.com/nhoizey/vscode-gremlins
67.
▲
by
maattdd
5y ago
Going from Nim to C is clearly lowering the language. The general agreed definition of a compiler is going from a certain level to a lower level.
68.
▲
by
maattdd
5y ago
The added typing on the stdlib can break stuff, but it's really minor and in most cases it makes visible a potential bug in your program.
69.
▲
by
maattdd
5y ago
TIL another project started by Fabrice Bellard (well for him it's just a side project for the real project JSLinux).
70.
▲
by
maattdd
5y ago
The last published package on opam is 12.0.1 https://opam.ocaml.org/packages/llvm/
71.
▲
by
maattdd
5y ago
I like Crystal for this, the standard library has support for the most common stuff (HTTP server, JSON/XML parsing, logging, templating), installing additional packages is easy and the build step also. Nice bonus: the resulting app i
72.
▲
by
maattdd
5y ago
It's true if you don't have any other files such as HTML templates or CSS or whatever; which is fairly rare (don't even get my started on stuff like Packer which embed binary content inside the binary executable...). Nowadays
73.
▲
by
maattdd
5y ago
Performance
74.
▲
by
maattdd
5y ago
There is, for example https://bellard.org/quickjs/
75.
▲
by
maattdd
5y ago
I use AWS Cloudfront on top of my static blog to get basic analytics (and some edge caching). It is almost free.
76.
▲
by
maattdd
5y ago
Can you elaborate ?
77.
▲
by
maattdd
5y ago
"Slow" can be subjective indeed, but not "slower".
78.
▲
by
maattdd
5y ago
Thanks for the nitpick, I should have been more precise and write move value from memory to abstract register otherwise it is indeed confusing. I will fix the article and mention your comment.
79.
▲
Exploring Clang/LLVM optimization on programming horror
(blog.matthieud.me)
362 points
by
maattdd
5y ago
|
68 comments
80.
▲
by
maattdd
5y ago
I don't think I've ever heard that. Ocaml performance is surprisingly very predictable.
81.
▲
by
maattdd
5y ago
It doesn't scale well to triple dispatch, quadruple dispatch...
82.
▲
by
maattdd
5y ago
I'm not a native speaker, but shouldn't it be "33% increased performance" or "133% performance" instead ?
83.
▲
by
maattdd
5y ago
You mean parallelism ? JS has good concurrency support (event, async..)
84.
▲
by
maattdd
5y ago
Maybe get out of your place sometimes?
85.
▲
by
maattdd
6y ago
You also need to handle the event loop yourself ; otherwise you end up using a language which is sub-Crystal.
86.
▲
by
maattdd
6y ago
I have no idea how you ended up with this completely wrong statement. Rust is closer to C++ replacement, and Crystal and Go are something else (GCed to begin with).
87.
▲
by
maattdd
6y ago
It's possible, just not officially supported nor straightforward. You need to run the GC yourself and all this kind of stuff. https://stackoverflow.com/questions/32916684/can-a-crystal-l... https://
88.
▲
by
maattdd
6y ago
Unfortunately no, it need some runtime (libevent, boehm gc) which is hard (impossible?) to integrate inside a shared lib.
89.
▲
by
maattdd
6y ago
Crystal is one of my most productive language for small project web oriented (Slack bot): a cleanup Ruby with added benefits (performance, type safety, null safety, proper concurrency). My only complaints: * compilation speed * type
90.
▲
by
maattdd
6y ago
Crystal doesn't use significant whitespace (like Ruby).
More ›