Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jbert
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
211.
▲
by
jbert
14y ago
Does having a co-ordinated view of changes across a system also require some kind of notion of time? (At the least, a tick whenever some kind of changes happen?). Are there any insights to be gained over comparing this idealised view of tim
212.
▲
by
jbert
14y ago
Or, if used physical books can be sold, why not used eBooks?
213.
▲
by
jbert
14y ago
Thanks for the reply. I don't argue that it's not to spec, just that it seems not useful/a bit surprising. Some other languages (e.g. perl and I think also java) choose to make the loop var an alias, rather than a copy, to allow mutation:
214.
▲
by
jbert
14y ago
Yes, that works nicely, thanks. But sometimes (rarely) you do want a contiguous bunch of objects, rather than have the indirection. I think ideally, it would work (as an alias) but if not, I think it should error. Or maybe this is a FAQ, wi
215.
▲
by
jbert
14y ago
I'm learning a bit of go at the moment, and liking it a lot. One thing which caused me a little head scratching was doing something like this: for _, item := range slice_of_obj { item.update() } where the 'update' metho
216.
▲
by
jbert
14y ago
Doesn't he allow for this by normalising all songs to the key of C before doing the analysis?
217.
▲
by
jbert
14y ago
My production style is happy to use: $output *= $_ for (1..$n) and you're right to call me on it. If I am writing a multi-line for loop, I do like to name the loop var though. I think this is an interesting point (in a discussion a
218.
▲
by
jbert
14y ago
Yes, that sucks. It's not much extra typing: def function(x, y, z): versus sub function { my ($x, $y, $x) = @_; } The overhead is only really the 'my = @_;' chars, but it is annoying. On the other hand, it does allow you to do things lik
219.
▲
by
jbert
14y ago
I saw something for 5.16 and'push', but I've not been keeping up with the featureset since 5.10 properly. That's good to know, thanks.
220.
▲
by
jbert
14y ago
Thanks for that. First one (not 100% sure it's constant memory, I think perl optimises the for to avoid instantiating the (1..$n) list: #!/usr/bin/perl use Modern::Perl; use bigint; say fact(5000); sub fact {
221.
▲
by
jbert
14y ago
Would you like to post a representative snippet in your favourite lang? I'll try and rewrite in perl and we can compare. (All langs have particular sweet spots, if you do an R or APL oneliner or something it's going to be much more verbose
222.
▲
by
jbert
14y ago
> I remain unconvinced. Should the amount of effort that it costs to update the interpreter really be the main consideration? No, it shouldnt. But it's a proxy measure for the engineering and productisation effort which goes in. It's re
223.
▲
by
jbert
14y ago
Is ip spoofing generally do-able on todays internet? don't core routers In general implement ingress filters? So if I send a packet with a src ip outside of my providers op space it will get dropped?
224.
▲
by
jbert
14y ago
I guess it depends whether the oft-cited Dunning Kruger is linear. i.e. does a little knowledge of a subject allow you to understand how incomplete your knowledge is? http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
225.
▲
by
jbert
14y ago
But you have the same problem with text or binary distinctions. On some platforms, no distinction between them needs to be made (quite usefully, adding to tool simplicity and conceptual simplicity). If you use BOM, a tool which can operate
226.
▲
by
jbert
14y ago
The BOM is in-band signalling. It breaks the ASCII-backwards-compatability of UTF8. BOMs are only necessary where the provenance of data is not known. Normally, there is a context provided which will determine the encoding. Basically, yes -
227.
▲
by
jbert
14y ago
There's some economic activity here: "Space family stone" (a.k.a. Rolling Stones) is chronologically a little after "The Moon is a Harsh Mistress": http://en.wikipedia.org/wiki/The_Rolling_Stones_%28novel%29 Some John Wyndham: http://en.
228.
▲
by
jbert
14y ago
See also CPAN's Acme::Bleach module (language written only in whitespace). As a bonus, the Acme::Bleach module will take an existing perl program and convert it (overwrite it) with a version written in whitespace. "The first time you run a
229.
▲
by
jbert
14y ago
Yes, the idea of the analogy is that these concepts "make sense" near our current space-time location, but break down near the edges of our universe. Our brains think that "North" and "earlier" are directions which can be extended infinitel
230.
▲
by
jbert
14y ago
I've found one useful way to think about the question "what was before the Big Bang" is to ponder "what is North of the North pole"? Don't stretch the analogy too far - I'm not suggesting that spacetime is topologically shaped like that - b
231.
▲
by
jbert
14y ago
So openflow is useful within a cabinet? I was thinking you could have have "dumb box, many ports" and "smart box, few ports". Each cab needs one of the former, but you could get away with not many of the latter?
232.
▲
by
jbert
14y ago
What's the benefit of keeping the data plane on the cisco/junpier hardware? #ports per box? In my naivety, I'd expect the main benefits of openflow to be on the WAN links, so you could get away with 6 or so ports in a PC-like chassis runnin
233.
▲
by
jbert
14y ago
Yes, and I didn't mean to be rude to any team leads, sorry if it came across that way. In any role, it's important to communicate the work you're doing (ideally without bragging), up and down the hierarchy. That is hard for an umbrella to d
234.
▲
by
jbert
14y ago
> "Shit Umbrella" I have in the past categorised managers as "umbrellas" or "funnels" (and I guess there's an inbetween 'pipe'). The idea is that there is work the team should ideally not be doing (the 'shit'). That either needs to be r
235.
▲
by
jbert
14y ago
I used 0 as the example because the 8bit chip I was thinking of (the Z80) used that. But the exact address isn't too relevant, the basic idea is that the CPU has a default state for the instruction pointer, and can get things going from the
236.
▲
by
jbert
14y ago
Old 8bit processors just start with the instruction pointer at a known value (e.g. 0x0000). If you arrange matters so that until the CPU tells you differently, memory address 0x0000 holds your firmware, then all can proceed from there.
237.
▲
by
jbert
15y ago
I guess your next step should be to profile the apache reqs? Unless you know that you're doing CPU-heavy work in your apache procs (and it's unavoidable or already optimised), it seems that you could get back the responsiveness of your site
238.
▲
by
jbert
15y ago
But designing a good, minimalist one is reasonably hard.
239.
▲
by
jbert
15y ago
What I meant was that your group needs to have one "social" rule, "run all admin cmds under sudo, don't spawn a root shell and do it all there", for you to have effective tracking.
240.
▲
by
jbert
15y ago
For the binary "trusted or not" scenario can't you just have sudo-to-root? That tracks each user's actions (if they don't sudo -s) and gives the trusted/entrusted split. (bob can sudo but WWW-data can't).
More ›