Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ragnese
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
391.
▲
by
ragnese
5y ago
> subtracting one from zero and getting max_uint can be its own brand of fucking horribly awful. Agreed. Silent wrap-around on overflow is also a really terrible idea. > having the language itself throw in that circumstance can also b
392.
▲
by
ragnese
5y ago
Of course you're right! That statement was intended to be hyperbolic. I'm not actually suggesting that it would be a good idea to NOT have zero-sized collections. I'm just exasperated that most of these modern, statically typ
393.
▲
by
ragnese
5y ago
I haven't, but I've done a fair amount of reading about it and that is the kind of thing I'm talking about.
394.
▲
by
ragnese
5y ago
Correct. But, the reason I'm bitching about it is because, in most languages, you then cannot use your Username type in place of a "native" string, where some third-party or standard library function just expects a string. So
395.
▲
by
ragnese
5y ago
> The argument for disallowing nulls is much stronger than the argument for demanding a compiler-enforced non-empty string. I definitely support the ability to declare variables, including strings, as non-nullable. An empty string is sim
396.
▲
by
ragnese
5y ago
I love that! So it's the `alias s this` that's the magic here, I assume? It's making the `this` pointer actually point to the stored field? That's awesome!
397.
▲
by
ragnese
5y ago
Yeah, pretty much. I know such things exist on the periphery, but I think it's extremely disappointing that we keep churning out "new" languages that are basically "Here's C again, but with one interesting feature f
398.
▲
by
ragnese
5y ago
So... why NOT a type for even numbers? Or prime numbers? I'm not asking for someone to supply these things in the standard library of $FOOLANG. I'm saying that very few languages offer the tools to define such things without it be
399.
▲
by
ragnese
5y ago
Let me ask you this, though. If your strings that come from user inputs are optional, doesn't that mean they could also just not be present (as in null)? Why do you need or want two different ways to express "nothing"? Are al
400.
▲
by
ragnese
5y ago
I used Clojure on a project while spec was still alpha/beta or something, so I never used it. It does sound interesting, but I'm skeptical. Even the way you described it- I'm still just writing a function to validate my data,
401.
▲
by
ragnese
5y ago
Your comment kind of galvanizes my view that most of us suffer from Stockholm Syndrome with respect to our programming languages. As another commenter said, some statically typed languages give you unsigned numbers. Maybe most of them do.
402.
▲
by
ragnese
5y ago
It's nice to read a positive comment like yours occasionally, because the vast majority of the time, I'm just disappointed in how bad our programming tools (including languages) are. It's become a meme in my office that I
403.
▲
by
ragnese
5y ago
I'm completely unqualified to offer anything. The last time I tried React was four years ago, I've never used Svelte, and I'm currently using Vue 2. Vue 3 supposedly fixed a lot of the most surprising/annoying things abo
404.
▲
by
ragnese
5y ago
For sure. I'm sure those wouldn't have kept hardly any of the devs who abandoned statically typed languages in the 00s.
405.
▲
by
ragnese
5y ago
Totally right, I apologize. I think my point still stands if we replace Java with C++ (and I still think Java was worse than C++ for static typing's reputation).
406.
▲
by
ragnese
5y ago
I'm not an "expert" at dynamic languages, but I've written small microservices in Clojure and Elixir, data crunching code in Python, and your typical junk in PHP and JavaScript. Clojure does have spec ( https://
407.
▲
by
ragnese
5y ago
They almost did, and I mostly blame Java. Java's type system is so poor that you go through all this ceremony of declaring types (and remember that Java didn't even always have `var` and `<>` inference shortcuts), and you s
408.
▲
by
ragnese
5y ago
> The concept of applications seemed about right for them. But opening the dreaded File Explorer and swim through drive letters, virtual and real folders, having to be well organized, having to worry about backups of specific folders, et
409.
▲
by
ragnese
5y ago
I agree completely. We need a way to facilitate interoperability without requiring normal humans to know/care about bytes on a disk in some hierarchy (directory tree) where, frankly, your hierarchy WILL eventually be wrong. Remember ba
410.
▲
by
ragnese
5y ago
*biting above its league. I'll see myself out
411.
▲
by
ragnese
5y ago
Your abortion thought experiment may be backwards: aren't we protecting the fetus from future harm by aborting it before it can comprehend or experience the multitude of harms it's bound to experience in life? Taken to the extreme
412.
▲
by
ragnese
5y ago
I'm not convinced that Elisp-the-language is really the limiting factor. I'm not an expert on the details- just a passive observer for several years. But, IIRC, Elisp recently got some kind of cooperative async stuff. Even before
413.
▲
by
ragnese
5y ago
I know that these "works for me" discussion are often not fruitful. But, I'll ask this: have you done a several hour session of typing/programming into a JetBrains IDE? I'm claiming that on my work Macbook Pro, even
414.
▲
by
ragnese
5y ago
Yeah. I still use Emacs for actual development sometimes, but it's been less and less, honestly. But it isn't going anywhere as my git porcelain. I used to scoff at even the concept of a git porcelain- I never used my IDEs'
415.
▲
by
ragnese
5y ago
I can only speak for myself, obviously. But, I think it's obviously about more than performance. Otherwise, people have always had C, C++, LISP, and even Java and Go that will be generally faster than Python, PHP, and JavaScript. I
416.
▲
by
ragnese
5y ago
I'm ambivalent about it. In my opinion, Rust is optimized to be a systems programming language. As such, we'd expect that it shouldn't really be your first choice for writing an "application". (I'm not referrin
417.
▲
by
ragnese
5y ago
I just saw a new looking Supra on the road today. I didn't even know they started making them again after then stopped in 2000-ish.
418.
▲
by
ragnese
5y ago
I hear what you're saying and I don't really disagree. But, at the risk of sounding like I'm not an environmentalist and I don't care about poor people, a new 1990s car today is still going to be better than a lot of w
419.
▲
by
ragnese
5y ago
Tangentially, wouldn't it be nice if we could buy a 1990-quality car for the inflation-adjusted price? Poor(ish) people would have a decent shot at actually affording reliable transportation and climbing up the ladder.
420.
▲
by
ragnese
5y ago
Don't get me wrong- I agree with the sentiment that crashes are better than corruption. But, as someone else already mentioned, the thread sanitizer does cause significant overhead from all of the debug info it holds (maybe a release v
More ›