Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Nitramp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
181.
▲
by
Nitramp
11y ago
Woohoo! It's the second coming of stored procedures and PL/SQL! Party like it's 1988! Seriously though, these kinds of architectures come at a cost. The website's claims are either misleading, or the authors haven't
182.
▲
by
Nitramp
11y ago
Absolutely, my critique was just about recursive vendoring.
183.
▲
by
Nitramp
11y ago
Flattening identical versions reduces the size/expense, but it doesn't really help if all libraries have slightly differently versioned dependencies. That is common, in particular if people depend on exact versions.
184.
▲
by
Nitramp
11y ago
This is similar to node_modules + npm, in essence. Having used node and npm on both small (~200 transitive deps) and large (~1000 transitive deps) projects, I think this is an approach that's conceptually not a good idea (outside of po
185.
▲
by
Nitramp
11y ago
That's a common problem with globally inferencing compilers, you strictly cannot know who's right about a type. I think that's a good reason to prefer a language with local type inference, but no type inference across functio
186.
▲
by
Nitramp
11y ago
The names are extremely predictable (as shown by this Markov chain), which is actually a Good Thing (tm). The bad thing is that things got complex enough to warrant these names. It's the knee jerk reflex of decoupling everything, to th
187.
▲
by
Nitramp
11y ago
Regular expressions are dangerously complex for validation code, it's too easy to overlook something or miss some context (like multiline mode, see also riffraff's comment). So the problem is probably not developer knowledge (note
188.
▲
by
Nitramp
11y ago
If you don't provide value to your customers (Advertisers) due to fraudulent clicks, ultimately your product is less valuable, and you make less money. I think Google's incentives are alright here.
189.
▲
by
Nitramp
11y ago
Yes, the 10 ms would be CPU time, not wall time. But still, 10 ms really is not a lot on a 600 MHz machine. How long does your front end take to serve one request? How many qps do you serve from a single instance? I have some go code with a
190.
▲
by
Nitramp
11y ago
> So, obviously they've found something they're concerned about, but it seems to me to be a bit early to say as Spiegel Online do that software caused the crash. I would assume the Spiegel report is based on more sources than j
191.
▲
by
Nitramp
11y ago
> This doesn't surprise me at all. It is trivial to run a site on app engine that can handle hundreds of requests a second continuously without leaving the free tier. Really? The free tier comes with 28 instance hours per day. That&
192.
▲
by
Nitramp
11y ago
I think there is no point in trying to emulate different language semantics on top of JavaScript. asm.js is a weird hack that lives in a totally different world than actual browser APIs (e.g. the DOM), and you have to emulate your entire ru
193.
▲
by
Nitramp
11y ago
If you require certification of software by some standard, companies will build software that passes the certification standard. But in my experience, the assumption that a security, quality, or whatever certification process correlates wit
194.
▲
by
Nitramp
11y ago
Not sure how universal this is, but I think many large companies have compensation systems/plans that are very uniform and don't leave a lot of negotiation to happen: http://www.quora.com/What-are-the-best-tips-for
195.
▲
by
Nitramp
11y ago
Regarding enum support, you can create type safe enums in Go like this: type Color int const ( Red = iota Blue Green Sausage Yellow ) The `Color` type is not compatible with int, so except
196.
▲
by
Nitramp
12y ago
Error messages really are core feature of parsers. Would you want SQLite to just "return false" whenever there was some syntactical error somewhere in your query? With error recovery in the context of a parser I mean the ability t
197.
▲
by
Nitramp
12y ago
They are crazy fast Do you have a link/citation for that? I always thought they were asymptotically linear due to the memoization, so comparable to LL, LALR etc, but in practice much slower due to the overhead compared to tho
198.
▲
by
Nitramp
12y ago
I've written parsers with ANTLR, lex/bison, and other tools, and I've hand written parsers. With the generators, it's very hard to get several features of a high quality parser right. In particular error messages and err
199.
▲
by
Nitramp
12y ago
The URL class in Java is special, as in especially broken. It's very old code that probably wasn't a good idea even back then, and it's never been changed for backwards compat reasons. Use java.net.Uri, or e.g. the equivalent
200.
▲
by
Nitramp
12y ago
It's fine to have a (string) + (string) operator, it's just generally a less than brilliant idea to have a (string) + (arbitrary) operator that does an implicit string conversion. But all of that's fine compared to PHP's
201.
▲
by
Nitramp
12y ago
Both of those platforms have perfectly reasonable languages available (Java & Swift or ObjC), why would you use JavaScript over them? Cross platform UI has AFAICT never worked, so you won't be able to reuse code from one platform o
202.
▲
by
Nitramp
12y ago
Are there actually reliably numbers/analyses on that? I heard the sentiment many times, but I have seen no proof of it.
203.
▲
by
Nitramp
12y ago
I've seen people leave University with all As in their degrees who couldn't parse a string into a number, and were pretty sure that that was in fact impossible.
204.
▲
by
Nitramp
12y ago
This code is converting a bunch of bytes into an integer by bit shifting. So it's specific to the binary representation of ints in your language, and how types of various sizes and signedness interact. Note that this doesn't depen
205.
▲
by
Nitramp
12y ago
The hardest part is actually layout managers, i.e. what happens if you want to support more than one pixel width. With all its clunkiness, CSS & DOM actually solve that. edit: they actually have their own layout implementation(s). I won
206.
▲
by
Nitramp
12y ago
Indeed, Go only solves one problem by baking it into the language/runtime, it doesn't have a generic mechanism to solve similar problems. But my point is that it solves the problem much better than monads do - in particular if you
207.
▲
by
Nitramp
12y ago
Effect Typing and Monads are yet another colour for the lipstick you put on the pig. You still have non-composability (i.e. the async monad spreads through your code), you still have the complexity, you still don't have proper tracebac
208.
▲
by
Nitramp
12y ago
Could you give some examples of what you mean with "web ignorant"?
209.
▲
by
Nitramp
12y ago
Though it's worth noting that Inbox and similar properties do not use it for UI code, but only (exclusively) for business logic below the UI layer. UI code is written in pure JavaScript/Closure.
210.
▲
Clang-format for JavaScript, awesome code autoformatter
(probst.io)
3 points
by
Nitramp
12y ago
|
1 comments
More ›