Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shortercode
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
shortercode
1y ago
My brother had his plates nicked a few years back. Apparently they had lightly modified his plate so that it appeared differently ( can’t recall if it was marker or tape )
32.
▲
by
shortercode
2y ago
I used to work on the Construct 3 game engine. It’s great for doing small games. You can do a lot by just dropping images in and adding “behaviours” like “platformer movement” and “solid”. Which is enough to build a simple platform game wit
33.
▲
by
shortercode
2y ago
This book is intended to be a cover to cover job. I tackled it about 2 or 3 chapters at a time while building alongside. But after the midway point where it swaps to a C based byte code compiler I just read it instead. There are books like
34.
▲
by
shortercode
4y ago
It hasn’t been useful for some while sadly. Moderation is so aggressive that they seemed to have forgotten the purpose of the site is to help people. Quite a lot of the existing content is outdated or unclear. Also good luck writing a quest
35.
▲
by
shortercode
5y ago
It's "mature". So it's well understood, documented, used in libraries, has guides all over the place and relatively few bugs. It unlocks a number of nice to haves over WebGL 1 which improve usability, quality and perform
36.
▲
by
shortercode
5y ago
As someone who spends a lot of time looking at ASTs it feels slightly naive to write off type keys completely. They are particularly useful in TS because it uses flow analysis to isolate the correct interface pattern from a union of types.
37.
▲
by
shortercode
5y ago
Not all smart motorways have the hard shoulder thing, the ones that do have semi frequent "stopping bays". However, stopping in one without contacting the support staff(there are intercoms) or a good reason is an offence. They all
38.
▲
by
shortercode
6y ago
In an ideal world it probably would! WebAssembly only provides very minimal capabilities, anything more complicated than basic arithmetic and linear memory access require the features to be built. malloc, closures, arrays, error throwing, G
39.
▲
by
shortercode
6y ago
Codepen uses a system that measures loop duration, and it's a giant pain. Having done some pens that do ray tracing and image transforms which can have long running loops. Given the variable execution time of JS it can be quite random.
40.
▲
by
shortercode
6y ago
Interestingly quite similar to my own progression. I think working in modern typed languages ( Rust, Swift, Typescript ) is what primarily changed my viewpoint in a way that C and Java just couldn't. In the last year I've transiti
41.
▲
by
shortercode
6y ago
The largest issue with concrete is that we misuse it. As a building material it has great thermal mass ( aiding temperature stability ) and longevity. But all too often buildings are poorly designed for renovation, and hence end up being to
42.
▲
by
shortercode
6y ago
Atomics is part of the threading APIs, I'm guessing your browser doesn't support it. Although I feel like you should get a better error message...
43.
▲
by
shortercode
7y ago
While not quite the same the V8 team has a blog that discusses various improvements they are making. Such as the Orinoco GC project. Which typically contains some details on the implementation. It's a fairly fascinating window into the
44.
▲
by
shortercode
7y ago
This seems particularly unhelpful for bug reporting systems. Being able to see a specific bug is only happening on Chromium 78 for Linux can save a lot of time and frustration. In theory the user can fill in the details on a bug report them
45.
▲
by
shortercode
7y ago
Some companies in the UK offer health insurance for private healthcare. The main advantage of private being you can get appointments much faster. I'm not really sure what the relative pricing is for private healthcare in the UK vs the
46.
▲
by
shortercode
7y ago
Sad to hear WebSQL is finally going away. I used it a number of years ago for a mobile only project. At the time indexeddb was effectively unusable on iOS, and the data we had was too large and complex to store in localstorage. WebSQL was p
47.
▲
by
shortercode
7y ago
There's currently a proposal called "KVStorage" to add a localforage style inbuilt module to browsers. https://developers.google.com/web/updates/2019/03/kv-storage I'm not totally agr
48.
▲
by
shortercode
7y ago
Writing an Interpreter in Go and it's sequel Writing a Compiler in Go by Thorstan Ball are both excellent reads. Also enjoyed Game programming patterns by Bob again, but that has already been mentioned.
49.
▲
by
shortercode
7y ago
The possible syntax for Object literals is a lot more complicated than what JSON can contain. Hence the JSON parser is faster than the JS parser for the same object. JS object literals allow such fun things as: { "foo": &q
50.
▲
by
shortercode
7y ago
If the objects are not guaranteed to be in order, I would always consider them unordered. You could if both the producer and consumer are ordered, but as the OP noted this can cause problems later on and for no good reason. I'd use an
51.
▲
by
shortercode
7y ago
Last time I tried keeping a collection of simple DOM nodes to "recycle" my perf tests showed it was slower than just creating new nodes. So I wouldn't necessarily consider this an optimisation, although memory use might be b
52.
▲
by
shortercode
7y ago
As someone who has tried to do make a Minecraft clone in JavaScript perhaps I can shine a light on why I tried it. I guess first and foremost I'm fond of Minecraft and I'm primarily a JS developer. So when I wanted to improve my g
53.
▲
by
shortercode
7y ago
I consider it a must that code should be correctly indented, no matter the language. What I have issue with is relying on whitespace to represent scope etc. With .sass files I've had too many occasions where moving the content around b
54.
▲
by
shortercode
7y ago
I know this doesn't match up entirely with what you want syntax wise, but the following works and I consider it quite elegant. { let row; if (row = await db.findOne()) { // } else { //
55.
▲
by
shortercode
7y ago
I always assumed it was to protect against: accidental naming errors, confusion of what a declaration is and copy/paste issues. When I first started writing rust and saw it was a thing I thought it was a terrible idea. I'm a more
56.
▲
by
shortercode
7y ago
Looking forward to seeing it complete! I got into programming languages after reading Game programming patterns, and I'm absolutely hooked. When I saw you were working on this book I worked through the first half of it in a week using
57.
▲
by
shortercode
8y ago
I haven't tried other diary alternatives but recently tried Oatly and was pleasantly surprised. By itself it tastes remarkably similar to diary milk with oats in, minus the bits!
58.
▲
by
shortercode
8y ago
If the current event loop task ( you may need to read up on the JS event loop ) was spawned by something like a click event then it is marked as a "user interaction". These tasks can do things like opening a popup window, start au
59.
▲
by
shortercode
8y ago
The Java edition is the only one that supports mods. Development is parallel between it and the bedrock edition. The windows 10, android, iOS, Xbox one, PS4 and switch versions all use the bedrock edition. I would recommend starting with a
60.
▲
by
shortercode
8y ago
I completed the "Tree walking interpreter" section of this book about a month ago, I used modern JS to write it and I found it a really good experience and learned a fair bit. A lot of the content is obviously about implementing t
More ›