Better HN
topnewbestaskshowjobs
Log inSign up

crazypython

4,542 karma · joined Jul 18, 2019 (7y ago) · 1,228 submissions

Submissions

comment 5y ago · link · parent

If self-driving companies really believed in their product, they would bundle car insurance that only works when self-driving is on with the product, and it would be cheaper than normal car insurance.

comment 5y ago · link · parent

Yandex Images – https://yandex.com/images/ It's much, much better than Google Images. The only Western equivalent that comes close is DuckDuckGo Images.

693.

Isomorphisms between Software and Law: A “slip law” is a Git commit(twitter.com ↗)

3 points · by crazypython · 5y ago · discuss

comment 5y ago · link · parent

Alternatively, with SGML:

  <path>
    <point x=10 y=10/>
    <point x=90 y=10/>
    <point x=90 y=90/>
    <point x=10 y=90/>
    <point x=10 y=10/>
  </path>

695.

Lazy deoptimization without code patching(docs.google.com ↗)

1 points · by crazypython · 5y ago · discuss

comment 5y ago · link · parent

>Not just this, but the ceiling of performance improvements matter a lot too.

But the floor can matter too. For someone trained to write high-performance JavaScript, JavaScript's performance floor is higher than Rust's, and they can write more JavaScript faster.

> A good example of this limit is something like the TypeScript compiler. It has huge performance issues with larger codebases, but unfortunately there's not much that can be done without rewriting the entire damn thing in e.g. Rust, because you've reached the limits of JavaScript.

Actually, you can fix it by rewriting it as a single-pass compiler to improve the algorithms.

comment 5y ago · link · parent

Node.js incurs a fixed initialization time of 0.09s on my machine, which in a real-world scenario has already occurred, and isn't a factor in runtime performance. That makes Rust only 5 times faster.

If the author had provided the input data, I would optimize the JavaScript further so that Rust and JS would be more even.

comment 5y ago · link · parent

D can compile your entire 140KSLOC project faster than Rust, TypeScript, or C++ can compile a single file. (The lexer has tricks like skipping multiple spaces at once in order to achieve this.) So, there isn't really a need for incremental compilation yet.

comment 5y ago · link · parent

You can even use opDispatch to generate methods or values of a class at compile time based on the name, Python __getitem__/JavaScript Proxy/Ruby style.

700.

Chrome extensions to block cookie banners, sponsored sections, paywalls, etc.(jameslu.substack.com ↗)

2 points · by crazypython · 5y ago · discuss

701.

Idioms for the D Programming Language(p0nce.github.io ↗)

158 points · by crazypython · 5y ago · 81 comments

comment 5y ago · link · parent

My site lacks an h1 currently– the layout doesn't need one– I wonder if not having an H1 is the same as having it the same as the title tag.

comment 5y ago · link · parent

Many Republicans chose not to run for re-election in 2018 and 2020. Perhaps those are the "former Republicans"?

comment 5y ago · link · parent

Clause 7.b of the GNU General Public License allows you to

"b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it"

I wonder if that makes the GPL compatible with this license.

705.

North Dakota bill would force Apple to allow other app stores(theverge.com ↗)

3 points · by crazypython · 5y ago · discuss

706.

D 2.095.0(dlang.org ↗)

3 points · by crazypython · 5y ago · discuss

707.

Dozens of former Republican officials in talks to form anti-Trump third party(reuters.com ↗)

7 points · by crazypython · 5y ago · 9 comments

708.

Show HN: Inspiration, wisdom, and advice by GPT-3(twitter.com ↗)

2 points · by crazypython · 5y ago · discuss

comment 5y ago · link · parent

We are so used to JavaScript SPAs taking a long time to load. People will Webpack it then use a tool to inline CSS and sort scripts. I find it easier and faster to use no loader at all, and manually sort scripts. The build process is less likely to break, because there is none, and it builds instantly, because there is none, it loads directly from the filesystem. Most modern browsers (even with IE11 included) support enough ES6 features that you can write your code directly in the common supported subset.[0] I had a multiplayer game with hundreds of hours of gameplay get on the front page with "loads in less than one second" in the HN headline. (http://vnav.io)

[0]: https://wwwperiodictable.surge.sh

710.

Deoptimization in V8(docs.google.com ↗)

1 points · by crazypython · 5y ago · discuss

711.

Show HN: A sophisticated GPT-3 playground(prompts-ai-self-clean.surge.sh ↗)

1 points · by crazypython · 5y ago · 1 comment

712.

Show HN: Using GPT-3 to generate Vim commands for editing text(jameslu.substack.com ↗)

10 points · by crazypython · 5y ago · discuss

713.

Node.js 14 is over 2x faster than OpenJDK HotSpot Java 15 for fib(n)(jameslu.substack.com ↗)

5 points · by crazypython · 5y ago · discuss

comment 5y ago · link · parent

The board's vote seems to be heavily biased in favor of large corporations, with half the seats for them, 2 for the community, and 3 for "project areas." Contrast this with the governance of GCC, which has all of them as community members or project areas.

715.

Interview with Bjarne Stroustrup About C++(snopes.com ↗)

1 points · by crazypython · 5y ago · discuss

1
232425
41