Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
s_tec
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
s_tec
8y ago
> This is the situation we don't want to be in, where the consumer is choosing. The consumer doesn't know. Even if you, a human, read the file, you don't know what the author's intention was. If I am importing a file
62.
▲
by
s_tec
8y ago
Right. In other words, if you `import` a file with that line, it should crash. If you `require` the file, it will do nothing. The context can determine the file type unambiguously, and you don't need an extension. > This was discuss
63.
▲
by
s_tec
8y ago
Exactly! You have to know whether something is a script or a module before you can parse it, but with this plan, that's always clear from the context. This is exactly how browsers do it, by the way. If you `import` something, is a modu
64.
▲
by
s_tec
8y ago
I wonder why they kept the ugly .mjs extension. This is a hold-over from an earlier plan, and doesn't seem necessary in this iteration. This new plan seem to be going down the path that `import` is for modules while `require` is for ev
65.
▲
by
s_tec
9y ago
Right, that is correct. To understand how that works, you have to realize that there is no such thing as an "absolute voltage", only the voltage difference between two wires. In a breaker box, one wire (white) gets tied to ground,
66.
▲
by
s_tec
9y ago
You are right. Three-phase needs less copper wire for the same amount of power delivery, which is the real reason everyone uses it. It needs less copper because it never has "dead time" where the copper isn't delivering power
67.
▲
by
s_tec
9y ago
Regarding three-phase power: The electrical outlets in your home have two power-carrying prongs. The third prong is just for safety (it connects to the ground), and should never carry power unless something is going horribly wrong. In that
68.
▲
by
s_tec
9y ago
There are three widely-used approaches to managing your own keys: 1. Store the keys on your own device, and also write them down on paper as a backup. 2. Store the keys on a dedicated piece of hardware, and also write them down on paper. 3.
69.
▲
by
s_tec
9y ago
Aside from a few cryptographic details (like which elliptic curve to use), this system is identical to [BitId]( https://github.com/bitid/bitid ). BitID is already being deployed in the Bitcoin ecosystem. For instance, yo
70.
▲
by
s_tec
9y ago
Most languages from the past 40 years have either been interpreted or JIT'ed. While this has many benefits, it also creates a walled garden where software can only talk to other software from the same ecosystem. You have to make a cons
71.
▲
by
s_tec
10y ago
With Chacha20 the worst that can happen is plaintext recovery, which is a lot less bad than full key recovery.
72.
▲
by
s_tec
10y ago
That code looks prettier than some C++ I've seen, though. As someone who works on a medium-sized C++ codebase, Rust is definitely interesting to me. If nothing else, Rust's dependency management and cross-compilation tools would s
73.
▲
by
s_tec
10y ago
We have been using [Bublé]( https://buble.surge.sh ) as our transpiler, and it's output is extremely readable. Bublé only supports a subset of ES6, but I think that's a worthwhile tradeoff for better debugging. Sourcemap
74.
▲
by
s_tec
10y ago
I run Cyanogen Mod on my phone without any Google services. I would like to see local bus times on my phone, but the app for that won't run without the Google map API. It's the same with many other day-to-day things I would like t
75.
▲
by
s_tec
10y ago
What about the third option, where a hacker can't install a rootkit even if they have physical access? That's what MS tried to build, but is now completely broken.
76.
▲
by
s_tec
10y ago
The AES-GCM mode of operation turns the AES block cipher into a stream cipher. Doing this makes it possible to add authentication on top for relatively cheap. The ChaCha20-poly1305 has a similar construction. These are the two most secure a
77.
▲
by
s_tec
10y ago
If a security researcher finds and reports a flaw in a system, they can get in trouble for unauthorized access. This is dumb, since we want flaws to be disclosed so they can be fixed. In a certain sense, systems that can be accessed, shou
78.
▲
by
s_tec
10y ago
Those 48 bytes are the two random numbers used as the private key, correct? The actual public key that gets sent over the wire is the 751 byte thing, if I read the paper correctly.
79.
▲
by
s_tec
10y ago
Diffie-Hellman is a key-exchange protocol. If two people want to exchange some encrypted information, they first need to share a secret key to do the encryption with. The problem is, they can't just send the key in plain-text, since an
80.
▲
by
s_tec
11y ago
The website had a link to the headphones in one of the FAQ documents. They are called "Tooks NextGen SPORTEC BAND" ( http://www.amazon.com/gp/product/B01459BC7G )
81.
▲
by
s_tec
11y ago
As I'm sure you're aware, restless leg is an odd "itch" that can only be "scratched" by movement (for lack of any good words to describe it). The movement isn't compulsory, but the discomfort becomes overw
82.
▲
by
s_tec
11y ago
I have tried a both a 15-minute "quick relax" session and a full 8-hour sleep session. Based on the "quick relax" session, I assumed this music was based primarily on binaural beats (hence the need for headphones), but t
83.
▲
by
s_tec
11y ago
The "kilo", "mega", and "giga" prefixes are part of the SI system of units. They have been around far longer than computers, and are all defined in terms of base 10. A "megawatt" is one million Watts,
84.
▲
by
s_tec
11y ago
It seems like you are actually agreeing with Paul Graham. You see the concentration of political power and the resulting erosion of the middle class, and you want to fix them. Great! Those are the kind of "bad" sources of inequali
85.
▲
by
s_tec
11y ago
Right, but the goal isn't to make a strong or useful encryption tool. The goal is to show that cryptography is, at it's core, rather simple. It's simple enough that we can cram "real" symmetric encryption into the s
86.
▲
by
s_tec
11y ago
The interesting thing is how small all these issues are. The Rust ecosystem has really matured a lot if it can now be used to write serious software like games with only minor issues such as these. That's a pretty remarkable feat for t
87.
▲
by
s_tec
11y ago
This is a marketing piece for their new GPU, which has ray casting built into the silicon. It's not clear how to access this new hardware (some OpenGL extension?), but they do mention that their chip gives shaders the ability to cast r
88.
▲
by
s_tec
11y ago
Their new GPU comes with something called an "RTU", which accelerates the ray intersections. This article is showing off one way to use their fancy new toy: http://blog.imgtec.com/powervr-developers/powervr-gr
89.
▲
by
s_tec
11y ago
How does one actually access this special ray-tracing hardware? Some sort of OpenGL extension? I looked around, but couldn't find any answers. None of their press seems targeted at developers.
90.
▲
by
s_tec
11y ago
Right, but your window size example would be a case of using the same value in more than one place, so it would be better as a named constant. Actually, the whole example smells ripe for refactoring. Where are there multiple windows through
More ›