Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions

Submissions

comment 8y ago · link · parent

I think it's beyond stupid. Most people know exactly what neurotoxin induced vertigo feels like -- did the author ever drink any alcohol? The whole world is spinning, you get sick even when lying perfectly still. It's not motion that causes the sickness, it's your brain detecting messed up responses from the vestibular system.

Also, why else would this reflex exist? Throwing up is very, very costly in terms of calories, and for much of our evolutionary history, food was scarce. Such an extreme measure could only have evolved when the alternative was even worse.

comment 8y ago · link · parent

Both can be true, benchmarking JITs is really hard, but even so, (despite decades of claims to the contrary), managed VMs actually are a bit slower than unsafe native code.

comment 8y ago · link · parent

Does the book analyze why that happened industry-wide? Clueless management can't be the root cause, because somebody had to hire those managers.

comment 8y ago · link · parent

Exactly. This used to be quite common, see for example https://en.m.wikipedia.org/wiki/GPL_linking_exception

comment 8y ago · link · parent

The plus sign suggests an additional right, as a dual license would offer, instead, it removes rights from the Apache license. I don't think that's an accident because judging from the website, this seems to be a very serious attempt to put a positive spin on "look but don't touch" style proprietary licensing schemes. Fuck this.

comment 8y ago · link · parent

IANAL and I'm not saying this works from a legal standpoint (my understanding is it depends), I'm just arguing this is one reason why people might do this (run an executable and parse the output instead of just linking a library and passing proper data structures). I've seen it happen in another context.

comment 8y ago · link · parent

The GPL license might be part of why this is done; running GPG in a separate process avoids infecting your code with its license.

comment 8y ago · link · parent

I wonder about the translation, is "real money" an accepted economic term for this concept? Because "Voll" as a prefix usually means complete or whole, rather than "real", as in "Vollmilch" (whole milk) and "Vollkorn" (whole grain). (Source: I'm German.)

comment 8y ago · link · parent

That's an interesting experience. I'd say that the idea people have about water in pipes is probably overly simplistic as well, and an analogy to an equally poorly understand concept can't help very much. To pick up your example about electron speed vs. signal speed: Water pressure is transmitted at the speed of sound, which is much, much higher than the speed of water flow -- water taps wouldn't work otherwise.

comment 8y ago · link · parent

What's the tooling like for a typical, production-quality FPGA project nowadays? Last I checked, which is admittedly a couple of years ago (and I didn't dive in very deeply), it was a horrible mix of badly programmed vendor-specific Windows-only GUI tools. It seemed a lot like the embedded processor market where every single vendor has their own lock-in strategy and the whole ecosystem suffers for it. Has this improved in the meantime?

comment 8y ago · link · parent

Oh, you will regret it. That’s like saying “Try heroin! You’ll absolutely love it.” Not technically wrong...

(Edit: I’m joking. It’s a great game.)

comment 8y ago · link · parent

It happened several times, which makes you wonder. They have all this great engineering talent and a really fantastic test infrastructure, yet somehow never managed to write a unit test that checks if a simple boolean value doesn't toggle during an update. It's quite a mystery.

comment 8y ago · link · parent

But remember that they can only do that kind of research because they upload, eternally store and data-mine the original text that users delete before ever hitting send. Many people find that unexpected, unethical or outright creepy.

comment 8y ago · link · parent

I'm also trying to understand the use for Unikernels, because I find them very interesting from a technology perspective. To me, Unikernels might make sense when running a high-performance application on bare metal. There's probably quite a bit of performance to be gained by running your application in ring 0 directly on a physical machine.

But once you add a hypervisor and a scheduler, you've essentially reinvented the OS. I struggle to see the point: just compile static executables and run them on Linux, natively installed on physical hardware, like we did 30 years ago. Deployment is just as easy (i.e. copy a file), performance should be comparable (calling into the kernel should be comparable to calling into the hypervisor), and the tooling is way more mature.

comment 8y ago · link · parent

I agree with the sentiment, but what’s sometimes overlooked is that the community around a technology is in many ways more important than the technology itself. Can I expect to find add-on libraries that help integrating with the rest of my technology stack? Will I find documentation, blog posts or StackOverflow answers that solve my specific edge case? How likely is it that I’ll be the very first person to encounter a critical bug, because no one else uses it at that scale?

Many of those signals are not easily faked, as Microsoft itself painfully learned when spending billions in an attempt to artificially prop up a developer community around Windows Phone. If, as the grandparent suggested, Service Fabric is losing out even internally at MS where they can apply management pressure in addition to marketing, that’s a very bad sign.

comment 8y ago · link · parent

