Better HN
topnewbestaskshowjobs
Log inSign up

snek

1,676 karma · joined Feb 24, 2017 (9y ago) · 439 submissions

Submissions

comment 6y ago · link · parent

I brought up web accessibility concerns with them almost a year ago and as far as I can tell all they've done since then is add `tab-index` attributes. Probably best to avoid this until they improve it more.

comment 6y ago · link · parent

Gotta appreciate the part implying that anyone who finds this document amusing is a "novice" programmer.

comment 6y ago · link · parent

I've been using this locally for a few years, figured others might enjoy it too. Feel free to contribute additional tool configs.

4.

Show HN: CLI tool to abstract make/npm/cargo/gradlew/etc.(github.com ↗)

1 points · by snek · 6y ago · 1 comment

comment 6y ago · link · parent

https://github.com/dherman/es4

comment 6y ago · link · parent

One of the biggest issues was that stakeholders were uncomfortable with having to ship their browsers with multiple engines to handle different versions of JS (or having to build one engine which could efficiently switch between all the features of different versions).

comment 6y ago · link · parent

There is a lot of excellent information on ES4 (and other things) in Allen Wirfs-Brock's "JavaScript: The First 20 Years": https://zenodo.org/record/3707008

comment 6y ago · link · parent

archive.is returns A records 1.1.1.1 and 1.0.0.1 (cloudflare ips) back when you query them using cf dns. This means that your browser sends a request to 1.1.1.1 with the host header set to "archive.md". cloudflare's proxy tries to find the relevant config for archive.md, and not hosting it, tells you it doesn't host that page. it also helpfully informs you that if you just added your site to cloudflare, it might take a minute for it to show up.

comment 6y ago · link · parent

False, archive.is serves 1.1.1.1 and 1.0.0.1 as A records back to people who try to resolve it using cf dns.

comment 6y ago · link · parent

Related: https://github.com/AndrewBelt/WiTeX or my modified version here: https://gist.github.com/devsnek/9689917c8095febbf48b91c2f8f5...

comment 6y ago · link · parent

As is mentioned in the article, u64 was used to future proof for wasm's upcoming memory64 type: https://github.com/WebAssembly/memory64/blob/master/proposal...

comment 6y ago · link · parent

there are no "async" or "sync" imports in js. there are static and dynamic imports. An implementation is free to spend as much time as it likes between parsing a file to get the static imports and actually running the file doing whatever it likes, including fetching urls, reading the file system, etc. dynamic imports return a promise but the implementation is free to resolve that promise immediately (e.g. `return Promise.resolve(loadSync(module))`)

comment 6y ago · link · parent

The lineup continues to balloon in price. A lot of students would the TK and TX models for robotics and whatnot, since they were only 200-300 bucks.

comment 6y ago · link · parent

The extension has nothing to do with DNS, a more accurate name would be "autocorrect over wikipedia".

The rust server set up with dnsmasq is a legit DNS server though.

comment 6y ago · link · parent

archive.org doesn't block you based on which dns resolver you use: https://web.archive.org/web/20190914012706/https://www.teleg...

comment 6y ago · link · parent

JS functions go back and forth because they're trying to provide optimized representation of functions based on guesses they make about the code. WASM plays an entirely different game. WASM bytecode is generally already extremely optimized (compiled with compiler -O flags, etc), the optimizations that a browsers apply are more about the machine the WASM running on (dealing with register allocation, simd instructions, etc). There is no guessing or opportunistic optimization like there is in JS.

comment 6y ago · link · parent

helpful mnemonic for remembering the difference between "log in" and "login": "I'm going to log in on the login page"

18.

Discord Incident Report (March 16 Outage)(status.discordapp.com ↗)

4 points · by snek · 6y ago · discuss

comment 6y ago · link · parent

> and did you know that IEEE-754 floating point can represent a "negative zero" that you can use for an error code in functions that return float or double?

I am begging, please never ever do this. NaN literally exists for this reason. NaN even allows you to encode additional error context and details into the value.

20.

JavaScript: The First 20 Years(zenodo.org ↗)

3 points · by snek · 6y ago · 1 comment

comment 6y ago · link · parent

Working with chromium/v8, I can honestly say google's code search infra is one of the most valuable resources available. I really hope they open source the backend at some point.

comment 6y ago · link · parent

add this to the list of things I wish I could unlearn

comment 6y ago · link · parent

It is moving forward, albeit slowly. With or without DoH/DoT, non encrypted SNI is a problem, and DoH/DoT have privacy improvements in their own right.

comment 6y ago · link · parent

There is already support for enterprise situations like you describe: https://support.mozilla.org/en-US/kb/canary-domain-use-appli...

comment 6y ago · link · parent

If you're about to comment on how dumb this is because SNI isn't encrypted please halt and search "ESNI"

comment 6y ago · link · parent

Yeah I think you're missing the part where you only added that file after being called out on twitter lol. The only reason I say "habits die hard" is because you consistently refuse to acknowledge that this ever happened.

comment 6y ago · link · parent

functions are the part you compile, everything else is just runtime data

comment 6y ago · link · parent

wasmer used a large amount of wasmtime code without proper attribution. I'm not sure this is a problem anymore but habits die hard and the owner of the company has not been shown to be the best person (won't go into that here since it's not as tech related)

comment 6y ago · link · parent

You already have to rely on a third party to get a domain (and to get an IP address)
12345
15