Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
linkdd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
241.
▲
Astmaker – A DSL in Rust for programming language designers
(david-delassus.medium.com)
89 points
by
linkdd
3y ago
|
33 comments
242.
▲
by
linkdd
3y ago
Thank you. I ended up contacting the author who gave me permission quite quickly :)
243.
▲
by
linkdd
3y ago
I consider "no response" to be a negative answer by default :)
244.
▲
by
linkdd
3y ago
I sent a mail an hour ago to the author of the article. There is no "answer I don't like", if I'm not allowed to do it, then so be it. Please don't assume things when you don't know the person.
245.
▲
Ask HN: What is the license of GitHub's blog and The README project?
31 points
by
linkdd
3y ago
|
25 comments
246.
▲
by
linkdd
3y ago
> ... so you can try the same post again. Don’t overdo it. I would say max 2 or 3 times. I don't even understand how that's possible. Every time I tried to post a link that was already posted (by me or someone else), it redirec
247.
▲
by
linkdd
3y ago
The problem is that the code generation tools does not let you learn the different parts. On top of that, all the documentation around just tell you to use the codegen tools and unless you go look at the API reference (or the source code di
248.
▲
by
linkdd
3y ago
The thing I don't like with Elixir/Phoenix is the code generators. I hate code generators with a passion. They obfuscate the inner workings of the library. Have you tried to find a tutorial which do not use the Mix task "phx.
249.
▲
by
linkdd
3y ago
> How many platforms can realistically promise this? I love the OTP framework. So much that I suffer from "erlang envy" in every other language I'm using. Which is why I made this a couple years ago: https://lin
250.
▲
by
linkdd
3y ago
The "let it crash" philosophy has a misleading name. It's not "don't handle errors", but it's "delegate the error handling to a component dedicated to this". With OTP, you have what we call a &qu
251.
▲
by
linkdd
3y ago
Meh, I compile with -Werror :)
252.
▲
by
linkdd
3y ago
It's missing the Erlang/Elixir pattern of returning a tuple `{:ok, T}` or `{:error, E}`, where we can then use pattern matching, or `with` expressions, etc... To be fair, it is very similar to a `Result<T, E>` type, which is
253.
▲
EnTT and ImGui, or how to reconcile ECS and GUIs?
(david-delassus.medium.com)
2 points
by
linkdd
3y ago
|
0 comments
254.
▲
by
linkdd
4y ago
The problem with .map().collect()? is that it does not short-circuit. Consider: for item in iterable.iter() { item.foo()?; } You will exit the loop as soon as there is an error. But with .map().collect(), you iterate over the w
255.
▲
by
linkdd
4y ago
"I want to learn C++" -- "Try Godot"
256.
▲
Procedural map generation – Part 2: A new hope with cellular automata and GPT4
(david-delassus.medium.com)
1 points
by
linkdd
4y ago
|
0 comments
257.
▲
by
linkdd
4y ago
It's kinda the same for me, our product solved a problem that was not enough annoying to people for them to consider buying it, so we never had the product market fit, and never managed to sell a single license. The company still exist
258.
▲
by
linkdd
4y ago
> Individual engineers prove over and over again that they can start multi-million dollar businesses Beware of survivor bias, for every successful business, there might be a 1000 failed ones.
259.
▲
A new milestone for Letlang, my language targeting Rust – Effect Handlers
(david-delassus.medium.com)
1 points
by
linkdd
4y ago
|
0 comments
260.
▲
Today I learned: JavaScript and bitwise operations on floats
(david-delassus.medium.com)
2 points
by
linkdd
4y ago
|
1 comments
261.
▲
by
linkdd
4y ago
> and cars magically disappear Not with the Traffic President mod which allows you to disable cars despawning and adds to the challenge of building a good transit system.
262.
▲
by
linkdd
4y ago
After the translation of the source code to AST, I have walk through the AST to validate the code as much as possible. The generated Rust code should be valid Rust code that compiles with no error. I only have 2 exceptions to that rule: ---
263.
▲
by
linkdd
4y ago
This makes implementing the runtime (I use tokio for the concurrency model) faaaaaaar easier. I also get the borrow checker, move semantics, etc... that I would have to implement myself if I were to target LLVM IR. That question has been as
264.
▲
by
linkdd
4y ago
Well, the article is called "a simple Lisp", not "a fully featured Lisp". It's a demo, not a compliant implementation. You may be interested by https://github.com/brundonsmith/rust_lisp though
265.
▲
by
linkdd
4y ago
Author here, the article is more about how Rust and its ecosystem are nice tools for language designers rather than the beauty of Lisp. The crates listed in that article are the ones I use for my compiler: https://letlang.dev Li
266.
▲
by
linkdd
4y ago
Complementary video supporting my "fast is irrelevant" argument: How slow is JavaScript really? Javascript vs C++ [Data Structures & Optimization] https://www.youtube.com/watch?v=WLwTlC1R2sY
267.
▲
by
linkdd
4y ago
Done
268.
▲
by
linkdd
4y ago
"Faster than C", I saw people write C code slower than a Python equivalent. So I have to admit, I don't know what it means for a language to be fast, because it depends on the algorithm being implemented and the developer who
269.
▲
Writing a simple Lisp interpreter in Rust
(david-delassus.medium.com)
94 points
by
linkdd
4y ago
|
19 comments
270.
▲
by
linkdd
4y ago
In the real world, there are no "good guys vs bad guys", no "white/black", it's all shades of grey, recognizing this is not "victim blaming". But let's avoid flamewars irrelevant to the discussio
More ›