With the sudden increase of data collection checkboxes in the last few days since the GDPR is in effect, I noticed more than one website claiming that for technical reasons I can't opt out of having my data resold unless I enable third-party cookies "to store my preferences". Yeah, right, I thought. But I really don't know if that's shady or just technically inept (likely both). Perhaps as you suggest many websites simply don't have the infrastructure to do anything non-trivial in the backend.

comment 8y ago · link · parent

> I'm all for good software design, but claiming a design process can eliminate bugs is more fantasy than reality. Bugs typically come from unforeseen requirements or application states.

In my experience, that's only true code that's relatively well-engineered to begin with. Unfortunately, there are lots of bugs in real-world shipping software that have nothing to do with an unforeseeable environment, but are only the result of unnecessarily complex designs that even the original programmer hadn't completely thought through. So while good design might not eliminate bugs, bad (or no) design can definitely create them.

comment 8y ago · link · parent

> metallic hydrogen

It makes sense from the periodic table, but I really didn't know this existed. Very cool!

comment 8y ago · link · parent

It's pretty amazing to me that in 2018, the way we pass colors to a modern graphics API is to build a string with comma separated list of the individual components encoded in decimal.

And then people wonder why computers feel slower than they did 15 years ago.

comment 8y ago · link · parent

Poor C64. If I were to reactivate my old C64 for a project, I'd much rather keep the C64 intact and somehow try to connect a RPi externally. Maybe emulate a 1541 drive to transfer data from a network share? Are there are any projects or guides that do something like that?

comment 8y ago · link · parent

It’s not like the idea is completely crazy; pointer misuse is a big source of all kinds of problems, Rust shows how much can be done without constantly using raw pointers, and what are the C++ Core Guidelines if not an effort in exactly this direction?

I finally “got” that this is a joke when they discussed the future alternatives:

> For copyable and assignable references you can use std::reference_wrapper. (http://en.cppreference.com/w/cpp/utility/functional/referenc...)

and thought, ha ha, an “assignable reference” instead of a “pointer”, that’s obviously completely different. :) What a subtle joke!

Only now I see that reference_wrapper is apparently completely real and exists since C++11. Why does this even exist? My head hurts from banging it against the desk.

comment 8y ago · link · parent

But such polynomials do turn up in physics, e.g. accelerated motion: x(t) = 1/2 a t^2 + v t + x0. The trick is that the coefficients aren't unitless either.

comment 8y ago · link · parent

This is really great news. I wonder how this deal went down, businesswise. MoltenVK used to be a commercial offering by Brenwill Workshop. The way the press release[1] mentions how Khronos "worked" with Valve and Brenwill Workshop to "enable" this release makes it sound like there might have been money involved. If so, great for both Brenwill Workshop and the community.

1: https://www.khronos.org/news/press/vulkan-applications-enabl...

comment 8y ago · link · parent

So, can anyone explain what's the state of MySQL vs. MariaDB in 2018 and going forward? It's hard to find up-to-date information on this. A few years ago, everyone simply assumed that Oracle would kill MySQL, which it seems they didn't, but it's unclear two me what kind of sustained development one can expect from either of them.

comment 8y ago · link · parent

How do you name your classes instead? I ask because I'm now mostly in favor of naming classes after the patterns, at least when there's no relevant term from the domain to use. That is, when the alternative is to invent a new abstract name, I think it's better to use the one that comes with the design pattern. The resulting names are often ugly, but at least they clearly communicate the intent to people also familiar with the pattern.

comment 9y ago · link · parent

Is that partially a tooling problem, i.e. would it help or even be possible to show those intermediate “proof states” (as used by the grandparent) live in the IDE while you type?

comment 9y ago · link · parent

The goal here seems to be to have that "typewritery" look that people associate with writing drafts, but add a bit more readability than is possible in a monospace font. Fair enough, though I'm not sure why having exactly two character widths is preferable to having three, or five, or simply designing a proportional font with wider typewriter-style characters.

For programming, "duospace" works exactly like any other proportional font. The fact that some letters have the same width doesn't buy you anything in terms of alignment. Unless your style guide forbids the letters "m" and "w" in method names. ;)

comment 9y ago · link · parent

For many of the supposedly "opinion-based" questions, reasonable people will at least agree on the relevant trade-offs, even if they come to different conclusions overall. Thus, when a question asks about "pros and cons of technology X", expert insight into the trade-offs involved could be really useful to help evaluate your own specific situation. But that kind of more nuanced question doesn't really fit the simple "one correct answer" model that Stack Overflow seems to be going for and is thus very likely to be closed. IMHO, there should be a distinction between "it depends on the circumstances, and here's why" and "purely opinion based", and Stack Overflow would be more useful for me personally if the former were allowed.

Edit: Just to check if moderation policies have changed since I last looked, I did a quick search for questions containing the phrase "pros and cons". As unfortunately expected, practically all of the questions are closed: https://stackoverflow.com/search?q=pros+and+cons

1
434445
51