Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zvrba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
zvrba
5y ago
> Some errors are unexpected and should stop the program; you want to use exceptions for those. Precisely the opposite: exceptions are a fail-fast mechanism that gives you an alternative to terminating the program. Now, as slx26 mentione
122.
▲
by
zvrba
5y ago
Ah, this reminds me of the days I spent writing RPL programs for solving electric circuits on my trusty old HP48 calculator. (It is said but nowhere officially confirmed that RPL stands for "reverse-polish lisp".) It was quite enj
123.
▲
Senators want to rein in Apple and Google’s alleged app store monopolies
(seattletimes.com)
26 points
by
zvrba
5y ago
|
2 comments
124.
▲
by
zvrba
5y ago
"them" refers to checked exceptions.
125.
▲
by
zvrba
5y ago
Don't get me started on EF/EFCore. Using it in a large project is _the_ technical decision I regret the most. As for Java, I wrote a mini-ORM in a week. No big deal. And then I can use SQL as it was intended. EFCore dumbs down th
126.
▲
by
zvrba
5y ago
> I'd recommend David Fowler's async guidance for a modern [...] .GetAwaiter().GetResult() Yeah, you should add to that `ConfigureAwait(false)`. That you need a long webpage about `async` and that the official documentation on
127.
▲
by
zvrba
5y ago
I use eclipse. Never had problems with it. As for building, I figured out how to use maven to download dependencies to a separate folder and then I use eclipse features to add jars to the project. (Eclipse has maven plugin, but I couldn
128.
▲
by
zvrba
5y ago
I like the uniformity of Java language. I like the "inner class" feature that has to be manually emulated in C#. I also like that I can implement anonymous abstract class-interface ad hoc in Java. I wish that internal visibility i
129.
▲
by
zvrba
5y ago
Who is "them"? Microsoft? https://docs.microsoft.com/en-us/azure/active-directory/deve...
130.
▲
by
zvrba
5y ago
Or maybe you have just outgrown your heroes and it's THEY who're stuck in their local maximum.
131.
▲
by
zvrba
5y ago
> If your timestamp isn't freshly generated, I don't know why you'd embed it in a UUID with these formats. Ingesting past/archival data. As to why use these formats: to still benefit from their sorting properties. As
132.
▲
by
zvrba
5y ago
Historically, calendars came to be from observing the movement of planets and stars. Now: > we might want to talk about which of two events came first, and by how much Neither of which makes sense without having a common reference point
133.
▲
by
zvrba
5y ago
> Here's a thought experiment [...] I would pick the Unix epoch, because I think others would do the same. Ah yes, nobody will ever need to represent a date/time before 1970-01-01. As for your thought experiment: recently I had
134.
▲
by
zvrba
5y ago
> with a weird epoch and 100 ns precision Exactly as used by windows to store file times. And the epoch is the start of the modern calendar https://en.wikipedia.org/wiki/Gregorian_calendar Talking about dates befor
135.
▲
by
zvrba
5y ago
Meh. In C, everything is a pointer, in Haskell everything is a monad. Regarding effects, I found Koka to be a breath of fresh air: https://koka-lang.github.io/koka/doc/book.html#why
136.
▲
by
zvrba
5y ago
Yes they do, but segmentation is practically non-existent and page tables distinguish only between rings 0 and rings 1-3. So no, they aren't very useful, but they do exist and, AFAIK, they're still checked in "far" contr
137.
▲
by
zvrba
5y ago
Yeah, and support it on .net.
138.
▲
by
zvrba
5y ago
How about saying something like "That was all, what do you think?". (I'm eastern-european as well :p)
139.
▲
by
zvrba
5y ago
I took a PhD in CS and after observing the work conditions of myself and my supervisors at close range for 4.5 years, I decided I did not want to get involved any further with academia. Because - Teaching obligations... which is fine with m
140.
▲
by
zvrba
5y ago
For the one occasion I had to use Zoom, I created a separate user account and after the meeting was done, I wiped the account.
141.
▲
by
zvrba
5y ago
Except that error returns such as Either have their own problems. What is the main complaint about checked exceptions in Java? Yes, handle or _declare_ them in method signatures: adding a checked exception to a previously non-throwing metho
142.
▲
EU says Apple’s 30% cut from rival music providers violates competition law
(arstechnica.com)
2 points
by
zvrba
5y ago
|
0 comments
143.
▲
by
zvrba
5y ago
> If I had the choice, I'd never use ASIO again and just use libuv. Same here. I ported a legacy project from linux to windows, and continued to use ASIO (i.e., wrote new code) by inertia since the project already used it. Worst dec
144.
▲
by
zvrba
6y ago
> So open source means only licenses that are most favourable to the big tech monopolists now? Fully agree with your opinion here. In fact, I posted a lengthy comment on reddit about this, here it is copy/pasted. NB: "You"
145.
▲
by
zvrba
6y ago
> The rule of thumb for me is `thiserror` for libraries, `anyhow` for executables. And as the executable gets larger and refactored, some of the "executable" code will inevitably become "library" code. What then?
146.
▲
by
zvrba
6y ago
You're not coherent. > in my mind shared memory means concurrent processes and memory have a common clock You're aware that modern CPUs clock their cores independently? (E.g., AVX512 throttling.) Hence, no common clock. > an
147.
▲
by
zvrba
6y ago
> "Reliable" is also a vague value judgement It is not. Reliable: message delivery is guaranteed, i.e., the message _will_ eventually reach its intended destination. > "Shared memory" implies data coherency. It doe
148.
▲
by
zvrba
6y ago
> 1. No shared memory. I'd rather say "no reliable message delivery". The only difference between completely reliable messaging and shared memory is performance. > Because there's no shared memory it's impossi
149.
▲
by
zvrba
6y ago
Interestingly, I've heard about many people who went from "straight", married with children to leaving their families because they've found out they're gay. I even knew one whose first sexual experiences were with w
150.
▲
by
zvrba
6y ago
It makes sense when compared against flip-flop circuit https://www.geeksforgeeks.org/difference-between-flip-flop-a... Most importantly, latch is level-triggered, just like the synchronization primitive.
More ›