Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jkrems
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
jkrems
12y ago
> What happened to just hiring the best people for a job rather than trying to create a corporate utopia? When hiring one candidate severely restricts hiring others (e.g. because that first candidate would make them feel uncomfortable an
122.
▲
by
jkrems
12y ago
It's not about shared hosts (at least if I'm understanding the topic correctly) but about /etc/hosts entries on your local machine for your local machine. As in: my-test-thing-a.dev 127.0.0.1 my-test-thing-b.de
123.
▲
by
jkrems
12y ago
Because you might want to have multiple vhosts running on localhost, separated by hostname.
124.
▲
by
jkrems
12y ago
I personally enjoy games for characters & stories. I don't need to "fight the game" for a sense of accomplishment. Not sure why that's "worse" than playing games that are hard to master. I played hard games
125.
▲
by
jkrems
12y ago
Looking at Google trends for "mean stack" tells a different story unfortunately: http://www.google.com/trends/explore#q=mean%20stack
126.
▲
by
jkrems
12y ago
One major difference: It's a native app, so it will use less resources, be snappier, and able to handle bigger files.
127.
▲
by
jkrems
12y ago
Except real, contemporary C++ compilers do not implement templates as turing complete: error: template instantiation depth exceeds maximum of 500 (use -ftemplate-depth-NN to increase the maximum) instantiating ‘struct a<500>’
128.
▲
by
jkrems
12y ago
This is not string interpolation. ES6 template strings can be used for multiline strings and string interpolation but that's just the basic case. What this article uses is "tagged template strings" - template strings where
129.
▲
by
jkrems
12y ago
> My question is, is there a real use-case for Turing-completeness inside a C++ compiler? That's a weird question because it seems to imply that "turing completeness" was a design goal of C++ templates. Afaik that's n
130.
▲
by
jkrems
12y ago
Yes, but what's your point? That version numbers aren't the best indicator for production readiness?
131.
▲
by
jkrems
12y ago
It's only lazy when using the chaining syntax - and that one was never a standard replacement since `_.map(arr, fn)` returns a wrapper around a value and not a value.
132.
▲
by
jkrems
12y ago
As I said: there's no guarantee it affects you. But messing with timeouts during startup (where stuff might be failing and prevent server processes from recovering correctly) can be an issue. Even when the process is long-running in ge
133.
▲
by
jkrems
12y ago
If the audience of your library is literally just one version of iojs and nothing else - then yes. But that seems pretty restrictive. Especially since we just reached the point where reusing libraries in different contexts (browser/nod
134.
▲
by
jkrems
12y ago
With a lot of files app startup can be delayed and the event loop be blocked. Which messes with timeouts among other things. The problem is that each file is loaded from disk and parsed in series without any level of parallelism (no real wa
135.
▲
by
jkrems
12y ago
Please don't rely on require hooks in libraries. They are kind of evil in applications already (because they amplify the "synchronous require" problem). Test your library against a version of 6to5, compile, publish, and remov
136.
▲
by
jkrems
12y ago
Good point. But my assumption would be that backslash was chosen because it's a reserved sequence that didn't have a meaning yet. E.g. they could have started suddenly treating "It costs $x, where x is the number of rides&quo
137.
▲
by
jkrems
12y ago
I would make a strong cut between "application code" and "library code". For the former compilation to ES5 is overkill because the author of the code controls the runtime. For the latter the library either has to contain
138.
▲
by
jkrems
12y ago
My example was from shell string interpolation/`sh`, which predates TCL by more than a decade. Not sure where your "I'd like people to study PL design history" comes from. It sounds kind of pretentious tbh. We were looki
139.
▲
by
jkrems
12y ago
The actual "discussion" was not about who invented string interpolation (I was talking about shell/`sh` string interpolation btw. which predates Python, Perl, and Ruby). It was about who they "copied" the syntax fro
140.
▲
by
jkrems
12y ago
...not to mention the habit of triggering assertion errors when combined with let-scopes.
141.
▲
by
jkrems
12y ago
> es5 is a dinosaur as of today I don't think so. People publishing libraries in ES6 are asking for trouble. There are far too many half-complete ES6 implementations out there and compiling to ES5 definitely is the way to go (for li
142.
▲
by
jkrems
12y ago
Syntax like `${x}` inside of string literals has been around a lot longer than Swift and is about as close to `\{p}`. I would be surprised if Swift has anything to do with it.
143.
▲
by
jkrems
12y ago
Yeah, sorry. I took a lazy shortcut there. What I meant was "they targeted the URL of rust's package manager and took a link to it down". It was less about the impact and more about how they couldn't claim that they hone
144.
▲
by
jkrems
12y ago
Well, they just took down rust's package manager on Github. That's an obviously wrong takedown. If I understand the system correctly, it actually is designed for "shoot first, ask questions later".
145.
▲
by
jkrems
12y ago
You are not blocking other users - the CPU is busy and couldn't do other stuff even if it tried. With using one process per core (plus a spare core for "other stuff") you get full CPU utilization. You are right that node is n
146.
▲
by
jkrems
12y ago
If they aren't just syntactic sugar - how to you think regenerator works? Show me a generator and I show you perfectly fine, synchronous (though verbose) ES5 code doing the exact same thing.
147.
▲
by
jkrems
12y ago
Generators can definitely be used as a tool for control flow - just like arrays. But the thing that actually provides the control flow part is not the generator - just like `async.series` is providing control flow and not the array you pass
148.
▲
by
jkrems
12y ago
> Promises and callbacks do not have this property: they force the programmer to make the continuation explicit. This is exactly what I'm complaining about in the gist... :( Generators != coroutines. You can use generators to simula
149.
▲
by
jkrems
12y ago
I'm not claiming they are like arrays as in "they have the same properties as arrays". I'm not talking about complexity of operations or even availability of operations. In the very beginning I name 3 categories. One of
150.
▲
Generators Are Like Arrays
(gist.github.com)
48 points
by
jkrems
12y ago
|
23 comments
More ›