Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
malft
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
malft
3y ago
Regex-constrained GPT, what is a mnemonic for pi? > It's a word, a short statement or phrase which you learn. Can you make a good one? > Man, I wish I could recommend an answer. You're not gonna remember something, because,
2.
▲
by
malft
3y ago
If you are familiar with that paper, I'm a little confused by the results section. If I'm reading p01 from figure 7 correctly, the "before" is x&(x-1) and the "after" is a single instruction x&(x<<
3.
▲
by
malft
4y ago
TMDS will reduce the number of crossings, but 10110110 will still have more crossings than 0. It'll be some pseudo-random mapping, not "greyscale", but it'll still be readable. Look up the wikipedia page for 'ECB mo
4.
▲
by
malft
4y ago
The type looks a little insane, but it's just a combination of three mundane hacks that also exist in other languages. The first: If you need a serializer/deserializer in a simple language like old-school Java, you can either writ
5.
▲
by
malft
5y ago
Before you start rearchitecting your app, be sure to check if the only reason you're seeing preflights on GET is that someone added a dumb X-Requested-By header. (You can even do POSTs without preflight if you use a whitelisted content
6.
▲
by
malft
5y ago
'by a char or two', they said.
7.
▲
by
malft
5y ago
Pray tell, what is the size of a wchar_t on your system?
8.
▲
by
malft
5y ago
wchar_t *value = (wchar_t *)malloc(length); // The documentation says that if the string for some reason was not stored with zero-termination, we need to manually terminate it. Sigh! if (value[length]) { value[length+1] = 0; }
9.
▲
by
malft
5y ago
Isn't that how fundraising works? You make people commit to "supporting your cause" with a trivial pledge, so that when you ask for actual money they can't back out without losing face. "I will maybe log off at some
10.
▲
by
malft
5y ago
Java has all the security logic INSIDE THE VM . That's the big difference.
11.
▲
by
malft
5y ago
"You can't compress noise." Well, humans can't tell the difference between two snippets of white noise. It'll be fun. Remember jbig? (can't find the source, but iirc "most of what we're sending is tex
12.
▲
by
malft
5y ago
Yes, that's the point. If you need to parse a JPEG, you spawn a VM to do so. It is allowed to use n seconds of CPU, k bytes of memory, and send a bitmap back to the caller. (Sure, you could screw it up if the caller accepts a negativ
13.
▲
by
malft
5y ago
Why are the examples for P≟NP always so bad? "Solving TSP", "planning airlines better", "get the $1M bounty"? Why not SAT? There's a $200,000 bounty paid out every ten minutes for solutions to a well-kno
14.
▲
by
malft
6y ago
I assume it was flagged because unless you're already a true believer, "look! this falling building is falling according to the laws of physics" is not a very strong argument.
15.
▲
by
malft
7y ago
The very first code snippet is a reimplementation of 'chunk' that is at least quadratic. Run away.
16.
▲
by
malft
7y ago
This sentence sums up the paper: "Turing machines can only compute what can be modelled mathematically, and since we cannot model human dialogues mathematically, it follows that Turing machines cannot pass the Turing test."
17.
▲
by
malft
8y ago
It's very rare for something to scale sublinearly in the number of bits :-) complexity(2∗∗1024)/complexity(2∗∗762) comes out to about 1500x more work.
18.
▲
by
malft
9y ago
> The clear passwords present in jmxremote.password file will now be over-written by their SHA3-512 hash by the JMX agent I must be misreading this. As far as I can tell the ability to read the new format was added in the same version. D
19.
▲
by
malft
9y ago
"It's just a normal function." No, it has magical access to the lexical scope.
20.
▲
by
malft
10y ago
Secure payments? If you hook up a display to the secure enclave, suddenly it's really expensive for malware to steal your money. (Sorry, replied to the wrong comment and apparently can't delete now?)
21.
▲
by
malft
11y ago
They're allowed to ask "does anything on this system handle yelp:// URLs?".
22.
▲
by
malft
11y ago
Your mental superpowers are caused by a rare mutation shared with 40% of all people?
23.
▲
by
malft
11y ago
You get slightly more power in that you can post malformed multipart stuff.
24.
▲
by
malft
11y ago
An extra header.
25.
▲
by
malft
11y ago
getComputedStyle() doesn't work across iframes.
26.
▲
by
malft
11y ago
It would remove the incentive for employees to pay $2k of company money to get $100 worth of (personal) free stuff.
27.
▲
by
malft
11y ago
How does preconnect crossorigin=anonymous differ from a regular preconnect? (I'm guessing some http2 thing?)
28.
▲
by
malft
11y ago
Awesome! More of this. My competitors making suboptimal decisions based on immaturity or prudishness is free money.
29.
▲
by
malft
11y ago
A book in a library, perhaps?
30.
▲
by
malft
11y ago
Now run two fetches at the same time, and watch it get the data mysteriously mixed up 0.1% of the time.
More ›