Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jasper_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
116 ms
·
781.
▲
by
Jasper_
6y ago
How do you perform validatable RNG in a smart contract, without an untrustable oracle service? The problem with smart contracts is that they can't deal with outside interfaces. The only gambling smart contract I'm aware of is the
782.
▲
by
Jasper_
6y ago
Internet gambling has the problem that you have to trust the "oracle" deciding the dice rolls. You give all your money to an anonymous address that promises you'll get your money back. You still need trust.
783.
▲
by
Jasper_
6y ago
How would it?
784.
▲
by
Jasper_
6y ago
I don't understand the supply chain use case. You can't trust the third party to enter "shipping container #123 has 10,000 bananas" into a centralized database, but you can trust them to enter "shipping container #1
785.
▲
by
Jasper_
6y ago
I partially agree, but I think a good middleground is for default configuration to be in a place like /usr/share/, and allow for admin configuration to happen in /etc/. This way, if you upgrade, you don't need
786.
▲
by
Jasper_
6y ago
Why does Array.prototype.find() return undefined and not null if it didn't find a value? According to your logic, the sentinel to indicate "this array doesn't have an element that matches the predicate" should be null.
787.
▲
by
Jasper_
6y ago
> JSON.stringify on an undefined property removes that property. Except, you can still differentiate between them: > ({ foo: undefined }).hasOwnProperty('foo') true > ({ }).hasOwnProperty('foo')
788.
▲
by
Jasper_
6y ago
The typical convention these days is: - /usr/ is read-only data. /usr/bin/ contains OS-supplied binaries, /usr/lib/ contains OS-supplied libraries. - /var/ is read-write state data and will
789.
▲
by
Jasper_
6y ago
That doesn't look like encryption or differences in algorithms, just the usual confusion and edge cases when you don't have a full mental model of the file format's fixed-size vfs entries.
790.
▲
by
Jasper_
6y ago
This is because we originally thought "only a human would be able to play chess", "only a human would be able to drive a car". The thinking there is that if we were to solve these problems, we'd have to get closer
791.
▲
by
Jasper_
6y ago
> If I have an byte-array, I can do none of these things short of implementing a good chunk of Unicode. If I truncate, I risk ending up with an invalid UTF-8 string. Yes, and? You can have an invalid sequence of Unicode code points too,
792.
▲
by
Jasper_
6y ago
So in one case, the text becomes corrupted and unreadable (i.e. loses its meaning), and in the other, it becomes corrupted and unreadable. What's the difference? Having "accents fall off" has gotten people murdered [0]. Accen
793.
▲
by
Jasper_
6y ago
> My Mac doesn't draw any faster than the Alto I used in the 70s. Yes it absolutely does, you just don't notice because of the increase in fidelity. What was then 640x480 pixels is now a 4K display. The total number of pixels i
794.
▲
by
Jasper_
6y ago
When I say "run", I mean "runs at target performance". Yes, sure, Turing completeness technically means that software raytracing "runs" on the Switch, we all know that, but it's not a viable solution for a
795.
▲
by
Jasper_
6y ago
I can't go into more detail because these platforms do not have any public documentation, but this is not true, you cannot use NVDEC. And it doesn't cover audio or synchronization.
796.
▲
by
Jasper_
6y ago
Bink isn't the codec, though that's good too, it's the software stack. How do you render AV1 on a PS4 or a Nintendo Switch, synchronize it with the audio stream? No, seriously, tell me. GStreamer with its ridiculous threading
797.
▲
by
Jasper_
6y ago
Despite all the hype, I don't think this will ever realistically happen. interface-types is (supposedly) here but it can't really hold onto DOM objects, it can only reference them, and nobody has made DOM bindings for interface-ty
798.
▲
by
Jasper_
6y ago
I don't think this is the latest iteration of the tech, but http://advances.realtimerendering.com/s2015/AlexEvans_SIGGRA... goes into the history and R&D behind Dreams's rendering engine.
799.
▲
by
Jasper_
6y ago
I haven't used it, to be quite honest, the games I worked on had the Mac/iOS ports done by a different team, but since I was usually called in to help diagnose customer issues in live and never had to touch the Mac/iOS audio
800.
▲
by
Jasper_
6y ago
Android does not have a functioning audio API. And really doesn't have the ability to mark threads as real-time that will stick. I've worked on Android game ports and done audio stack work, the whole thing is a shitshow and barely
801.
▲
by
Jasper_
6y ago
Still, a lot of people start out programming with complex compilers and end up being unable to hand-write their assembly code in pure HEX without the "help" of their compiler. Starting out, or only ever leaning a compiler is also
802.
▲
by
Jasper_
6y ago
SWF format details were published in 2010, and Flex was also open-sourced around that same timeframe.
803.
▲
by
Jasper_
6y ago
Red Hat ships source publicly, but not binaries. http://ftp.redhat.com/redhat/linux/enterprise/8Base/en/RHOS/...
804.
▲
by
Jasper_
6y ago
This is a circular linked list, where the ->next pointer points back to the head of the list. It's helpful for iteration tasks, since you can always walk the full list when you get access to one node. In most cases you use a linked
805.
▲
by
Jasper_
6y ago
You can write a basic (read: slow) rasterizer in 100 lines or so. It's mostly math. https://github.com/magcius/sw3dv/blob/gh-pages/sw_rast.js#L1...
806.
▲
by
Jasper_
6y ago
Then why hasn't it done any of those yet? Bitcoin came out in 2009, Facebook opened its doors to the public in 2006. One achieved world dominance, the other still can't get out of being darknet money.
807.
▲
by
Jasper_
6y ago
The JS rounding mode instruction wasn't even Apple's invention, it's standard ARMv8. But yes, Apple spends a lot on CPU design and it shows; ARM's Cortex performance for things like NEON is way, way worse.
808.
▲
by
Jasper_
6y ago
Here's an overly simple, impractically slow, but immediately consistent model for you: for every request from a client, ask all other nodes in the network the same query. If you get 100% consensus, return the answer, otherwise, ask aga
809.
▲
by
Jasper_
6y ago
Yeah. There have been multiple projects, even from inside Red Hat, to try to switch away from the text-based Berkley DB to any sort of reasonable database ( one example was razor: https://github.com/krh/razor ), but
810.
▲
by
Jasper_
6y ago
fcntl(F_FREESP) only works on old UNIXen. The Linux API equivalent is fallocate(FALLOC_FL_PUNCH_HOLE)
More ›