Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
inglor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
72 ms
·
781.
▲
by
inglor
11y ago
People are definitely interested. Posts about engine architecture are rare and interesting.
782.
▲
by
inglor
11y ago
Am I the only one who finds it odd that while pushing two high level but performant languages (Objective-C and Swift) Apple wrote their Swift compiler in C++?
783.
▲
React's New JSX Syntax. (Parody)
(developer.mozilla.org)
1 points
by
inglor
11y ago
|
0 comments
784.
▲
by
inglor
11y ago
Only if you're on the same file, in large projects in the best case scenario it becomes stuck for 15 seconds, usually it just doesn't work.
785.
▲
by
inglor
11y ago
This. I love the look of awe sublime people have when I open webstorm - perform a "go to definition" and it just works. It's amazing how many capabilities people miss on.
786.
▲
Azure down. Production servers hosted on Azure return 502 errors
(status.azure.com)
1 points
by
inglor
11y ago
|
0 comments
787.
▲
by
inglor
11y ago
Another good classic about it is Domenic's you're missing the point of promises at https://gist.github.com/domenic/3889970 from 2012
788.
▲
by
inglor
11y ago
If you're going to mention Kris and concurrency, you better mention: https://github.com/kriskowal/gtor
789.
▲
by
inglor
11y ago
That changes by language - what you say is true in Scala, but in JavaScript the terminology is different. A future is not defined, a promise is a future and a deferred is a promise.
790.
▲
by
inglor
11y ago
What about it? Remember, we're no longer using a hash function on anything - we don't want the numbers to be uniformly spread on any range - just unique.
791.
▲
by
inglor
11y ago
If you need the IDs to be unique per machine just use a unique-per-machine identifier - like the MAC address of the network card. Then use a counter that increments by 1 for each generated ID. If you need to be resilient to failures - just
792.
▲
by
inglor
11y ago
I've read this book and warmly recommend it. It has a very pragmatic "no bullshit" approach and it's very mathematical and concise. The neural networks chapter is tiny (but that's ok - that's not the focus) and
793.
▲
by
inglor
11y ago
I don't understand this post at all. He started with wanting compile time validation of the invariant ("A wizard cannot wield a sword") - then talked about how runtime solutions were not good and then ended up with a solution
794.
▲
by
inglor
11y ago
If it was possible, we'd remove `arguments` altogether in favor of rest parameters. There is absolutely no reason to use `arguments` in ES2015 anyway.
795.
▲
by
inglor
11y ago
"Renamed" would probably be a better term here than rejected.
796.
▲
Why does ++ have poor performance on big numbers in JavaScript?
(stackoverflow.com)
1 points
by
inglor
11y ago
|
0 comments
797.
▲
by
inglor
11y ago
"And strict mode, which is the default in ES6", this is not true, I think you probably meant "in ES2015 modules". "Loose" mode still very much exists by default in ES2015 (ES6).
798.
▲
by
inglor
11y ago
Fetch doesn't actually make an HTTP call - that's the thing :) Fetch boxes a value so that the _platform_ can make an HTTP call. You couldn't implement `fetch` yourself without platform APIs and you certainly couldn't d
799.
▲
by
inglor
11y ago
As a bluebird contributor it's worth pointing out that while our stack traces are pretty sweet - unhandled rejection tracking exists in most modern promise libraries.
800.
▲
by
inglor
11y ago
The same way you'd write "code that doesn't cause side effects" in Haskell. You cause side effects. The thing is with promises (like IO) the side effects are limited to a box you can open, process and close. So given the
801.
▲
by
inglor
11y ago
The type signature, with `catch` is something like Either mixed with `IO`, it's just a specific form of continuation[1]. Promises are not _exactly_ like an IO monad because it would not be pragmatic, but it serves the same purpose (con
802.
▲
by
inglor
11y ago
Hey! In NodeJS we added a handler that helps you with that here: https://nodejs.org/api/process.html#process_event_unhandledr... Here is a talk I gave about adding it last June: https://www.youtube.com/
803.
▲
by
inglor
11y ago
:( https://code.google.com/p/chromium/issues/detail?id=526811
804.
▲
by
inglor
11y ago
For this there are Observables and async iterators. I warmly recommend https://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2014/Ke... . I've also personally been using Rx and RxJS a lot and have been en
805.
▲
by
inglor
11y ago
You know, Haskell's IO is pretty much equivalent to JavaScript's promises. JavaScript's generators let you have do notation in JavaScript, and using async/await the "evented" stuff becomes not so evented and pr
806.
▲
by
inglor
11y ago
So much wrong in one place. A promise is the IO monad, with `then` being `>>=` [1]. If you write your promises code not to cause explicit side effects - it won't and you get pure code. The fact you have (controlled!) side effec
807.
▲
by
inglor
11y ago
They're always about "touching bases". What does that even mean in this context? No, I don't want your completely irrelevant position. When I tell you that I don't think your company should hire me to the role becau
808.
▲
by
inglor
11y ago
As a data point, 20% of the internet runs WordPress [1], think these people spent a lot of time thinking about architecture. A lot of time the problem being solved is in fact simple enough and easy enough to solve without thinking about a
809.
▲
by
inglor
11y ago
Just because uncle Bob says something doesn't mean it's true. Frameworks and stacks provide templates for building CRUD apps. Building CRUD apps (read: database skins) isn't a big technological challenge most of the times any
810.
▲
by
inglor
11y ago
> How would you go about implementing activeUser.Delete()? I guess you would have to replace the object. If we're talking about a functional style then yes, `User`s would be immutable object, changing them would return a new user. D
More ›