2,613 karma · joined Nov 15, 2013 (13y ago) · 775 submissions
comment 5y ago · link · parent
https://andrewkelley.me/post/zig-cc-powerful-drop-in-replace...
HN discussion:
https://news.ycombinator.com/item?id=27872596
previous discussion:
comment 5y ago · link · parent
https://www.infoworld.com/article/3633002/the-future-of-rust...
Steve is probably objecting to the paragraph that starts, "Given that Matsakis and Miller both work at AWS, it's not surprising that the [Rustacean] principles started out as a spin on Amazonian tenets."
comment 5y ago · link · parent
There are lots of other libraries, and surely some faster ones, but I haven't felt any need to change. I was nervous when I got an inexplicable overload ambiguity in xlclang++ for AIX, but it went away when I grabbed a newer version of the library.
comment 5y ago · link · parent
> There is no UB at compile-time; the compiler is required to issue a diagnostic whenever it encounters one. With sufficient coverage, you can thus verify that your functions don’t contain UB.
185.
Exploring Undefined Behavior Using Constexpr (2019)(shafik.github.io ↗)
1 points · by SloopJon · 5y ago · 1 comment
comment 5y ago · link · parent
comment 5y ago · link · parent
> A lot will be from before 2000, before we had things like "Agile" and "unit tests" and "widespread version control", so you can't extrapolate any of their conclusions to what we're doing. As a rule of thumb I try to keep to papers after 2010.
While I admit that even in the late 90s, it seemed strange to me to see citations from the 70s or 80s about projects from the 60s (like, say, OS/360), I'm not convinced that so much has changed in the last ten to twenty years as to render all previous research irrelevant.
comment 5y ago · link · parent
https://www.computer.org/csdl/proceedings-article/metrics/20...
Its own citations may not be satisfying, but I find it nevertheless interesting. Here's the summary of the eWorkshop discussion of "Effort to find and fix":
> A 100:1 increase in effort from early phases to post-delivery was a usable heuristic for severe defects, but for non-severe defects the effort increase was not nearly as large. However, this heuristic is appropriate only for certain development models with a clearly defined release point; research has not yet targeted new paradigms such as extreme programming (XP), which has no meaningful distinction between "early" and "late" development phases.
comment 5y ago · link · parent
"Design and Code Inspections to Reduce Errors in Program Development" (Fagan 1976)
Software Defect Removal (Dunn 1984)
"Software Process Improvement at Hughes Aircraft" (Humphrey, Snyder, and Willis 1991)
"Calculating the Return on Investment from More Effective Requirements Management" (Leffingwell 1997)
"Hughes Aircraft's Widespread Deployment of a Continuously Improving Software Process" (Willis et al. 1998)
"An Economic Release Decision Model: Insights into Software Project Management" (Grady 1999)
"What We Have Learned About Fighting Defects" (Shull et al. 2002)
Balancing Agility and Discipline: A Guide for the Perplexed (Boehm and Turner 2004)
I only have one of these (Dunn), and it's boxed up in the attic, so I can't readily check their sources, but I somehow doubt that all of these simply launder the study under discussion.
I don't want to trivialize some of the good points that Hillel Wayne makes about soft-science research applied to software productivity, but he would have us dismiss all of these citations out of hand, simply because they predate capital-A Agile, which of course changes everything. That doesn't strike me as a particularly compelling approach either.
comment 5y ago · link · parent
A March 2021 tweet indicated that beta access will be as simple as pressing a "Download Beta" button in the car. A subsequent tweet said that the program had 2,000 owners, some of whom have had their access revoked for not paying enough attention to the road.
comment 5y ago · link · parent
The guy with the white ball cap repeatedly attempted a left turn across two lanes of fast-moving traffic, with a drone providing overhead views. He seemed smart, aware, and even a bit conservative in intervening. Nonetheless, I couldn't help but thinking that none of the oncoming vehicles consented to the experiments racking up YouTube views. If he doesn't jump on the brakes at the right time, he potentially causes a head-on collision with a good chance of fatalities.
Yes, I do agree that beta drivers should get extra training. However, I'm not sure I agree with the premise of beta testing an aluminum rocket on wheels on public roads in the first place.
comment 5y ago · link · parent
The other thing I ran into recently, is that u"" string literals that worked on GCC / Linux, Clang / Mac, and VC++ 2017 / Windows 2012 did not work for a colleague on VC++ 2019 / Windows 10. An emoji, for example, came out as four char16_t code units (one for each byte of the UTF-8 encoding, I think), instead of two. We ended up using Unicode escapes instead, although the source code is less colorful without a pile of poo.
This ztd.text library looks interesting, although it's a little discouraging that the getting started section of the documentation is empty. Is this a header-only library?
comment 5y ago · link · parent
I eventually cut my losses, selling my $500-ish stake for $90 or so. So much for the year of Linux on the desktop. At least they didn't go the route of Caldera.
comment 5y ago · link · parent
When I looked into media server software, I got a bit overwhelmed. I can't necessarily tell that something doesn't support CUE sheets properly until after I've spent an hour or two setting it up. Can anyone recommend something that will let me browse and stream a big pile of album FLACs by track?
comment 5y ago · link · parent
Richard didn't apply for a patent himself, so first-to-invent is not applicable either. If he had learned of Doug's patent application, and then made an application of his own, there would have been a legitimate dispute as to priority. Since Richard shopped the library around in 2009, he might have been able to prove that he conceived the invention first. However, Doug might then have argued that Richard had abandoned, suppressed, or concealed it. See this blog post from 2005 discussing a similar hypothetical:
https://www.irmi.com/articles/expert-commentary/the-dangers-...
The technique employed by crunch was effectively a trade secret until its open source release. It's entirely possible that the patent is invalid for other reasons, but my layman's understanding of patent law is that because Richard didn't publish or patent in time, crunch can in fact infringe Doug's patent.
comment 5y ago · link · parent
The key touted advantage of the Wooting one keyboard seems to be optical switches with an adjustable actuation point. It also uses a multiplexer for each row of keys, which is somehow faster than a scan matrix.
I don't see an actual test result for the keyboard that includes all of the latency factors discussed. The closest is a link to a tweet by Sunjun Kim. Unlike Dan Luu's measurements, which actually pressed a key, Sunjun triggered the optical switch using an LED, resulting in latency of 4.2 to 9.6 ms, depending on the firmware.
According to this post, key travel can add up to 10 ms, which the adjustable actuation is supposed to minimize. That would put the total latency at 10 to 15 ms, which is around what Dan Luu measured for Apple's Magic Keyboard.
comment 5y ago · link · parent
My biggest complaint about the Advantage is the placement of the arrow keys in the bottom row. I never got used to them (and I sometimes use vi with a Dvorak layout). I hit them by accident far more often than on purpose. From the survey, it appears to me that they are still in approximately the same location.
comment 5y ago · link · parent
> FDA currently recognizes the high danger of this compound and lists it as a "Class 1 solvent" that "should not be employed in the manufacture of drug substances, excipients, and drug products because of their unacceptable toxicity ... However, if their use is unavoidable in order to produce a drug product with a significant therapeutic advance, then their levels should be restricted" and benzene is restricted under such guidance to 2 parts per million ("ppm").
This reminds me of a story I heard about Kosher Coca-Cola. They had designed it such that its impurities were below a certain threshold. (Googling it now, the ingredient in question was glycerin derived from non-Kosher beef tallow.) However, the consulting rabbi explained that the threshold only applied to accidental impurities; you can't put them in on purpose.
comment 5y ago · link · parent
I have felt like the performance isn't great, but I chalked it up to Docker and the Linux VM it uses. However, I also noticed that the computer was warm to the touch with fans running even when I hadn't used it for hours. I've taken to manually forcing it to sleep at the end of the day.
I'm excited to try this HiDPI hack, because it may solve the power usage problem and the fuzzy display. It would be a real shame to lose the built-in display if this only works in clamshell mode, but it just might be worth it.
Edit: I just realized that I can't use Touch ID in clamshell mode. That makes this a harder call.
comment 5y ago · link · parent
comment 5y ago · link · parent
Some masters are guarded jealously by their owners. For example, I've heard that some of the Stevie Wonder releases aren't even from the masters, because he won't part with them. Some masters may truly capture something irreproducible; say, John Lennon's hoarse voice in "Twist and Shout."
In this particular case, at least, Taylor Swift has put the lie to the uniqueness of the masters. If she has the right to rerecord everything, the old masters aren't so special. But I think the article is also right. After this exercise, she may have made her point, and may force Shamrock Capital to make a deal.
comment 5y ago · link · parent
https://www.cherrymx.de/en/blog/cherry-mx-ultra-low-profile....