Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kaoD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
71 ms
·
841.
▲
by
kaoD
9y ago
Same here. For everyone that does this, I hereby recommend FireTitle (currently Crappy FireTitle) which lets you label windows with specific names and maintains them labelled across restarts. It immensely helps navigate the myriad of window
842.
▲
by
kaoD
9y ago
> Do you just pretend everything is pixel data? Pretty much. It's inconvenient because shaders are meant for vertices/fragments but it still works.
843.
▲
by
kaoD
9y ago
`String` copies are always `String`s and will live on the heap. AFAIK there are no stack strings (plain `str` which I guess is what you mean?) IIRC small fixed-size byte arrays (`[N; u8]`) are sometimes allocated on the stack depending on t
844.
▲
by
kaoD
9y ago
> you can easily create e.g. a `&str` out of a `String` or a `&[T]` out of a `Vec<T>`. I think what op means is both `&str` and `&[T]` live on the stack, even if they reference slices of heap-allocated (or static) d
845.
▲
by
kaoD
9y ago
Oh, we eat the oink too! ;)
846.
▲
by
kaoD
9y ago
I know! I said traditionally.
847.
▲
by
kaoD
9y ago
We have a saying here in Spain: from swine, even the gait. Yes, they only have two hinds each, but front legs are sold too (paletilla), papada (jowl), morro (snout), manitas (hoof), lengua (tongue), oreja (ears), various embutidos (cold mea
848.
▲
by
kaoD
9y ago
> collected user information from Facebook and displayed it on their own website I think that's an important distinction.
849.
▲
by
kaoD
9y ago
I didn't make it clear: I meant UI state, not application state. DOM manipulation is inherently stateful, and there is no way websockets are going to help with it. Now your state can live in up to three places: DOM, JS and backend. It&
850.
▲
by
kaoD
9y ago
> state spaghetti State is particularly hard to manage using jQuery because, unlike frameworks, it has no builtin way to deal with it. The disconnect between DOM and JS state is what makes frontend programming a pain to deal with. This
851.
▲
by
kaoD
9y ago
Don't. Please. I don't want to maintain your state spaghetti. Or if you don't have state to manage, but a few small interactions, just use the plain browser API. Back in the day jQuery was useful to maintain developer sanity
852.
▲
by
kaoD
9y ago
> the old html sites I write about here have a different type of construction, material, and value. These still exist. They are prettier and more content packed than the 90s ones you're reminiscing about, and there are many, many mo
853.
▲
by
kaoD
9y ago
> This article can be discussed on r/TTTThis. Oh the irony. The web has changed: in some ways for the worse, and in others for the better. I remember websites being like a lottery: sometimes you'd hit jackpot but most of them w
854.
▲
by
kaoD
9y ago
Strawman. He's not accusing Siftery of violating the ToS. He's accusing your company of spamming (even if within Twitter's ToS) low-value tweets.
855.
▲
by
kaoD
9y ago
It shouldn't according to its own instructions. I bet jump() has something like `if (robot.touchingFloor) { action = 'jump'; }` which makes your code work because it doesn't overwrite the robot action if it can't ac
856.
▲
by
kaoD
9y ago
I think it's just a case of leaky abstraction. I'd change the API to something like: robot.action = { action: 'jump' }; robot.action = { action: 'move', amount: 4 }; etc. Or if you want t
857.
▲
by
kaoD
9y ago
Assuming with blockchain you mean blockchain+PoW, I fail to see how it solves your problem. The gist of PoW is that so many people contribute work that it's difficult for any party to do more work than the other parties combined. PoW i
858.
▲
by
kaoD
9y ago
Similar in what way?
859.
▲
by
kaoD
9y ago
Spaniard here. Google tax was just a ploy from our crony capitalist government to divert money towards publishers aligned with them (i.e. most major news outlets). Actually, the publishers are the ones who promoted it (lobbying for it long
860.
▲
by
kaoD
9y ago
Try copying and pasting the graphs anywhere else :)
861.
▲
by
kaoD
9y ago
Well that's a gotcha on AES-CTR too. GP is asking about mistakes that could happen on AES-GCM that won't happen with AES-CTR+HMAC. I'm no crypto expert, but I'd say there are more opportunities of messing up with AES-CTR
862.
▲
by
kaoD
9y ago
Probably not https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_... JS unsafety comes from its loose rules regarding coercion, bugs that only pop up when they're actually executed (sometime
863.
▲
by
kaoD
9y ago
Well, there are plenty of number libraries like BN.js that univocally convert from/to buffers and have unlimited precision. Numbers are the least of my worries with JS security code.
864.
▲
by
kaoD
9y ago
Crypto is cryptography. You're not the first person that refers to cryptocurrencies as crypto and I'm not sure why.
865.
▲
by
kaoD
9y ago
It's unsurprising that discussig what a term means is just semantics ;) Git is not a blockchain (it's a DAG) but that misses the point: I think the term could perfectly be retrofitted if it was the case. Things predating a term do
866.
▲
by
kaoD
9y ago
And that is wrong AFAICT. PoW is what achieves Byzantine fault tolerance, not the blockchain. What blockchain achieves is proof of history given only the latest block's hash. This might or might not have a PoW on top of it to achieve B
867.
▲
by
kaoD
9y ago
Found the imperative programmer. I'm only half-joking: how often do you need an actual for loop instead of the more abstract concepts of mapping/reducing collections? I think you made his analogy stronger, not weaker. As a program
868.
▲
by
kaoD
9y ago
Are they? I know it's possible but I can't think of a single use where traditional software and/or contracts are more convenient. What does Ethereum with no PoW bring to the table?
869.
▲
by
kaoD
9y ago
And this is why URLs as input don't work: http://urlme.me/philosoraptor/what%20if%20urls%20were%20actu... ? Where's my question mark? ;) Nice idea and nice execution though, too bad the contraints work against
870.
▲
by
kaoD
9y ago
I was taught UML activity diagrams were high-level representations, while this is a (summarized) flow chart of code paths (which makes it quite big in comparison to what would be its high-level UML counterpart). UML is supposed to be an arc
More ›