Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ceronman
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
ceronman
7mo ago
1. Credit cards are not that common. People usually have debit cards. Those can sometimes be used online but they're not widely accepted. My debit card is Maestro, which is not accepted in many places. 2. Even with my Mastercard credit
2.
▲
by
ceronman
8mo ago
A switch or pattern matching approach is useful, but not practical for some cases. For example, there are cases where you are interested in only a single kind of node in the three, for those cases the Visitor pattern is very helpful, while
3.
▲
by
ceronman
8mo ago
The parsers in crafting interpreters do not use the visitor pattern. The visitor pattern is used when you already have a tree structure or similar. The parser is what gives you such tree structure, the AST. When you have this structure, you
4.
▲
by
ceronman
8mo ago
The visitor pattern is very common in programming language implementations. I've seen it in the Rust compiler, in the Java Compiler, in the Go compiler and in the Roslyn C# compiler. Also used extensively in JetBrains' IDEs. What
5.
▲
by
ceronman
11mo ago
The elderly, the kids, the teenagers, the adults. Screen addiction is a pandemic. The biggest one humanity has ever seen. The richest, most powerful organizations are spending billions every month to make it more addictive, to reach more pe
6.
▲
by
ceronman
1y ago
I used to agree with this, but then I realized that you can use trace points (aka non-suspending break points) in a debugger. These cover all the use cases of print statements with a few extra advantages: - You can add new traces, or modify
7.
▲
by
ceronman
1y ago
I don't know why you're getting down voted. But you are right. Rust type system solves this in a very nice way. Maybe to clarify we can show how to do the exact same example shown with Clojure multi-methods, but in Rust: str
8.
▲
by
ceronman
1y ago
> That's not the expression problem. To me it looks like this is exactly the expression problem. The expression problem is not about adding methods to a trait, it's about adding an operation to a set of types. In this case ever
9.
▲
by
ceronman
1y ago
Why would the the orphan rule be a problem here? The orphan rule only disallow impls if both the trait and the type are defined outside the crate. But in this example if you are adding a new type (struct) or a new operation (trait), well
10.
▲
by
ceronman
1y ago
Very cool. I think Wasm is a nice instruction set, but I agree that its structured control flow is a bit weird and also the lack of instructions to handle the memory stack. But it's much more cleaner than something like x86_64. If you
11.
▲
by
ceronman
1y ago
China dominance in manufacturing, at least in tech, it's not based on cheap labor, but rather in skills, tooling and supply chain advantages. Tim Cook explains it better that I could ever do: https://www.youtube.com/wat
12.
▲
by
ceronman
1y ago
This looks really cool. I especially like the "Keep your progress, whatever happens" feature. The product looks polished and I definitely see myself using it. My only concern is: Are they taking VC money? Is this going to be enshi
13.
▲
by
ceronman
1y ago
- The Legend of Zelda: Ocarina of Time: 32 MB
14.
▲
by
ceronman
1y ago
I bet that if you take those 278k lines of code and rewrite them in simple Rust, without using generics, or macros, and using a single crate, without dependencies, you could achieve very similar compile times. The Rust compiler can be very
15.
▲
by
ceronman
1y ago
Hi! That sounds very interesting, where can I find information about this workshop? I am interested in participating.
16.
▲
by
ceronman
2y ago
It was. But he had 9 minutes vs more than an hour for Gukesh. The entire match has been Ding defending miraculously, I thought it was a matter of time before he eventually failed. The fact that it happened on the last moves of the last game
17.
▲
Is doom scrolling rotting our brains?
(theguardian.com)
7 points
by
ceronman
2y ago
|
2 comments
18.
▲
New Kindle e-readers no longer appear on computers
(goodereader.com)
4 points
by
ceronman
2y ago
|
1 comments
19.
▲
by
ceronman
2y ago
x86 is certainly not dead, and I don't think it will anytime soon, but they are still behind Apple M3 in terms of performance per watt. And M4 is about to arrive. I'm a bit disappointed because I really want more competition for A
20.
▲
by
ceronman
2y ago
Take it with a grain of salt. Other reviewers such as Hardware Canucks [1] have mentioned that they have not been able to get such long hours. Their numbers are closer to 15 hours. [1] https://www.youtube.com/watch?v=CxAMD6i
21.
▲
by
ceronman
2y ago
YouTube Premium was already quite expensive. They increased my family plan from €17.99 to €25.99. This is almost a 45% hike! Compare to Netflix which is €13.99. I only pay this to skip ads, but a lot of content creators still have their own
22.
▲
by
ceronman
2y ago
It's possible to write some pretty unreadable code with Clojure, just like it's possible in any programming language. I can tell you that this code is very easy to read if you are familiar with Clojure. In fact, this example is lo
23.
▲
by
ceronman
2y ago
Nice article. A couple of years ago I also implemented Lox in Rust. And I faced the exact same issues that the author describes here, and I also ended up with a very similar implementation. I also wrote a post about it: https://c
24.
▲
by
ceronman
2y ago
I was talking about a monoculture specifically in the systems programming area. Java, Perl, PhP, Python, Ruby, JavaScript, C#, Go, these got popular but they use garbage collection and have limitations for systems programming. C and C++ wer
25.
▲
by
ceronman
2y ago
The author seems very anxious because Rust is getting traction and they don't like Rust. They're afraid that one day Rust will become a "monoculture" and everything will be written in it. I like Rust, but I consider this
26.
▲
It's not them, it's us: the real reason teens are 'addicted' to video games
(theguardian.com)
8 points
by
ceronman
2y ago
|
1 comments
27.
▲
by
ceronman
2y ago
Windows used to be cool! As a kid I remember the Dangerous Creatures CD [1] came with a custom theme for Windows 95. It would change all the icons to cool animal stuff. The "My Computer" icon would change to a frog, the Recycle bi
28.
▲
by
ceronman
2y ago
> The result is a ~300 KiB statically linked executable, that requires no libraries, and uses a constant ~1 MiB of resident heap memory (allocated at the start, to hold the assets). That’s roughly a thousand times smaller in size than Mi
29.
▲
by
ceronman
2y ago
Very interesting! They say they went from a stack-based IR, which provided faster translation but slow execution time to a register-based one, which has slightly slower translations, but faster execution time. This in contrast with other ru
30.
▲
by
ceronman
2y ago
In no way I intended to be dismissive of you work or the RISC-V architecture. I apologize if my words could be interpreted in that way. I actually think that RISCV is a really cool architecture, mostly because it is open. I would love to se
More ›