Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
snek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
121.
▲
by
snek
7y ago
Goodness this website is slow
122.
▲
by
snek
7y ago
You can use regex for other characters, the point of the trim functions is that they match the somewhat complex unicode whitespace.
123.
▲
by
snek
7y ago
There is no type annotation proposal.
124.
▲
by
snek
7y ago
In JS, the pattern is the type. That is the point of duck typing.
125.
▲
by
snek
7y ago
This has been discussed a few times on IRC, but no one has made a proposal yet afaik.
126.
▲
by
snek
7y ago
It wasn't TS's idea, stage 3 exists purely for getting feedback from implementations about implementing and using the feature.
127.
▲
by
snek
7y ago
It's already been deployed in the wild for about a year.
128.
▲
by
snek
7y ago
Engines hold the entire source anyway, with the exception of XS, which returns "[native function]" for everything.
129.
▲
by
snek
7y ago
You only need to target old es if you're deploying a website for a big company. Most people don't need IE6 compat. For example, people writing node apps can choose which version of node they deploy.
130.
▲
by
snek
7y ago
The Function.prototype.toString change has been in chrome for maybe a year now btw.
131.
▲
by
snek
7y ago
Optional chaining is stage 3, and major engines are actively implementing it.
132.
▲
by
snek
7y ago
Yeah they really buried the lead here.
133.
▲
by
snek
7y ago
I got an email this morning that my hulu had been logged into... my hulu and my robinhood did in fact share a password. I have no evidence that these are connected, but better safe than sorry. (And I do use 1password now, I just didn't
134.
▲
by
snek
7y ago
I think you actually make the opposite point you're trying to make. Wikipedia doesn't use JS for navigation, just to provide those little popups. If you have no JS, the site works exactly the same.
135.
▲
by
snek
7y ago
I installed noscript to test this, and yes, the beta rewrite, whose selling point is react, is faster when react isn't allowed to run .
136.
▲
by
snek
7y ago
Did you read the article?
137.
▲
by
snek
7y ago
I would assume the skia wasm blob can be integrated with cairo canvas, as it has the same exposed api.
138.
▲
by
snek
7y ago
Your response makes it sound like this is intended more for cases where a site uses innerHTML and its too much of a burden to rewrite, so you allow only that innerHTML, but that allowed innerHTML is still susceptible to XSS, so what is the
139.
▲
by
snek
7y ago
We have APIs to put content in DOM elements without it being interpreted as html, and we have APIs to build DOM elements without using strings. Given that trusted types don't actually prevent xss from occuring and only make your data f
140.
▲
by
snek
7y ago
You have to sign up to read the report? I guess I'm never reading this report.
141.
▲
by
snek
7y ago
it costs money to be private
142.
▲
by
snek
7y ago
There is a deep comparison in the video in the post.
143.
▲
by
snek
7y ago
Even better, what if I have it on github because github pages is my site host?
144.
▲
by
snek
7y ago
https://hg.mozilla.org/mozilla-central/rev/6484c07ff836#l3.7...
145.
▲
by
snek
7y ago
haveibeenpwned doesn't accept plain-text passwords for checking, they use a k-anonymity model to protect both your passwords and the passwords in the database. the same goes for email addresses. https://haveibeenpwned.com&#x
146.
▲
by
snek
7y ago
> Are there projects out there using web assembly in production? pspdfkit, unity, google earth, and figma spring to mind. Obviously more stuff is using it, but it isn't like there's a big index of sites using wasm. > What ki
147.
▲
by
snek
7y ago
The thing I'm most excited about right now is WASI. It provides abstractions for system calls like fs, sockets, graphics, etc. But the best part is that the entire API is being designed with security and capabilities in mind. WASM bina
148.
▲
by
snek
7y ago
concurrency yes, parallelism no(t yet). each wasm module is single threaded, but you can create multiple modules in separate threads that communicate with each other via shared memory and atomic ops, but of course you have to figure out how
149.
▲
by
snek
7y ago
According to a 2011 study by Google, there are on average more people with just low vision/blindness online than there are Canadians online, and visual impairment is just one kind of disability.
150.
▲
by
snek
7y ago
LGTM https://gc.gy/31025051.png
More ›