Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nrdvana
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
nrdvana
5y ago
You could do the same thing with User Mode Linux or a virtual machine. WSL is just the easiest/fastest way to run native Linux binaries on a Windows system. If you have a X11 server installed properly on windows and can run Linux app
92.
▲
by
nrdvana
5y ago
Well, that's sort of splitting hairs... It is a unix socket, which at the API level is the same as a network connection, but the kernel skips the hassle of attaching protocol headers and routing the packets. The example above is writ
93.
▲
by
nrdvana
5y ago
My "year of the Linux desktop" was 2018 when for the first time ever I was able to play a AAA video game (Deus Ex Mankind Divided) installed from Steam with nothing but normal GUI mouse clicks. Sadly there haven't been many A
94.
▲
by
nrdvana
5y ago
Lenovo ThinkPads actually have manufacturer support for Linux for quite a long time. (to the degree that there is actually a BIOS menu option for Linux sleep states specifically labeled as such) I've used ThinkPads for the last 10 ye
95.
▲
by
nrdvana
5y ago
It's a big ball of wax with more details than I'll ever memorize, but I know for a fact that for the last 20 years or more X11 GLX has had "indirect contexts" where the application feeds the OpenGL requests over the disp
96.
▲
by
nrdvana
5y ago
Wikipedia has a very thorough write-up https://en.wikipedia.org/wiki/Daylight_saving_time with 171 sources. What degree of certainty are you looking for? It mentions many examples of business (with emphasis on golf a
97.
▲
by
nrdvana
5y ago
Indeed its hard to generalize across all people. But I doubt many of those you list react favorably to the early times. Either way, they are likely not the ones wishing for permanent DST, because for some of them (like the ones waking u
98.
▲
by
nrdvana
5y ago
You got that backward. Everywhere in the red gets worse during DST. In Ohio, the middle of the day occurs at 1pm on EST, and the middle of the day occurs at 2pm on DST.
99.
▲
by
nrdvana
5y ago
I'm against DST because I think if people are going to wake up at solar 6am and go to work at solar 7am they ought to call it 6am and 7am instead of calling it 7am and 8am. "Work is defined to start at 8am so lets have everyone ca
100.
▲
by
nrdvana
5y ago
Sorry, the "farming" myth is one of my ocd triggers. DST is for golf courses and has never had anything to do with farming. Businesses want more daylight hours after office people get out of work to get those people to spend mor
101.
▲
by
nrdvana
5y ago
The law they passed is exactly equivalent to passing a law that puts us on winter time and starts a new requirement that schools and businesses open at 7am. We're just giving a new name to 8am. It will all become more ridiculous 20 ye
102.
▲
by
nrdvana
5y ago
So a disclaimer, I have never read the C standard in full and I don't consider myself an expert, but this one about bit fields is one of many anecdotes I've accumulated over the years about portability. The rule is never use a bi
103.
▲
by
nrdvana
5y ago
I also find that questionable. The compiler is allowed to pull a bit field from low or high bits (i.e. not specified in the standard) and it might be further affected by endianness. This code is assuming that on little-endian, gcc pulls 62
104.
▲
by
nrdvana
5y ago
As I understand it, prions are just an ever-present rare tiny probability of a cascading malfunction of your physical composition. They are rare because they need to be, in order for a biological system to survive. (any biological system
105.
▲
by
nrdvana
5y ago
Both are problems, but to me the biggest facepalm goes to log4j because anyone in their right mind should assume that log messages are untrusted input and should absolutely never have been parsed for control sequences. It's another pr
106.
▲
by
nrdvana
5y ago
Well, yeah, maybe if you are writing ray tracers. The focus of Delphi was object oriented data structures (especially for UIs) and there isn't a lot that the compiler can optimize when the function is packed full of method calls, whic
107.
▲
by
nrdvana
5y ago
I'd say Delphi was one notch better than Visual Studio. The pascal language was more highly optimized and easier to parse, so the debugger was much snappier about popping up the tooltips to show you values of variables or F1 to jump i
108.
▲
by
nrdvana
5y ago
It was by far the fastest compiler I'd ever used. A full 10x faster than their Borland C++ compiler, which was faster than gcc. Delphi didn't do as many optimizations, but the compiled code had runtime performance within a few p
109.
▲
by
nrdvana
5y ago
> The folks that have a lot of money don't spend it. Out of all of Buffett's, Gates', and Bezos' fortunes how much is being spent 'productively' and how much is just sitting around collecting interest on int
110.
▲
by
nrdvana
5y ago
Think of how dead they would be if the insulin didn't exist. The part of the topic of insulin relevant to a discussion of trickle down economics is whether the insulin could have been researched and invented without letting people bec
111.
▲
by
nrdvana
5y ago
That pretty much describes perl, except for the co-processes. Probably in part due to Larry Wall initially setting out to make "a better awk".
112.
▲
by
nrdvana
5y ago
Maybe so. for some reason I thought Python made it hard to modify a class after declaration. I might be thinking of PHP, or maybe I tested something on a C-backed object without realizing. For what it's worth, Perl lets you freely mi
113.
▲
by
nrdvana
5y ago
Interesting, I hadn't seen @cached_property before. I was expecting you to have to muck around with __getattr__. The lazy attribute in Perl is simply one whose constructed value is deferred until the first time it is used. For an exa
114.
▲
by
nrdvana
5y ago
I didn't say you couldn't, just that the 'nonsense' is actually quite nice to use in practice. Lets play Rosetta Code for lazy attributes: package Something; use Moo; has hostname => ( is => 'lazy'
115.
▲
by
nrdvana
5y ago
And yet, the “nonsense” you see is the object paradigm I love the best out of any language I’ve ever used. It’s what keeps me on perl instead of moving on to other more trendy (and restricted) languages.
116.
▲
by
nrdvana
5y ago
WordPress, Drupal, Magento, Joomla, OpenCart and lots of other open source community CMS and online web-store type things are built on it. Sadly it will never die because it has Facebook pouring money into it.
117.
▲
by
nrdvana
5y ago
The class/package system is actually my favorite part of the language, and the reason I put up with the syntax warts. It goes one step better than JavaScript by putting methods and attribute storage into separate namespaces, and suppo
118.
▲
by
nrdvana
5y ago
I like your analogy. But the more accurate statement is that perl has a fraction as many cows as it once had, but still more cows than other not-dead languages. It still gets more daily uploads to CPAN than Haskell gets to hackage.haskell
119.
▲
by
nrdvana
5y ago
Counter anecdote: the last traditional forum that I have any interaction with was so plagued by spam that they turned off registration and the new registration system is “send an email to the admin asking for an account”. Needless to say,
120.
▲
by
nrdvana
5y ago
Open this code side by side with the source code for Cyrus IMAP, or Perl core, or libssl, and then scroll through them. You will be enlightened. In short, any code that is intended to work on a wide variety of systems is usually littered w
More ›