Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ragnese
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
541.
▲
by
ragnese
6y ago
> Americans drink really watered down coffee. In Brazil we would call it chafé (coffee tea). Do we? How do Brazilians prepare a cup of coffee? Is the process different or do you just use a lot more grounds per amount of water?
542.
▲
by
ragnese
6y ago
Right, but there was some frustration expressed in the discussions (IIRC) because you can't break backwards compat. So you can't just pass in an allocator to functions that might allocate. I don't have any skin in the game an
543.
▲
by
ragnese
6y ago
Thank goodness. I didn't realize that the unsoundness was now contained to unstable features.
544.
▲
by
ragnese
6y ago
Yeah. Rust's standard library already has cruft (e.g., std::error::Error deprecations), and some potential sore spots (no custom allocators, Pin/Promise unsoundness: https://internals.rust-lang.org/t/unsoundne
545.
▲
by
ragnese
6y ago
> edit: to those who're saying ripgrep is more than grep. First, I know. Second, wouldn't it be great if someone could rewrite ripgrep in C? Now I'm really curious to find out the code-size complexity of all the ripgrep fe
546.
▲
by
ragnese
6y ago
I currently do it and have no regrets, but I don't require a lot of fancy stuff that you might find the Java ecosystem. If you don't have any need for concurrent sharing of data and never really miss having destructors in a manage
547.
▲
by
ragnese
6y ago
Good question. I've only seen cursory information about Dart, so I can't really have an opinion. I'd be willing to try it, though. From a quick web search, it looks like JavaScript interop isn't totally frictionless, whi
548.
▲
by
ragnese
6y ago
Yikes. You weren't kidding about doing everything wrong. Just out of more curiosity, can you comment on the idiosyncratic code style? I saw in your other post that it was written in PHP 4. So that means it did have access to classes an
549.
▲
by
ragnese
6y ago
And, probably more importantly, what kind of application was it and was it using a popular major framework (e.g., a web backend in Spring)?
550.
▲
by
ragnese
6y ago
How could it break? If `Boolean` (which is basically just a casting function, right?) changed its signature? That does sound very unlikely.
551.
▲
by
ragnese
6y ago
I agree and will take it a step further: if you didn't use JavaScript, you would not have these problems.
552.
▲
by
ragnese
6y ago
Yeah, TypeScript sounds great, but I quickly became a skeptic. JavaScript is a lost cause. There cannot be a JavaScript++ that will be reasonably safe. I'm not a frontend guy, but I truly don't know what I'd do with a fronten
553.
▲
by
ragnese
6y ago
I've been bitten by it. I'm used to statically typed languages that allow calling HOF's with a function reference. If the signature matches, there's no reason to wrap it in a lambda. So I did the same, reflexively in a
554.
▲
by
ragnese
6y ago
Personally, I'm not a fan of TypeScript anyway. JavaScript is a lost cause to me. I'm not a full time JS Dev, so every time I have to touch one of our Node projects at work, I mentally prepare myself for very slow dev speed (ironi
555.
▲
by
ragnese
6y ago
To be clear, you mean "literally and kind of change to a function signature [...]", right?
556.
▲
by
ragnese
6y ago
Probably comparing it to MacPorts, which does allow multiple versions of the same packages to be installed simultaneously.
557.
▲
by
ragnese
6y ago
What does OpenRC do for stopping services before shutdown? Does it just have a shorter wait time by default?
558.
▲
by
ragnese
6y ago
The Android thing was a bit of a tangent. I did know that it doesn't use X. The point was intended to be that Linux is becoming more and more lacking as a personal computing platform, relative to the gains elsewhere in the space. The d
559.
▲
by
ragnese
6y ago
I always found systemd to be fine (I'm not a sysadmin, just prefer Linux on my PCs). PulseAudio did have some growing pains, though. I don't remember them exactly, but I remember having to tinker way too much to get apps to work t
560.
▲
by
ragnese
6y ago
> IMO the only way for this to actually work is to have the language/compiler force "exceptions" to be part of function signature. I am not aware of any mainstream language which does this. Java. Also Swift. Rust also coun
561.
▲
by
ragnese
6y ago
I'm asking for specifics because I actually can't think of any apps where "undo" would make sense, but is missing. I'm probably not creative enough. But that's why I asked for examples. These are the things I t
562.
▲
by
ragnese
6y ago
Everything you said is correct. But, there are surely cases where even though rewriting everything from scratch almost never works, the status quo doesn't work either . I'm afraid that's where the Linux desktop is today. Lin
563.
▲
by
ragnese
6y ago
Can you elaborate? Undo/redo in what contexts? What applications had undo/redo besides for editing things?
564.
▲
by
ragnese
6y ago
For sure. I didn't mean to imply that this isn't a legitimately hard problem for language designers. Just being a smart ass. I do think that checked and unchecked exceptions are the right way. The issues that people have with Java
565.
▲
by
ragnese
6y ago
What if we designed a system where there are two kinds of failures that can be returned? One where the caller is forced to address it by the compiler, and one that is transparent to the caller, but can be caught and addressed by anyone in t
566.
▲
by
ragnese
6y ago
But where is the line? Is the stack size specific by any languages? Many language's compilers will eliminate variable assignments as an optimization. Since I can view a stack trace in some of those languages, then would that make that
567.
▲
by
ragnese
6y ago
Yes. You generally just should not write a recursive function in a language without TCO/TCE.
568.
▲
by
ragnese
6y ago
I don't know if that counts... I can read the 1s and 0s of a compiled binary in any language. Does that mean nothing a C compiler does is an optimization? I wouldn't consider the memory layout of something like a stack to be part
569.
▲
by
ragnese
6y ago
I wish that Rust would follow the lead of some languages in allowing one to explicitly mark a function as recursive. (Not exactly the same as TCO, I understand, but related) I understand the argument against doing TCO in a low level languag
570.
▲
by
ragnese
6y ago
It's funny. Rust is a strange beast. It's a low level language. But, in some specific ways, it's more expressive than a lot of popular high level languages: traits are sometimes nicer than interfaces, strong concurrency guara
More ›