Better HN
topnewbestaskshowjobs
Log inSign up

SloopJon

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

Submissions

comment 6y ago · link · parent

> Restoring a session is 17% quicker, meaning you can more quickly pick up where you left off

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

> If the results are reliant on your RNG method I would not settle for less than crypto strength

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

I looked at the dizzying list of install options, then noticed pip at the top. After installing into a virtual environment, I found a tutorial that said to run the vd command. I wasn't sure if pip would install a command in my path, and it didn't. I tried to run it as python -m visidata, and got a ModuleNotFoundError for _curses.

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

> No, just use address sanitizer

In fairness, the next sentence in the post is:

> Techniques like this can be a nice complement to external tools like Valgrind or AddressSanitizer.

comment 6y ago · link · parent

I saw one question from Gorsuch quoted in reports about the arguments that bothered me: "What do we do about the fact that the other competitors, Apple, Microsoft ... have, in fact, been able to come up with phones that work just fine without engaging in this kind of copying?"

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

I haven't read the paper yet, but if I understand the post correctly, this interface represents numbers as the product of a rational and a recursive real, where the latter may be 1.

comment 6y ago · link · parent

I guess technically, the title should be "Boa release v0.10." Better?

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

Enroot sounds interesting:

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

> I rebound the left space bar to the Command Key

My left space bar is backspace. I sometimes get confused when I switch to a different keyboard, though.

comment 6y ago · link · parent

It's not the point of the article, but where did he find the Wall Street Journal for $120 / year? I'm seeing an introductory rate of $20 / month for a year, and $40 / month thereafter.

comment 6y ago · link · parent

Whereas some of the previous packages were freely available, the build tools now require a Visual C++ license, as I understand it. If you aren't eligible for Visual C++ Community, and you don't have Visual C++ Professional (or equivalent), you can't use them.

comment 6y ago · link · parent

There are two interesting aspects to this. The first, which I initially thought was the point, is cross compiling programs for Windows using Mingw-w64 (a fork of MinGW) in a container. Actually, this is just used as a dependable way to build the second, which is a portable archive of a Mingw-w64 development environment; portable in the sense that you extract, add to PATH, and use without any other installation required.

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

> material icons are overused

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

I spend most of my time on the following computers:

* "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

Speaking of "how to name things," how is target framework name abbreviated to TFM?

Edit: found it--the "M" is for moniker.

comment 6y ago · link · parent

One possible strategy for Trump (which would be very much out of character) would be to wait out of respect for RBG and/or the Garland precedent. Meanwhile, he uses the empty seat as a campaign issue to keep reluctant conservatives from jumping ship.

comment 6y ago · link · parent

From the GeForce software license:

"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

Interesting to see that an RTX 3080 is faster than a dual RTX 2080, and more than twice as fast a single RTX 2080, which is consistent with one of NVIDIA's claims.

comment 6y ago · link · parent

This post is a next-level look at parsing interactively in an editor or IDE. Not only do you want it to be fast, but you want it to be resilient enough to provide useful output given incomplete input.

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:

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

comment 6y ago · link · parent

The similar quote I've heard is, "Form is liberating." I feel like I heard this in the context of poetry in high school, but Google turns up a bunch of references to The Mythical Man Month.

comment 6y ago · link · parent

Would an AMD event like this usually be an announcement about future products, a paper launch, or could one expect to buy one of these processors soon like? I'm looking to build a new system around an RTX 30-something. I would even consider a pre-built system if I can't get my hands on retail parts.

comment 6y ago · link · parent

The FAQ says that their dataset only goes back until June of 2001, so I imagine the methodology for the prior years in the Very Long Term History section was somewhat different.

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

I find it funny when scientific articles (esp. pop astronomy) describe something as weird, bizarre, or extremely unlikely. We're reversing the effects of gravitational lensing on a galaxy at a distance that's a significant fraction of the radius of the observable universe.

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

Right, but TIOBE doesn't measure usage. It measures popularity by way of search engines. As people blog about their favorite new feature of C++20, it drives interest.

comment 6y ago · link · parent

One thing I did after the RTX 30-series announcement was a back-of-the-envelope comparison of performance per dollar and performance per watt, taking NVIDIA's numbers at face value. The 3070 and 3080 are surprisingly close on both metrics. You pay a substantial premium for the 3090, but it does have the best performance per watt.

comment 6y ago · link · parent

I consciously avoided C++ since the late 90s, lest its litany of accidental complexities crowd other more important things out of my brain. I was drawn into it recently by a work assignment, and have been pleasantly surprised by modern C++.

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

This post, which talks about AIX 7.1 on POWER7, was published in August of 2010.

comment 6y ago · link · parent

I'm not sure what you mean by a seed. If you mean a salt, that's no more secret than the hash. It has the effect of requiring you to crack each hash separately, but doesn't make it any harder to crack an individual hash.

comment 6y ago · link · parent

For those downvoting aidenn0's comments, I was surprised to find that "untyped" is indeed a common term that includes what many people (myself included) call dynamically typed. See the three top-voted answers to this Stack Overflow question, one of which includes a citation from TaPL, a standard text (emphasis added):

"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

The three links in the third paragraph of the article describe the meaning of license in this context:

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".

1
101112
26