Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jasper_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
751.
▲
by
Jasper_
6y ago
The overemphasis on parsing is ridiculous, with way too much theory that has little practical application. Parsing is boring, IMHO -- production compilers basically all use hand-written recursive descent, it's boring but it works just
752.
▲
by
Jasper_
6y ago
setuid breaks this thinking. For nearly 15 years, "beep" on Debian could be exploited to get root. "Don't write unexploitable code that runs as root" is not a solid defense mechanism for today's world.
753.
▲
by
Jasper_
6y ago
I believe you're getting confused. There's no bit string reversal in DEFALTE, it just changes your shift slightly. Both MSB and LSB have their advantages and disadvantages. As always, ryg has great posts on this stuff: https:
754.
▲
by
Jasper_
6y ago
Canonical Huffman can be thought of as a pre-determined tree shape that's easy to re-construct. First, decide your bit lengths from your probabilities (something the most probable should get the shortest code-length, choose wisely),
755.
▲
by
Jasper_
6y ago
That's pretty much all of them except LZW (which is an LZ78-alike, rather than LZ77). gzip has a number of Huffman tables for literals, distance, and for building Huffman tables at runtime... Yes, the instructions for building the Hu
756.
▲
by
Jasper_
6y ago
Gah! Another explanation that uses "Huffman Trees"! Nobody uses that, we all use Canonical Huffman, where all you have are the number of symbols per code length, letting you efficiently build tables. Yes, tables are used instead o
757.
▲
by
Jasper_
6y ago
It can't trust that all the metadata is correct, otherwise security issues can happen. And if you need to do that, why not just gather / regenerate the same information at compile time. Also, what do you do about code loading? e.g
758.
▲
by
Jasper_
6y ago
This was the "two-way data binding" model that Angular used and React famously knocked down. It's been part of UI toolkits for a long time. Remember Object.observe?
759.
▲
by
Jasper_
6y ago
I present an alternate argument. First, Tether ToS says that their tokens are useless and nonredeemable, and their service is not available to US residents [0]. Second, the majority of BTC/XYZ trades on major exchanges are for Tether [
760.
▲
by
Jasper_
6y ago
According to Tether's own transparency page [0], there's $30 billion of USD sitting in some random bank, somewhere. No, they haven't told anybody where it is, and they have never released an audit. Yes, they are still delayin
761.
▲
by
Jasper_
6y ago
There's more to hardware architecture than just "x86". The PS4 memory bus is completely shared between CPU and GPU, meaning that addresses on one are valid on the other. Emulating that on a general-purpose system with PCIe wo
762.
▲
by
Jasper_
6y ago
Fundamentalists take hardline stances to problems. To Stallman, one of the most unethical, immoral things one can do is to willingly run a computer program that they do not have permissions to modify. Very few people in the world, even most
763.
▲
by
Jasper_
6y ago
pjmlp, I don't know how you can keep claiming stuff like this. Android has fopen and pthread and you are allowed to use them in your app.
764.
▲
by
Jasper_
6y ago
> So I worry - will we ever replace the crufty parts of POSIX[1]? No, probably not, as much as I would love to, because there are still people who believe that POSIX's design ideals are to be aspired to, even as the world has aged h
765.
▲
by
Jasper_
6y ago
When you're a kid, tinkering is exciting. When you turn 30, you just want your software and tools to work. Janitoring your computer is not fun when it's in the way of your actual day job.
766.
▲
by
Jasper_
6y ago
Stallman's (and the FSF's) view on services is that it's like paying a plumber. The plumber isn't violating any of your freedoms by using non-free tools in their repair work, but it is unfortunate. This is a pragmatic vi
767.
▲
by
Jasper_
6y ago
There's already a "under penalty of perjury" in the DMCA for rightsholders. Though it's arguable whether it has been ineffective; most settle out of court before it gets that far. YouTube and their partners intentionally
768.
▲
by
Jasper_
6y ago
> I'm aware of that, but the reason YouTube has that process is because they don't want to get sued. If the law gave YouTube immunity by simply reporting copyright claims instead of taking them down, they would switch their pro
769.
▲
by
Jasper_
6y ago
The market cap of party confetti is over $1 trillion too. I don't think the market is anywhere near liquid enough to let you extract all of that $1 trillion, especially with Tethers looming over the whole industry.
770.
▲
by
Jasper_
6y ago
And Bitcoin was based on Hashcash and countless other distributed ledger systems before it. > I don't know - it'll take decades I would guess for it to be widely used Well we're already down one and a half decades. What if
771.
▲
by
Jasper_
6y ago
Can you name one specific use case you see distributed ledgers being useful?
772.
▲
by
Jasper_
6y ago
> - Presumably more people will be online, and more ways to use crypto will be released. Bitcoin launched in 2007. Facebook opened to the public in 2006. One of those has 3 billion users, the other can't get out of the basement. Why
773.
▲
by
Jasper_
6y ago
btw, if you ever thought engineers were terrible about naming things, check out Apple cultivars, where you have names like SweeTango™ [0] and Zestar!® [1] [0] https://sweetango.com/ [1] https://mnhardy.umn.edu&#x
774.
▲
by
Jasper_
6y ago
OK, I'll bite: how? They need some form of locking around Python objects accessed from multiple threads, since Python has no ownership model. Do they add a lock around each individual object?
775.
▲
by
Jasper_
6y ago
Texture arrays aren't available on GLES 2.0, which I believe WebRender targets. > It’s possible to append new layers into an array without moving data across PCIe and back. ? As far as I know, texture layer dimensions have to be spe
776.
▲
by
Jasper_
6y ago
I wrote a basic allocator for runtime lightmap packing (a very different problem than dynamic image packing tbf), and a simple skyline got me very good results, for about 50 lines of code: https://github.com/magcius/n
777.
▲
by
Jasper_
6y ago
Not if they can attack the network without anybody knowing. If an attacker secretly controls 51% of the coins (by, say, having three separate entities that each control 15-20%) and can manipulate the market in their favor by rejecting trans
778.
▲
by
Jasper_
6y ago
You do know that events can happen outside of the system, right? Adding more steps to the system won't help.
779.
▲
by
Jasper_
6y ago
OK. But what if the producer said they put 10 bananas, but they lied and actually put 8? When it finally gets to the recipient, nobody knows whether the shipping company stole them or whether the producer lied. The blockchain did not help.
780.
▲
by
Jasper_
6y ago
No, they're not? You can still have backroom deals with a blockchain, you just don't put the backroom deals on the blockchain.
More ›