Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phs2501
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
phs2501
9y ago
Well yes, in theory, but it's generally considered in somewhat bad taste to replace fundamental basics of the language. At that point you're not really writing Clojure anymore, it's hard to read other people's code, it&
122.
▲
by
phs2501
9y ago
Oddly, as someone who was reasonably into Common Lisp, what really viscerally turned me off to Clojure was the use of square brackets. This sounds petty but I actually have some rationalization for it. Once you learn to read Lisp (mostly l
123.
▲
by
phs2501
9y ago
They make/sell "industrial" fanless Intel boxes. I got one of these[1] for a router, and it's worked well so far. No moving parts with an SSD. [1] https://smile.amazon.com/gp/product/B01KX9OU5
124.
▲
by
phs2501
10y ago
I dunno, it seems a dramatically more reasonable response to preventing accidents than the disaster that is PTC[1][2], which has cost billions and will probably never work properly. [1] https://www.aar.org/policy/positi
125.
▲
by
phs2501
10y ago
A Promise/async/await implementation of 'async.auto' is trivial, as you can use the behavior of promises themselves to avoid solving the graph: async function Promise_auto(tasks) { const keys = Object.keys(task
126.
▲
by
phs2501
10y ago
I kind of like Haskell, but the learning curve is brutal and the documentation is often intensely non-helpful if you don't want to learn a whole lot of mathematical terms. i.e. when browsing and trying to understand parts of the XMonad
127.
▲
by
phs2501
10y ago
I think it's cleaner to allocate the header information before the actual pointer (or, conversely, to return the pointer sizeof(array_header) into the allocation). Then it's trivial to pass around. struct vec_header_t {
128.
▲
by
phs2501
10y ago
If 1password has been injected with malicious code, whoever has done so will have all your encrypted credentials the next time you unlock your vault, including presumably your full Dropbox creds. (Caveat: I use Keepass2Android, which ironi
129.
▲
by
phs2501
10y ago
How would you handle being able to trap and fix bad memory access (i.e. hooking SIGSEGV/SIGBUS) with this scheme? Lots of programs use this for various reasons; off the top of my head at least a few generational GCs implement their wr
130.
▲
by
phs2501
10y ago
initramfs isn't (and wasn't) at all about keeping your boot files below the 2gb mark on a disk. It's about actually mounting your root filesystem, either on a fully-modularized kernel where all of your (hundreds of) block dr
131.
▲
by
phs2501
10y ago
It almost certainly saves space as the odd placement would be to optimize signal routing. You need a fair amount of space around a BGA to fan out all the signals, and at $20 they certainly have tried to do this with the minimum number of P
132.
▲
by
phs2501
10y ago
So someone found some sort of vulnerability in Angular 1, told Mozilla about it, but told them not to tell the Angular team? What is going on here?
133.
▲
by
phs2501
10y ago
If you hash, with or without salt, on the client for changing the password, you'll also need to hash identically when checking it (i.e. for login). In effect, the hash becomes the password; even if the plaintext is never leaked the fi
134.
▲
by
phs2501
10y ago
Can't speak for the original poster, but at this point Postgres is a very capable and performant document-store database as well with the addition of the JSONB type and associated indexing and modification (in 9.5) functions. It'
135.
▲
by
phs2501
11y ago
|& is useful in these cases, as it redirects both stdout and stderr to the piped process's stdin. It's a cshism, but it works in both zsh and modern bash. Much nicer than typing cmd 2>&1 | cmd . For context try grep
136.
▲
by
phs2501
11y ago
SPARC. The CALL instruction takes a 30-bit immediate. http://www.cs.rochester.edu/~scott/456/local_only/sparcv7.pd... Also the Mill talks seem to indicate that their (variable-length) instruction encoding
137.
▲
by
phs2501
11y ago
From the <link rel="shortcut icon"> presumably.
138.
▲
by
phs2501
11y ago
Since it died suck.com has been my canonical "poke the public-access WiFi gateway so it'll send me to its clickthrough agreement page" URL, since at least at one point that usually worked via DNS poisoning and I wanted to mak
139.
▲
by
phs2501
11y ago
But even with cmake there's no standard place for third-party libraries to be installed on Windows. There's no /usr/lib and /usr/include analogue. So if I'm writing software that uses a third-party libra
140.
▲
by
phs2501
11y ago
Also since packs are not used (the design document says it stores all objects as loose objects) there is no delta compression. This won't be usable for large repos with lots of history.
141.
▲
by
phs2501
11y ago
Fair point. What I was attempting to convey is that the reason I think the CL condition system works so well is that at its core it doesn't attempt to manage control flow directly; i.e. neither HANDLER-BIND nor RESTART-BIND unwind the
142.
▲
by
phs2501
11y ago
Restarts are nice. The thing is, though, is that restarts are relatively easy to add to any language that has well-supported structures for non-local control flow; they're just a protocol, after all. That's really what Common Lis
143.
▲
by
phs2501
11y ago
The F9's fuel is just rocket-grade kerosene, nothing particularly dangerous or exotic. The thrusters on Dragon on the other hand use monopropellent which is very toxic, but Dragon survived and impacted the sea.
144.
▲
by
phs2501
11y ago
No built-in help with native promises, but with something like Bluebird you'd prefer: something().then(() => { return Promise.delay(1000).then(() => { whoops_not_a_function(); }); }).catch(() =
145.
▲
by
phs2501
11y ago
IMHO, very doubtful; Bluebird has a lot of (very useful) features that would be pretty burdensome to put into a specification. On the other hand, there's really no reason not to use Bluebird. It's easy to ensure that a promise yo
146.
▲
by
phs2501
11y ago
They are an American company and America typically counts Sunday as the start of the week.
147.
▲
by
phs2501
11y ago
This bit me in a library of mine. Some third-party code I used was using long as memory offsets which failed on Windows 8. Unfortunately I was developing on Windows 7, so it didn't get noticed until the customer stumbled over it. :(
148.
▲
by
phs2501
11y ago
Why is it telling me to press Command+C to copy the password on my Linux machine? Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 And yes, anybody who would use a password that was generated on a foreign
149.
▲
by
phs2501
11y ago
The syntax looks a lot like M-expressions, but the evaluator is about as far from a normal Lisp as you can get. Mathematica uses a fixed-point evaluator; that is, expressions continue evaluating until they reach some stable state. Every co
150.
▲
by
phs2501
11y ago
Smearing is not suitable for all applications, however. For example, anything requiring sub-microsecond precision (i.e. data acquisition) would require at least a 12-day smear to not fail its timing requirements. Such precison is well outs
More ›