Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jaen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
151.
▲
by
jaen
3y ago
I am not in any sort of "camp", in fact I prefer using a mostly functional style. The above comment was based on experience working in large (~100M LoC) code bases. As the comment clearly indicates, it is about anemic/"n
152.
▲
by
jaen
3y ago
Option and Result types, as implemented today in mainstream languages (ie. mostly anemically), are not the answer to exceptions being a mess. Exceptions have a lot of additional functionality in larger ecosystems such as: - Backtraces ie. s
153.
▲
by
jaen
3y ago
From an optimization perspective, such dialects are pretty much like the intermediate datastructures the "single-IR" style passes build internally anyway (eg. various loop analyses), just in a sharable and more consistent (if less
154.
▲
by
jaen
3y ago
It requires the final function to have a numerically reasonable finite difference gradient, which is somewhat different from what is commonly referred to as "differentiable" - eg. the insides of that function could still use non-d
155.
▲
by
jaen
3y ago
It's an example of large domains where natural language does not work well enough, as a counterpoint to the arbitrary, niche CEO example of a situation where it might work. It is responding to the entire thread, not just your comment.
156.
▲
by
jaen
3y ago
When the end product is supposed to have any semblance of reliability and durability, even human beings do not communicate in natural language. As an example: - Science: Many non-natural languages and notations used for communication, math
157.
▲
by
jaen
3y ago
That's a somewhat one-sided view. For gaming and entertainment, yes, people would do it anyway, since it's just fun, but these do not contribute much useful information to the collective consciousness anyway. Hobbies & creativ
158.
▲
by
jaen
3y ago
This only applies to the most common form of anti-aliasing, multisampling. There is also analytical anti-aliasing, which derives the pixel coverage directly from the equations of the shape (for vector graphics), see eg. the implementation i
159.
▲
by
jaen
3y ago
The shortcuts also do not work properly on the most common US QWERTY layout (eg. the "-" key does not). They do work on most EU layouts though, where eg. "-" is placed left of Right Shift (on US QWERTY it is right of &qu
160.
▲
by
jaen
3y ago
> Windows 95 introduced this bizarre abomination in which 32-bit console apps were supported, but their IO was routed via a DOS program called CONAGENT.EXE. Windows 95 used the 16-bit COMMAND.COM as its default command-line shell, so doi
161.
▲
by
jaen
3y ago
Given that their "Command & Control" server already knows the user's IP anyway, this might be a disguise, with the actual intention being to check if Google is working from that IP, as these shady VPNs are often used to a
162.
▲
by
jaen
6y ago
When you think about in depth, the kernel can context switch between threads essentially for free when returning from a syscall (the work to restore a userland context is the same regardless of which context it is switching to, disregarding
163.
▲
by
jaen
6y ago
Seems like you just want a global variable that is shared between two cells? current_items = None def generate_numbers(): global current_items items = [] current_items = items while True:
164.
▲
by
jaen
6y ago
STM is not a solution to the pain of futures, STM is a "solution" to the pain of properly using locks, in particular when the concurrency is very fine-grained. A future internally is just a value or a set of waiters. Whether they
165.
▲
by
jaen
6y ago
This comment reads like a lazy ad hominem attack with no rational explanation for its position.
166.
▲
by
jaen
6y ago
http://lambda-the-ultimate.org/
167.
▲
by
jaen
6y ago
-? - what are you smoking? :) That is a glob in most shells, try putting a file named "-a" in your current directory and see what happens... The proper way to write it would be -\?
168.
▲
by
jaen
6y ago
Unfortunately, this naive method is buggy, I have had to debug and fix this exact code in production :) The issue is with exception safety - first, this does not handle exceptions in load() properly, but that is a trivial fix. The more insi
169.
▲
by
jaen
6y ago
That's only if you consider rectangles / squares in R^2. Of course, no such squares actually exist in the real world :) In computers, you're dealing with integers or floating point, and in them the set of rectangles / sq
170.
▲
by
jaen
7y ago
That just goes back to the question of what's the desired property. If the specification is that toString() must return a human-readable string, and eg. be a pure function/not throw exceptions, then most implementations would not
171.
▲
by
jaen
10y ago
TrustZone is basically the name for the ring -1/hypervisor access level for ARM CPUs, not a separate "engine" or product. It can be used to run and isolate code at a higher privilege level than an operating system eg. for DRM
172.
▲
by
jaen
11y ago
Chrome & FF do not use OpenGL drivers on Windows, they translate to DirectX using Angle: https://code.google.com/p/angleproject/
173.
▲
by
jaen
11y ago
http://keithjgrant.com/posts/against-css-in-js.html
174.
▲
by
jaen
11y ago
A low-level safe VM? That exists with PNaCl (Portable Native Client), which of course everybody dislikes as a web technology.
175.
▲
by
jaen
12y ago
Explicit stack-based interfaces are used for good reason: This allows simple accurate garbage collection (see eg. the Ruby API which requires somewhat error-prone conservative GC, Python which requires refcounts all over the place, or OCaml
176.
▲
by
jaen
12y ago
Does not actually measure the main overhead (especially on mobile) - loading and parsing JavaScript frameworks and templates, therefore not really a valid comparison.
177.
▲
Which Wikipedia pages are edited mainly by females?
(gnuband.org)
2 points
by
jaen
14y ago
|
0 comments
178.
▲
by
jaen
14y ago
A little more verbose? Lets see, Scala vs Java in a promise-based async server: Java (real code - this is a mild example, imagine this 8 indents deep): return users.verifyAccess(userId, oldPassword).flatMap( new Callable1<Promis
179.
▲
by
jaen
15y ago
The article indicates everyone gave their permission for using their name. Sometimes you stand up for people even though it might harm you personally.
180.
▲
Burzynski: Cancer Is Serious Business [vimeo]
(vimeo.com)
5 points
by
jaen
15y ago
|
0 comments
More ›