Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lomnakkus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
lomnakkus
2y ago
In a former life I worked with a codebase that used that style. Let's just say it isn't enough.
2.
▲
by
lomnakkus
2y ago
No, but you can easily end up missing some because somebody wrapped them in some sub-type of RuntimeException because they were forced(!) to. This happens all the time because the variance on throws clauses it at odds with the variance of m
3.
▲
by
lomnakkus
7y ago
Parent poster explicitly said "under pressure". What more do you want?
4.
▲
by
lomnakkus
8y ago
> Copying is encouraged. Like I said, having the algorithm there is a good way to make it apparent what the code is actually going to do and the associated cost of the solution. It's also a good way to make bugs proliferate througho
5.
▲
by
lomnakkus
8y ago
Present tense -- it's (almost?) always a little shorter, so you can fit more information into the "subject" line.
6.
▲
by
lomnakkus
8y ago
Using min() seems like it could be incredibly dangerous as an "implicit" behavior, not to mention surprising. I'd wager it'd be much better to just specify that abort() gets called in the "overflow" case. (Give
7.
▲
by
lomnakkus
8y ago
> IMO Lambda calculus should be taught wider in CS programs. It brings useful models, builds (if one likes theory) good background to functional programming paradigms, etc. I'm surprised than anyone thinks this. Unless you're i
8.
▲
by
lomnakkus
8y ago
Honestly, it seems like a pretty clear intention to co-opt a term ("commons") which has usually meant "let's share things!" to mean something entirely different. (And shame on them for doing that.)
9.
▲
by
lomnakkus
8y ago
I believe it may be because the email only mentioned Intel explicitly and had a "I won't be buying Intel in future" (paraphrased) comment. However, I personally wouldn't assume that AMDs HT implementation doesn't ha
10.
▲
by
lomnakkus
8y ago
If I were being pithy, I find that when you're doing this type of thing it's more a feeling of "working fun" rather than "working hard". (Of course this means that one is probably not always going to do "p
11.
▲
by
lomnakkus
8y ago
I think you mean the "biosphere" rather than "we". Modern humans have existed anywhere from 50k-200k years. Just to put the time scales into context. EDIT: Just to clarify: As long as disasters happen slowly enough and
12.
▲
by
lomnakkus
8y ago
If the array structure itself were being modified, the "i < a.length" check would have to be done every iteration, but in this case there's no mutation of the array itself, so it's OK to move "a.length" to a
13.
▲
by
lomnakkus
8y ago
I suppose that's true in some sense, but at least string theorist have done some interesting math? (It may not be math that applies to the real world, but math being math is eternally valid as long as the axioms hold... and sometimes y
14.
▲
by
lomnakkus
8y ago
Damage-by-software usually isn't spectacular (and therefore not likely to get noticed) or not necessarily very directly costly in terms of human lives, but I'd argue it's actually more significant in the long term and in
15.
▲
by
lomnakkus
8y ago
Um, mix in a second randomly-chosen UUID? My point wasn't so much that I had the perfect solution and that I'd thought of everything. It's that there are much better systems and that we should actually strive to get there.
16.
▲
by
lomnakkus
8y ago
I can second that recommenadation.
17.
▲
by
lomnakkus
8y ago
Indeed. Java is in fact a sort of worst-of-all-worlds in that it's even possible to catch things that are really unrecoverable errors like StackOverflowException or OutOfMemoryError. To to uninitiated it might not like appear that catc
18.
▲
by
lomnakkus
8y ago
Personally, I think even having to choose a UID at install time or dynamically is a pretty sad indictment of just how broken the user system on Linux (and pretty much every UNIX-like) is. It leads to a huge amount of incidental complexity
19.
▲
by
lomnakkus
8y ago
Did you read what I said at all? "Order total: undefined" is hugely different from "There was an error -- maybe just leave the page, yeah?".
20.
▲
by
lomnakkus
8y ago
For the hard of hearing, non-native speakers who are used to subtitles from non-dubbed movies, etc. etc. I suppose. I do know that, as a non-native English speaker, I've always appreciated having English subtitles for English-speaking
21.
▲
by
lomnakkus
8y ago
That seems... short-sighted. There's a huge amount of 'interesting' things one can do which are illegal, immoral, depraved and worse. (I'd argue that stealing is generally at the very least illegal and immoral, but o
22.
▲
by
lomnakkus
8y ago
This has nothing to do with undefined vs. exceptions, sorry. You can do example the same with a powerful enough sandbox -- e.g. what WebAsm does to avoid hostile code taking over your computer. It has everything to do with sandboxing (or no
23.
▲
by
lomnakkus
8y ago
How is "there was a JavaScript error on this page" informational icon any worse than an order total of "undefined" or that the page just doesn't seem to be reacting to clicks? I'd argue that the former is much
24.
▲
by
lomnakkus
8y ago
The JS way is a mistake, intentional or not. Here's a little thought experiment: Your program ends up with an "undefined" in some variable 'x'. How did that happen? In JS it can happen in any number of weird and won
25.
▲
by
lomnakkus
8y ago
Oh, I'm sorry, I misread. Your nyms both start with 'd' and... that's about the end of my excuses for that mistake. > I’m not sure why you’re mentioning women historically being keepers of the house It’s not relevant
26.
▲
by
lomnakkus
8y ago
In the context of the US and "the way things used to be", if would have to be the wife. Btw, it doesn't really matter which one it is -- the point was that it's asymmetrical. > The role is eroding because the expectat
27.
▲
by
lomnakkus
8y ago
(I can only apologize if the quoting gets weird. The side-notes on the right-hand side of your site got interspersed weirdly into the main text by copy/paste. I think I've managed to separate them properly, but if not... please fo
28.
▲
by
lomnakkus
8y ago
I just (well, a few days ago) explained to you that your suggested "solution" would result in UB. Then you come up with the "solution" that everybody must always check for NULL pointers before dereferencing them. If ev
29.
▲
by
lomnakkus
8y ago
I think you're missing the point that this is a type of ratchet in getting the intermediates to stop doing arbitrary traffic shaping/queueing/etc. (Ideally it would end up being a ratchet for net neutrality, but let's se
30.
▲
by
lomnakkus
8y ago
> Imagine if we had that same attitude with regards to HTTP. Well, many do. You wouldn't believe the number of broken HTTP clients/servers out there. The difference is that most HTTP clients/servers have to work with some
More ›