Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
efaref
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
181.
▲
by
efaref
10y ago
It's a proprietary codebase, but it consists of around 500MB of mostly C and C++ files and their headers. There are a few other files (makefiles, a few perl/python scripts).
182.
▲
by
efaref
10y ago
It seems an order of magnitude slower to me: $ time grep -r some_token . real 0m0.467s user 0m0.252s sys 0m0.215s $ time ag some_token real 0m2.948s user 0m0.112s sys 0m3.083s (Both run twice to ensur
183.
▲
by
efaref
10y ago
You're right. Powerpoint has the advantage of being good enough, and ubiquitously available (for people with Office, which is pretty much everyone).
184.
▲
by
efaref
10y ago
It's weird, but I really do remember IE4 being great.
185.
▲
by
efaref
10y ago
Even that's an unnecessary complication. The code solution should read like the spec, so that if someone comes along later to make FizzBuzz depend on some other set of constraints, they know what to do. The compiler can optimize away
186.
▲
by
efaref
10y ago
How about you show me how comfortable you are with python by coding up a quick binary tree implementation?
187.
▲
by
efaref
10y ago
SMS-based 2FA is also a dream when you can glance at your wrist and then type the code in.
188.
▲
by
efaref
10y ago
I'm really going to miss the NHS when the tories have finished dismantling it. :(
189.
▲
by
efaref
10y ago
Sometimes you have to work on spec.
190.
▲
by
efaref
10y ago
Some people are really good at bullshitting their way through stuff. You need to make them actually do stuff to discover they flounder. And since you can't have them do anything meaningful in an interview (there isn't enough ti
191.
▲
by
efaref
10y ago
Well, I guess you could start your own company. You could even hire anyone who comes in the door claiming to be able to code, although what you'll do with a dozen people who can't even FizzBuzz is beyond me.
192.
▲
by
efaref
10y ago
The solution to buy-to-leave is surely extremely high taxation on properties left empty (and I'm talking "10% of market value" levels of taxation, enough to obliterate any possible returns on investment).
193.
▲
by
efaref
10y ago
If by "well documented" you mean "lots of people have whinged about it at great length", then I guess you're right. It's also a "tried and tested" method, too, so it's got that going for it. I t
194.
▲
by
efaref
10y ago
For something that claims to "grok" URLs, using "://" as part of the logo seems to be misunderstanding how URLs (are supposed to) work. According to RFC3986, URIs (the proper name; URLs are a kind of URI) are c
195.
▲
by
efaref
10y ago
And a password can change. If someone works out how to mimic my biometrics, what do I do?
196.
▲
by
efaref
10y ago
I did. Look at the second line of the macro expansion.
197.
▲
by
efaref
10y ago
The problem with solutions like this is that they break the abstraction of using algebraic notation for calculations. We're conditioned to expect calculations to be written in algebraic notation, and indeed one of the original selling
198.
▲
by
efaref
10y ago
I just tried this, and GCC6 does indeed optimise this correctly: 0000000000400560 <maybe_overflow>: 400560: 01 f7 add %esi,%edi 400562: 70 03 jo 400567 <maybe_overflow+0x7>
199.
▲
by
efaref
10y ago
The API for those is equally insane (they replace the arithmetic operation). See my sibling comment for a more reasonable proposal.
200.
▲
by
efaref
10y ago
A comment below reminded me of these: https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins... , which are close, but have an insane API as they replace your arithmetic operations with ugliness. I think they
201.
▲
by
efaref
10y ago
Am I the only one who thinks that writing if (x + y < x) is utterly insane? It completely breaks the abstraction of algebra that's being used in the language. Much better would be: if (ADDITION_WOULD_OVERFLOW_INT(x,
202.
▲
by
efaref
10y ago
Whilst nowhere near as bad as black lung, RSI and lower back pain caused by sitting all day are real things. Programming isn't without its own physical risks.
203.
▲
by
efaref
10y ago
You could have used CBOR for many of those things ( http://cbor.io/ ).
204.
▲
by
efaref
10y ago
Why don't you publicly insult them all and find out? For science, of course.
205.
▲
by
efaref
10y ago
I think vanilla accounts automatically get the battle chest version, which is expanded to included the previous expansion during each expansion. It looks like the battle chest includes everything up to Pandaria, now. https://eu.
206.
▲
by
efaref
11y ago
:help :v will tell you: :[range]v[global]/{pattern}/[cmd] Same as :g!. Where: :[range]g[lobal]!/{pattern}/[cmd] Execute the Ex command [cmd] (default ":p") on the lines within [range] where {pattern} d
207.
▲
by
efaref
11y ago
You only have to look at long-term trends to see what nonsense that is. Since you mentioned milk, let's use that. In the UK, in 1914, a pint of milk cost 1d, and the average wage was 16s 6d for a standard 58 hour working week. That&
208.
▲
by
efaref
11y ago
Manual deallocators are more interesting. PJSIP[1] has an interesting approach to this. SIP messages have lots of strings associated with them, are usually relatively short-lived, and typically you'll want to modify these strings or
209.
▲
by
efaref
11y ago
If anything, Rust shows that you can have reliable "manual" memory management without the need for a GC. The best of both worlds. While I don't buy the GC performance argument, it's ok to use it, because most of the tim
210.
▲
by
efaref
11y ago
That's just a no-true-scotsman fallacy. And pinning versions just means you lose automatic updates, which is surely the point of using a package manager in the first place. Otherwise you might as well just download the package and inc
More ›