Better HN
topnewbestaskshowjobs
Log inSign up

SloopJon

2,613 karma · joined Nov 15, 2013 (13y ago) · 775 submissions

Submissions

comment 5y ago · link · parent

There's a blog post that describes this:

https://andrewkelley.me/post/zig-cc-powerful-drop-in-replace...

HN discussion:

https://news.ycombinator.com/item?id=27872596

previous discussion:

https://news.ycombinator.com/item?id=22679138

comment 5y ago · link · parent

The first tweet links to an InfoWorld article (pseudo-paywall and many ads):

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

This is the library I settled on for a project a couple of years ago. Although I was intrigued by the magic of expression templates, my usage is actually pretty straightforward and boring. One thing it has that some of the other libraries I evaluated lack is the ability to parse numeric strings yourself, which I wanted for a decimal floating-point type.

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

I was reminded of this post by a bullet point in the "Constexpr is a Platform" post:

> 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

On the flip side, $3B is a lot more than it would have cost Oracle to keep supporting the platform. Having worked on a product that at one time or another supported Windows (including IA64), VMS (including IA64), and thirty-one flavors of Unix (including HP-UX and Linux on IA64), the marginal cost of continuing to support a platform is not that high. Sure, if the demand isn't there, we drop it, and we have dropped a lot of platforms over the years, including VMS and everything IA64. If HP claimed the demand was there, and furthermore claimed a contract required us to keep going, it would be a no-brainer. I don't get it. I mean, it's Oracle, so I get it, but I don't get it.

comment 5y ago · link · parent

If up to $100 million of that was to places like highway medians and a "parking garage ... surrounded on all sides by multiple companies offering gigabit service," then no, it's not odd at all.

comment 5y ago · link · parent

This is what I'm referring to:

> 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

One of the most recent citations (Shull et al. 2002) is freely downloadable:

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

I don't recall encountering this specific 100x claim, but I do recall Steve McConnell making a similar case early in Code Complete. In chapter three, he has a chart showing that the average cost of fixing defects post-release is 10-100 more expensive than during requirements, which he supports with the following citations:

"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

You're right. I didn't see that text anywhere on the page, but it indeed comes from the title element. It doesn't fit in the tab, but I see it now in the tooltip when I hover over the tab in Firefox.

comment 5y ago · link · parent

The current title is "Our lawsuit against ChessBase – Stockfish – open-source Chess Engine", which I found confusing. Is Stockfish being sued? Does it belong to ChessBase? I suggest sticking with the simpler title from the blog, "Our lawsuit against ChessBase".

comment 5y ago · link · parent

How does Markdown fill the niche of TeX or Scientific Word? Is there a mathematically oriented fork? You mentioned R Markdown in another comment, but I don't see anything in the gallery that looks germane.

comment 5y ago · link · parent

I said that they should. I don't know whether they do.

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 Twitter thread is lacking in attributions, but I saw most of these some months back after a post about scary FSD behavior. I watched with morbid curiosity, and a rising level of anger.

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

I wrote some Unicode generators for RapidCheck that worked perfectly well with GCC and Clang on Unix, but not at all with Visual C++ on Windows. The idea was to generate arbitrary code points within various ranges (ASCII, Latin-1, BMP, etc. for shrinking) as UTF-32 / UCS-4 in a u32string, then convert to the datatype and encoding for the API under test--UTF-8 in a string, UTF-16 in a u16string, UTF-something in a wstring, etc. The problem was, some of the conversion facets just aren't supported in the Visual C++ runtime library. I think I ended up doing the UTF-32 to UTF-16 conversion myself.

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 bought some Corel stock back then, thinking that the company would somehow leverage its stewardship of WordPerfect to Linux dominance. This was back in the days when lawyers didn't trust Microsoft Word to count words reliably.

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

I'll give my SSN to a healthcare provider, and maybe a bank. Random vendor using Stripe? Probably not.

Edit: to be a little less flippant, what is an example of a Stripe user to whom you would be comfortable giving your SSN?

comment 5y ago · link · parent

This is primarily about movies, with music handled by iCloud Music Library. Several years ago, I ripped my CD collection to whole-album FLAC files with CUE sheets using XLD. This works reasonably well in VOX for Mac and foobar2000 for Windows.

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

Although Richard wrote crunch in 2009, he didn't publish it until 2011. Therefore, it doesn't serve as prior art to invalidate the patent.

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

This is from 2018, with an update from 2019. It primarily focuses on the Wooting one, which is "sold out forever."

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

A fully split Advantage is a really interesting prospect. I have a Freestyle Edge RGB at home that I really like, and an Advantage at work that I haven't used in over a year.

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

I don't have a sense of how big a deal this is, but I had a totally random thought I after I read this:

> 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

iStat Menus:

> You can tell, since the screenshot of the power draw monitoring utility (iStat Menus) is twice as sharp in the second example.

comment 5y ago · link · parent

I got a 16" MBP last year in order to WFH. I could not get it to work with an old 1920x1200 Dell monitor using DVI adapters. Months later I bought a 1440 monitor that works over HDMI and DisplayPort, but the display is fuzzy. I found some tweaks to improve it, but it's still noticeably worse than a hackintosh running High Sierra.

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

The types of surprises that I've seen have to do with inferences that the compiler draws: this program would be undefined if foo was negative, therefore foo is not negative, therefore I can optimize away this condition.

comment 5y ago · link · parent

Probably because "+" is a special character in most shells. You'd have to quote the filename every time you did anything with it.

Edit: morning brain fart. Actually, I guess "+" is not all that special.

comment 5y ago · link · parent

I thought for sure that someone would have posted a link to that xkcd comic by now. I only dabble with higher-level APIs, so I can't judge this on the merits. If NVIDIA really continues to back this, and follows through on wrapping other libraries like cuDNN, it could be a whole new level of vendor lock in as people start writing code that targets CUDA Python. I think the real test will be whether one of the big projects like PyTorch or TensorFlow gets on board.

comment 5y ago · link · parent

I've always found the idea of master recordings curious. Once a song becomes a hit, the band may perform it almost every day for the rest of their career, but what we listen to through our headphones or speakers is this one particular moment in time. Yes, there are live recordings and bootlegs, but by and large it's this one master recording, which may get dusted off every couple of decades for a remaster.

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

I've never heard of Cherry switches on a laptop. Apparently this is the first model with Cherry MX Ultra Low Profile switches:

https://www.cherrymx.de/en/blog/cherry-mx-ultra-low-profile....

1
678
26