Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phs2501
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
151.
▲
by
phs2501
11y ago
* Non-blocking filesystem calls do not in fact work on files. If you think about it for a minute this makes sense. Network data is flowing in to you asyncronously, it will show up if you don't do anything (and trigger poll). But you
152.
▲
by
phs2501
11y ago
I like "Rewriting local history seems no different than rewriting code in your editor", that's a pretty good analogy I hadn't thought of. There are a (very) few instances where you'd want to rewrite something pushed
153.
▲
by
phs2501
11y ago
I agree with getting rid of noise and adding signal (see my sibling post) but banging a whole feature into a single commit is going way too far IMHO. "Added share_post plugin support" sounds like something that should be in a per
154.
▲
by
phs2501
11y ago
The point of rebasing for clarity, IMHO, is to take what might be a large, unorganized commit or commits (i.e. the result of a few hours good hacking) and turning it into a coherent story of how that feature is implemented. This means sp
155.
▲
by
phs2501
11y ago
Linux kernel aio will often still block when dealing with the page cache even if you request nonblocking. The workaround for this is to use O_DIRECT, which is okay for databases that do their own cache management but not for something like
156.
▲
by
phs2501
11y ago
Verbosity is not clarity. list.map(function(x) { return x * 2; }); verses list.map(x => x * 2); The actual functionality of the first is swallowed in visual noise (function, return). Yes, it's something new to lea
157.
▲
by
phs2501
11y ago
Interesting, I must have just gotten in at a bad point. Certainly when I was in sysadmin in the 90's and given a 3c905(-probablyB) and told to get it to work I had very little luck.
158.
▲
by
phs2501
11y ago
Well this certainly brings back (not so) fond memories of trying to figure out why the .200 net was down only to find that the intern has somehow yet again kicked apart the 10base2 tee behind his computer. Really, really not missing physica
159.
▲
by
phs2501
11y ago
That must have been later on, as I seem to recall specifically avoiding 3c905 because they emphatically did not Just Work with Linux; I distinctly remember strange network behavior I didn't see with other cards. I think at the time st
160.
▲
Castlevania producer's project becomes most funded game in Kickstarter history
(polygon.com)
2 points
by
phs2501
11y ago
|
0 comments
161.
▲
by
phs2501
11y ago
This may sound rather trivial but honestly the biggest problem I had with the previous book was how targetted it was towards the "traditional" higher-management executive in its language and examples. A lot of them were things th
162.
▲
by
phs2501
11y ago
Do you have a timeline for getting proper (source-mapped) file/line numbers in the console (and performance tools, I just checked and it's absent from there as well)? This is currently the main reason I reach for Chrome when I ne
163.
▲
by
phs2501
11y ago
Yeah, kind of lame that they couldn't be bothered to have a version with a normal text box for mobile rather than their fancy eat-all-of-the-key-events-even-control-characters desktop version. Still the thing is cool, just the explicit
164.
▲
by
phs2501
11y ago
There's also https://github.com/devongovett/pdfkit , which I've used to bulk-print ticket envelopes for an event. It does support multiple pages, as I had one PDF file per event occurrence (with 50-80 envelop
165.
▲
by
phs2501
11y ago
As an example of non-trivial parallelism with Promises and async/await, here's a (slightly naive) implementation of Promise.auto I just whipped up. async function Promise_auto(clauses) { let keys = Object.keys(clauses);
166.
▲
by
phs2501
11y ago
Promises are just as easy to parallelize as callbacks, though. Easier, IMO, since you can pull their values more than once. Here's an example of some code I had to write to query a somewhat nasty Web API: async function apiCall(me
167.
▲
by
phs2501
11y ago
OK, I'll shoot: Why not Promises? They don't handle streaming data, but they're not supposed to; they're supposed to model the traditional JS function call model (single value return or single value exception) which the
168.
▲
by
phs2501
11y ago
I'm having trouble grokking whatever type-added syntax you're using for Javascript here. I'm guessing it's: function ap(pf) { return (pa) => pf.then((f) => pa.then((a) => Promise.resolve(f(a))))
169.
▲
by
phs2501
11y ago
It is, but it only works for pairs and then you wind up with the relatively nonsensical 'fst' and 'snd' names. My preference would be: let user = await getUserByName('nolan'); let userAccount = await getU
170.
▲
by
phs2501
11y ago
The problem with "var d = defer(); ...; return d.promise;" vs "return new Promise((resolve, reject) => {...});" is that the former does not protect you from synchronous throws. In the latter (at least with every pr
171.
▲
by
phs2501
11y ago
...so you'd rather implement your own congestion control, your own windowing, your own reordering and reassembly, rather than just using TCP and letting the kernel do all that for you? To send a single file? And hopefully this self-m
172.
▲
by
phs2501
11y ago
Looks like everything runs on Wolfram's servers, the phone basically just downloads an image (which is then displayed on the watch). In that sense calling what you'd write/deploy an "app" is a little misleading in
173.
▲
by
phs2501
11y ago
I do grip mice "properly" with just my fingertips, and the puck mouse still felt incredibly horrible.
174.
▲
by
phs2501
12y ago
AFAIK (and I'm not a Windows person, so feel free to correct me) I/O completion ports are analogous to something like Linux's kernel AIO (asynch I/O). The model is to start an I/O operation on an fd (providing a bu
175.
▲
by
phs2501
12y ago
Minor nit: While Unix Domain Sockets (AF_UNIX) can send open file descriptors between processes, and it uses the msg_control field of sendmsg's struct msghdr ("ancillary data"), that's not the same as TCP's OOB dat
176.
▲
by
phs2501
12y ago
Well if you don't have enough access to the remote machine to locally get the objects or run "git branch oops <sha1>", you probably also don't have access to run a gc to prune the objects. In that case the "p
177.
▲
by
phs2501
12y ago
> I can relate for the most part. I can only think of one instance (in over half a decade) where I felt git's shortcomings: there is no way to get a deleted non-gc'd object from a remote to your local repository, even if you tr
178.
▲
by
phs2501
12y ago
I don't necessarily disagree that stuff is getting too bloated, but the iPhone 1 had 128 MB of RAM. So iPhone memory is doubling every 2-3 years so far. That trend will likely continue as Apple's software is also getting more bl
179.
▲
by
phs2501
12y ago
The namespace change is an official patch now: https://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-027
180.
▲
by
phs2501
12y ago
You'll probably run into all the same problems other Common Lisps run in to when they try to shake out the compiler from their runtime, namely that often you really do want to create and run new code at runtime (i.e. EVAL but much more
More ›