Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phiresky
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
151.
▲
by
phiresky
7y ago
From the author of uBlock on this: What we see are the public statements, for public consumption, they are designed to "sell" the changes to the wider public. What we do not see is what is being said in private meetings by officer
152.
▲
by
phiresky
7y ago
> Objectively, it simply isn't, obviously To be fair, TS has some pretty bad unsoundness problems, especially regarding co/contra variance in generics, and for example some annoying weirdness with number/string keys in obj
153.
▲
by
phiresky
7y ago
here's a full example. If you do this: function test(p: {k: false | 'x' | 'y' | undefined}) { // do stuff } const p = {k: 'x'} // inferred type: {k: string} &#
154.
▲
by
phiresky
7y ago
Your problem there seems to mostly be that you tried to directly port it without any modifications, and your code is actually incorrect in some places. For example, if you implemented Result<T, E> as a single class that had a `if(this
155.
▲
by
phiresky
7y ago
Inside of type descriptions, literal values are always treated as literals. The problem only appears when you declare a variable _without_ an explicit type like `const foo = {k: 'x'}`, which the compiler then infers to be of type
156.
▲
by
phiresky
7y ago
> in many cases being unable to import a JS library in that doesn't include typedefs Make sure you have "allowJs": true in your tsconfig.json. Otherwise, you'll have to create a minimal file with `declare module "
157.
▲
by
phiresky
7y ago
True. My main problem is that blocking WebRTC blocks some very interesting methods to "re-decentralize" the web, which are only viable if most people don't have it disabled.
158.
▲
by
phiresky
7y ago
The only thing blocking WebRTC gets you is that it hides which subnet you are on, right? As in, an attacker can still just enumerate all of the common ones (10.0.0.0/24, 192.168.0.1/24, and like 5 others) and get the same results
159.
▲
by
phiresky
7y ago
> People who speak different lanaguges litteraly "think differently" This widely held belief is absolutely not a proven fact. It's called linguistic relativity or linguistic determinism [1] and the strong form (language de
160.
▲
by
phiresky
7y ago
Framing a law that forces companies to allow you to export your own personal data in a readable format to reduce vendor lock in as "this will definitely cause the next Cambridge Analytics!" on the basis of "but user authentic
161.
▲
by
phiresky
7y ago
> Wrong, false, liable, limited set of privacy related information should be correctable, removable Which is exactly what the law is for. The examples in the article were deceptively reported. For example, the doctor who asked The Guardi
162.
▲
by
phiresky
7y ago
Have you tried using a different camera app? e.g. Open Camera
163.
▲
by
phiresky
8y ago
I would in fact argue that until we are at a point of diminishing return of improving hardware that it is good that software is becoming more and more "bloated", because that's the only incentive to keep researching more effi
164.
▲
by
phiresky
8y ago
Yes, this 450 line program could have been written in whatever native language you want with probably 3x the code and time spent, but why would you? Developer time has been more expensive than hardware for a decade now. Everyone here loves
165.
▲
by
phiresky
8y ago
True - which is kind of weird, because as far as I understand their respective "databases", borg would be more suited for arbitrary remote storage because it should only need a "upload file" command basically without any
166.
▲
by
phiresky
8y ago
Borg Backup is mostly the same as Restic (regarding dedup / incremental backup) [1] and aggregates data into large chunks. If you only backup from a single machine it has a local cache of already backed up data, this has the large adva
167.
▲
by
phiresky
8y ago
You can kind of give generics names by declaring them in an interface and passing T extends Interface as the generic parameter
168.
▲
by
phiresky
8y ago
You realize that your problems with Rambda were mostly fixed in TS3.4?
169.
▲
by
phiresky
8y ago
I love how you always just instantly appear outta nowhere when someone mentions a problem with ripgrep or makes a false statement about it :)
170.
▲
by
phiresky
8y ago
You should watch this video about how bad the voting procedures actually are: https://youtu.be/lzigiPUXNzI
171.
▲
by
phiresky
8y ago
You're really arguing that 700 representatives from 30 countries speaking in 10 different languages with live translation and voting with automatic tallying is _archaic_? But I agree, the way the counting works and how they do not seem
172.
▲
by
phiresky
8y ago
Also, you can apparently connect the puppeteer client to a running chrome instance [1]. That way you can use the nice and statically typed puppeteer api and you should have pretty much zero overhead. [1] https://github.com/G
173.
▲
by
phiresky
8y ago
It uses the devtools protocol, see here https://chromedevtools.github.io/devtools-protocol/ Looks like it's a REST protocol. You have to connect to a tab and then call e.g. Runtime.evaluate {expression: &quo
174.
▲
by
phiresky
8y ago
You can run puppeteer with any chromium binary, including non-headless mode. You can also just start chromium with debugging active `--remote-debugging-port=9222` and then connect to that port and send any dev console commands.
175.
▲
by
phiresky
8y ago
That's pretty much what they are publicly saying, right? > This decision, as well as our discussion of it, is an experiment: while we are not sure that it is the right decision today, we believe that the AI community will eventually
176.
▲
by
phiresky
8y ago
Wealth is not a zero sum game.
177.
▲
by
phiresky
8y ago
Looks nice, but it is not open source.
178.
▲
by
phiresky
8y ago
Feel free to share some of your expert knowledge with the rest of us (instead of just complaining about comments from non-experts).
179.
▲
by
phiresky
8y ago
I'm sure reserving 10GB of space will greatly "improve the reliability" of my Windows installation on a 60GB partition (on a 120GB dual boot SSD) with 5 GB free.
180.
▲
by
phiresky
8y ago
SQLite does not support BLOBs larger than 2GB, so in that sense it's only as good as FAT32
More ›