Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
OskarS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
811.
▲
by
OskarS
7y ago
This is a terrible idea! You're not avoiding anything, you would still have to escape these characters in CSV because it's entirely possible (in fact, almost certain) that someone will want to use the character itself in a CSV fil
812.
▲
by
OskarS
7y ago
Does the CLR for .NET do auto-vectorization? I've always found it very snappy as VMs go. What about Mono?
813.
▲
by
OskarS
7y ago
Awesome work. I've been a happy user of bat for a few months now, I've almost totally trained my brain away from typing cat.
814.
▲
by
OskarS
7y ago
It's a similar idea to that, but it's more lightweight and much more of a "drop-in replacement" for both cat and less. For instance, when using it as a replacement for "less", it will use terminal colors correc
815.
▲
by
OskarS
7y ago
To be fair, for Turing completeness, "looping constructs" are not actually necessary. None of the "foundational" computational models (Turing machines, lambda calculus, Post tag systems, Magic the Gathering, ...) has any
816.
▲
by
OskarS
7y ago
As a person developing VSTs, BitWig is supports them THE BEST. BitWig handles VSTs better than almost any other host, including (optional, but you should do it!) sandboxing and proper HiDPI support. You can absolutely make VSTs for Linux, b
817.
▲
by
OskarS
7y ago
Ugh. This whole blog post is giving me the heebie-jeebies. Replacing all static accesses with dynamic ones, and with endless function calls everywhere has to destroy performance. You're intentionally making it hard for the JIT compiler
818.
▲
by
OskarS
7y ago
Yeah, I'm skeptical too, but I still think it's a worthwhile investment to see what comes out. Probably nothing, but we need as much investing as possible in climate-friendly power sources. This bet might not pay off, but you do e
819.
▲
by
OskarS
7y ago
If that were the case, would the limits be so small? I mean, it's usually like "less than 16 characters" or something. The extra CPU time to raise that limit to, like, 128 or something would be totally insignificant (especial
820.
▲
by
OskarS
7y ago
Yeah. It either means that they do, in fact, save your passwords and the column in the database has a fixed length. Or... I dunno... the backend is written in C and they store the password in a `char password[16];` before sending it off to
821.
▲
by
OskarS
7y ago
Seems pretty competitive to me if the third fastest in your benchmark uses dancing links. I do think it's probably true that dancing links wont be literally the fastest, but the neat thing is that it's a generic algorithm that sol
822.
▲
by
OskarS
7y ago
Surely that can be restored? In firefox, if you accidentally close a window, there’s a “Recently closed windows” thing in the history menu you can use that brings back all the tabs.
823.
▲
by
OskarS
7y ago
If it's a three person SaaS start-up or whatever, there's no guarantee there's a dedicated marketing team. And even if there is, the engineers/managers don't know better than to tell their marketers "hey don&#x
824.
▲
by
OskarS
7y ago
The thing is, real cryptographers and computer security experts never use language like this. You'll never here Daniel Bernstein (or whoever) call ciphers "military grade". Moxie Marlinspike never calls Signal "military
825.
▲
by
OskarS
7y ago
Yeah, this part rings totally true: > I actually do a double-take when a company says "Military-Grade", as I start to question how well they know cryptography, and if they may have picked an inferior algorithm thinking it'
826.
▲
by
OskarS
7y ago
Surely both of those things are UB? I mean, it's not like the optimization is impossible (by rejiggering the code a bit, it kicks in), it's just that using uint8_t's makes the optimzation far more brittle, because the compile
827.
▲
by
OskarS
7y ago
std::vector is entirely defined in a header file (it has to be, it's a template), so whole program optimization (which is what I presume you mean?) doesn't enter into it. The entire definition of vector is within the same translat
828.
▲
by
OskarS
7y ago
It happens. You've taken reasonable precautions to safeguard your online identity, which is all one can really ask. Sometimes things slip through the cracks. The hacker is to blame, not you. The larger question is about if gem/npm
829.
▲
by
OskarS
7y ago
It's true, YouTube ads can be annoying in the sense that all advertising is annoying. But I personally find Medium far worse.
830.
▲
by
OskarS
7y ago
Fair enough, I was perhaps a bit dismissive of that one and should have looked closer. LFSR can certainly be perfectly acceptible PRNGs for this kind of game. By the way, Doom's random number generator for the game mechanics... not so
831.
▲
by
OskarS
7y ago
Essentially, yes, but the idea here is to create an endless stream but with just 7 pieces, so you restart the sampling after every bag.
832.
▲
by
OskarS
7y ago
You speak of Tetris like it's some abstract concept that has always existed and is like some eternal truth. It's not: it's a game that was created by one man, Alexey Pajitnov, who also just happen to be "the current IP h
833.
▲
by
OskarS
7y ago
Hubba bubba. This is maybe not the article to read if you want to learn how to implement randomness correctly. There's... many things wrong with it. Of course randomA is terrible, you're modding it with 16! It's never going t
834.
▲
by
OskarS
7y ago
It's not mostly the same thing, the difference is pretty significant both in practice and in a "type-theoretic" sense. I get what you're saying, that "pass by reference" and "pass by pointer" are both
835.
▲
by
OskarS
7y ago
I get the point, but I don't think the analogy holds. Dropbox is a consumer product, so of course convenience counts for a lot. But using Dropbox on your personal computer doesn't expose anyone (except maybe yourself) to being tra
836.
▲
by
OskarS
7y ago
> To implement an arbitrary data structure, these languages provide a special mechanism called records, structs, objects, etc. The proper name for it would be "tuple". It is the data structure that consists of a number of fiel
837.
▲
by
OskarS
7y ago
Compared to the effort of... you know... building an entire website, this seems like a tiny bit of effort. Is it really that hard to add three lines of server code to serve some content statically? Are we seriously saying that ANYTHING even
838.
▲
by
OskarS
7y ago
As some other people mentioned, Caps Lock on Mac keyboards are special, Apple added a delay or something for people hitting it accidentally. If you google around there's some fix for it, I think. If you're not having trouble with
839.
▲
by
OskarS
7y ago
I feel like the solution to that is to fetch those numbers server-side and cache them, then present them statically to the user. No tracking, no JavaScript, no cookies, it just works.
840.
▲
by
OskarS
7y ago
I'm a little bit confused by the terminology here. What exactly is a "transaction", in a lower-level sense? What does it consist of? Is it pure CPU processing of one data structure to another? Is it shuffling things around in
More ›