2,613 karma · joined Nov 15, 2013 (13y ago) · 775 submissions
comment 6y ago · link · parent
I actually wouldn't mind if they throttled this a bit. I keep a tab or two (dozen) open to Hacker News posts I haven't gotten around to reading yet. I dread restarting the browser, as several tabs inevitably end up displaying the "Sorry, we're not able to serve your requests this quickly" page.
comment 6y ago · link · parent
Whenever a post on PRNGs comes up, I'm reminded of this post from a while back about Chrome:
https://medium.com/@betable/tifu-by-using-math-random-f1c308...
Near the end is a Monte Carlo estimate of Pi using 10^10 iterations:
Chrome 3.1418697000 0.0002770464 1301.903s
Firefox 3.1416998084 0.0001071548 249.595s
Safari 3.1416692728 0.0000766192 7172.207s
The first observation is that the error was significantly higher for Chrome. The second is that Safari, which apparently did use a CSPRNG, was an order of magnitude slower. If you let Firefox run that long, I imagine that it would have performed many more iterations, resulting in much lower error.comment 6y ago · link · parent
Is it possible to get this thing running on Windows, or do I need to do it under WSL (or another computer)? Google turned up a package called UniCurses "with syntax close to that of the original NCurses."
Edit: I found Windows wheels for curses here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
And there is a visidata.exe in the virtual environment, which I presume is equivalent to the vd command.
comment 6y ago · link · parent
macOS and iOS (and indeed Apple itself) would not exist as we know them today, if at all, without very liberal cross pollination of APIs. In a parallel universe where APIs are copyrighted to the extent that Oracle wants, GNU would not exist. Konqueror and Safari could not use Microsoft's XMLHttpRequest(). The list goes on and on.
comment 6y ago · link · parent
Rather than curse the darkness, I'll quote the first sentence from the page: "Boa is an experimental Javascript lexer, parser and compiler written in Rust." What's so great about this particular release? "v0.10 has been the biggest release to date, with 138 issues closed!" Also, there's a test suite: 38,706 tests, of which 6,895 passed and 5,748 were ignored, for a conformance rate of 17.81%.
comment 6y ago · link · parent
https://github.com/NVIDIA/enroot
It basically returns containers to their chroot origins, promising "no performance overhead." I'm looking forward to more posts on that.
comment 6y ago · link · parent
Reading through the previous discussion, I think the biggest consideration for something like this is whether Mingw-w64 suffices for your needs.
https://news.ycombinator.com/item?id=23292161
The issue isn't whether the tools are capable enough, but whether they integrate well enough with the platform and any other dependencies your project may have. I'd be interested to hear from people who are using MinGW or Mingw-w64 on purpose. What works well, and what doesn't?
With Visual Studio Community, Microsoft has made its tools broadly accessible. However, if all you want is a compatible linker, this is in a lot of ways a regression from Visual C++ Express, which is no longer offered. Indeed, the compiler and linker used to be bundled in the freely available platform SDK. As someone responsible for testing C and C++ APIs, the licensing and packaging in Visual C++ 2019 will be a much bigger hassle than in previous versions.
comment 6y ago · link · parent
This is kind of a funny sentiment to me. I get that styles change, and that an interface can look dated with an old theme or old icons. Aqua looks out of place on a current Mac (although I kind of miss it), Aero looks out of place on Windows 10, etc.
Personally, I get a little annoyed when icons change. KeePassXC changed their icons a couple of months ago, and I still feel like I need to hover for a tooltip to confirm what this cryptic outline signifies.
I guess I just like the idea of a consistent design language, so overuse away!
comment 6y ago · link · parent
* "retina" Macs at 16" and 27"
* Windows laptop at 13"-ish and 3000x2000
* Mac and Windows at 24" and 1920x1200
All of these look fine to me, except for Windows at 1920x1200. I don't know if Firefox is especially bad, but that's my primary browser.
I wish I could better articulate what's wrong with it, but I don't think it's fixable with the ClearType tuner. It may just come down to preference--I use Macs more, so I prefer their font rendering.
comment 6y ago · link · parent
"The SOFTWARE is not licensed for datacenter deployment, except that blockchain processing in a datacenter is permitted."
https://www.nvidia.com/en-us/drivers/geforce-license/
This doesn't preclude use in a workstation, but they don't want you building a DGX A100 competitor using RTX 3080 or 3090 cards.
comment 6y ago · link · parent
Most of my poor attempts at parsing have been in the context of an offline tool. I find error handling hard enough using Yacc or Bison.
I missed the post that this one responds to, so I'm going back and reading that discussion too:
comment 6y ago · link · parent
comment 6y ago · link · parent
The claim at the top of the page is that "The ratings are based on the number of skilled engineers world-wide, courses and third party vendors." However, the details show that it really is just a single search term across a variety of search engines. Maybe they used to have an intern read the classifieds at the back of the Communications of the ACM or something.
comment 6y ago · link · parent
Are astronomers that confident in their models that the inferred shape of this galaxy is bizarre? I'd love to have that level confidence in software.
comment 6y ago · link · parent
comment 6y ago · link · parent
I find it much more pleasant to write, e.g., ODBC client code in C++ than in C, and templates have a lot to do with that. I'm not an expert with Lisp macros or other reportedly superior meta-languages, but I will say that when I write generic code in C# or Java, I really miss the power of C++ templates.
Template syntax is pretty awful, and accomplishing what I want can involve some really strange idioms, like SFINAE. The ergonomics are slowly improving with type deduction, constexpr, and now concepts.
comment 6y ago · link · parent
"A type system is a tractable syntactic method ... Terms like 'dynamically typed' are arguably misnomers."
https://stackoverflow.com/questions/9154388/does-untyped-als...
I still prefer the term dynamically typed, because there are useful distinctions about value types to be made among such languages, such as those described in striking's link.
comment 6y ago · link · parent
https://stackoverflow.com/a/56861355
https://travisdowns.github.io/blog/2020/01/17/avxfreq1.html
https://lemire.me/blog/2018/09/07/avx-512-when-and-how-to-us...
Excerpted from the Stack Overflow answer:
There are three frequency levels, so-called licenses, from fastest to slowest: L0, L1 and L2. L0 is the "nominal" speed you'll see written on the box: when the chip says "3.5 GHz turbo", they are referring to the single-core L0 turbo. L1 is a lower speed sometimes called AVX turbo or AVX2 turbo, originally associated with AVX and AVX2 instructions. L2 is a lower speed than L1, sometimes called "AVX-512 turbo".