Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ssokolow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
ssokolow
3y ago
Give https://manishearth.github.io/blog/2017/01/15/breaking-our-l... a read and, ideally, the other things it mentions like https://eev.ee/blog/2015/09/12/dark-corners
32.
▲
by
ssokolow
3y ago
> I didn't know that unicode changes the definition of grapheme in backwards incompatible fashion annually, so software which works by grapheme count is probably inconsistent with other software using a different version of the stan
33.
▲
by
ssokolow
3y ago
*nod* Rust was given as one of the examples and Rust's .len() behaviour is chosen based on three very reasonable concerns: 1. They want the String type to be available to embedded use-cases, where it's not reasonable to require th
34.
▲
by
ssokolow
3y ago
I agree... you need discipline either way. It's just easier to wind up not realizing that you don't need to spend so much time on up-front optimization with Rust to produce a perfectly serviceable program. (Especially if you hav
35.
▲
by
ssokolow
3y ago
While it's not a study, https://blog.polybdenum.com/2023/03/05/fixing-the-next-10-00... gives a real-world example of a bug in Go Rust would have prevented. Also, bear in mind that it's not just Rus
36.
▲
by
ssokolow
3y ago
1. Remember that Rust takes a Minimum Viable Product approach to 1.0 releases. There are experiments in adding stack traces in third-party error-handling crates that could eventually lead to additions to the standard library, but we've
37.
▲
by
ssokolow
3y ago
They already need a workflow for it. pyca/cryptography uses Rust for some of its ASN.1 parsing now. There was a huge kerfuffle about it. https://blog.yossarian.net/2021/02/28/Weird-architectures-we...
38.
▲
by
ssokolow
3y ago
By building up design habits that lead to things passing the borrow checker on your first try.
39.
▲
by
ssokolow
3y ago
> In fact for me the only benefits of Go are single binary and startup time. I hope you mean "compilation time" or "time to first prototype". My experience has been that, if a Rust binary doesn't start instantly,
40.
▲
by
ssokolow
3y ago
I think they're all natural niches, because Rust's performance and ability to tightly control memory allocation are over-promoted and the strength of the type system as a means of ensuring correctness at compile time is underpromo
41.
▲
by
ssokolow
3y ago
That's actually one of my reasons for writing in Rust whenever possible. The Rust ecosystem has a broad collection of tooling for using Rust to extend other languages, so there's minimal chance something I wrote in Rust will have
42.
▲
by
ssokolow
3y ago
Yeah. The presence or absence of compiled extensions is a HUGE factor. Implementation design is also huge. For example: Geeqie is an image viewer/manager. It's a fork of the abandoned GQView and is apparently made in the image of
43.
▲
by
ssokolow
3y ago
Odd. I wish Rust had Django's ecosystem so I could do more Rust web stuff, and I do use Rust for "shell scripts" and basic utility tasks, not for the performance, but for the compile-time guarantees. I'd much rather
44.
▲
by
ssokolow
3y ago
*nod* Aside from the obvious (compile-time guarantees beyond MyPy's ability to offer), the lack of pattern matching and an accompanying ecosystem that evolved in its presence is my number one discomfort when writing Python for things l
45.
▲
by
ssokolow
3y ago
Java's ecosystem is moving away from checked exceptions because their "bolted onto the return type as a sidecar" design doesn't compose well with functional-style APIs. Monadic error handling (Rust's Option<T>
46.
▲
by
ssokolow
3y ago
It's been said many times that Go feels like a language written by people who stopped paying attention to programming language research after the 1990s, as well as that it was written by people who look at C and think the only things t
47.
▲
by
ssokolow
3y ago
> Go is more verbose than Java This. It's Rust, not Go, that has replaced Python for me in any use-case more than a few lines long where the ecosystem is ready (i.e. when I don't need a GUI (PyQt/PySide), SQL (SQLAlchemy+A
48.
▲
by
ssokolow
3y ago
*nod* Rust's "make costs explicit" design does have a bit of a problem with encouraging premature optimization where something like Python would encourage sloppiness.
49.
▲
by
ssokolow
3y ago
The other response, from kibwen acting with the moderator badging enabled, is more nuanced: https://www.reddit.com/r/rust/comments/13tsmht/jt_why_i_left... Do read the full thing, but it roughly boils do
50.
▲
by
ssokolow
3y ago
According to the discussion in /r/rust/, one person falsely claimed that they were speaking on behalf of Rust team consensus and the RustConf representative they talked to got burned by taking their word for it rather than as
51.
▲
by
ssokolow
3y ago
Live Action Role Play. Basically taking the transformation that made sports into sports computer games and running it in reverse on computer RPGs so you get people in costume in the park throwing colored balls at each other to "cast sp
52.
▲
by
ssokolow
3y ago
Not to mention the fact that construction can be messy for other reasons. I present a bit from George Carlin's routine on airline announcements: "Here's one they just made up: Near miss. When two planes almost collide, they c
53.
▲
by
ssokolow
3y ago
An important distinction on their moderation style: --- It's not censorship, it's lack of resources. We're volunteers. When it's too much work to moderate a thread, we just nuke it from orbit. -- matthieum @ https:/
54.
▲
by
ssokolow
3y ago
> Did Rust end up with both errors and panics because the community suppressed robust debate in the name of kindness and "safety"? Was the current approach a way to try to make everyone happy without conflict? I've been ha
55.
▲
by
ssokolow
3y ago
First, note that I also pointed to Java spending years developing a reputation as one of the only things you couldn't install through the package manager for legal reasons. People who don't care about Stallman's zealotry do s
56.
▲
by
ssokolow
3y ago
GNOME is infamous for blindly copying things that appeal to them without underlying the originator's rationale and, in the process, making a mess of things... they just usually lean more toward copying Apple. (eg. Changing their save i
57.
▲
by
ssokolow
3y ago
D tried that. The fact that so much of its ecosystem non-optionally depended on the optional garbage collection was part of what killed its chances for adoption beyond "like Java or C#, but without a giant corporation pushing for it&qu
58.
▲
by
ssokolow
3y ago
> Especially that the real strictness of Rust is from the ownership system, which allows basically only tree-shaped lifetimes, and that’s not a restriction like a program being type-safe, where non-type safe programs don’t make sense. It
59.
▲
by
ssokolow
3y ago
In my case, it's because I've been burned by Python's maintainability issues in ways MyPy isn't sufficient to fix. It's not just Rust's type system, but: 1. Unlike with Haskell, the Rust compatibility promise h
60.
▲
by
ssokolow
3y ago
> I sort of understand the distrust of .NET, but why the JVM? It was/is pretty much the epitome of open-source. Not the OP, but basically two things: First, for Java's formative years, https://www.gnu.org/philos
More ›