Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dmytrish
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
dmytrish
9y ago
There's a GCC extension that also allows to mark C/C++ functions as `noreturn` (in C, it's a compiler-specific attribute, not a part of the language, unlike Rust): void myexit(int c) __attribute__ ((noreturn));
152.
▲
by
dmytrish
9y ago
> performance – I can see how a SPA may be slower to load initially but use fewer data and be more interactive later. > cross-browser consistency - do you mean that client-side frameworks are usually well-tested in different [versions
153.
▲
by
dmytrish
9y ago
> The major interaction that goes on in gyms is not between members or between members and staff, but between the fitness devotee and his or her body. That's exactly what makes a gym a palatable place for asocial types like me.
154.
▲
by
dmytrish
9y ago
It's hard to imagine natural formation of such a complex structure in real universe. It needs a lot of precision (interplanetary engineering?) or luck to put 416 bodies in the exact positions and velocity for the model to be stable. An
155.
▲
by
dmytrish
9y ago
Now it makes more sense. I'd prefer to have a brief technical explanation why Javascript is needed instead of this condescending labeling. Edit: NoScript is not a luxury for technically minded geeks anymore, it's a necessary prote
156.
▲
by
dmytrish
9y ago
In my experience, static site generators are not a complete solution. Unless you are satisfied with the default look and feel of generated pages (or a theme available), even Jekyll needs some tinkering, debugging and diving into the code. S
157.
▲
by
dmytrish
9y ago
I am not an expert in garbage collection techniques, but this article does not even mention locality of reference (copying GCs improve locality on each compaction) and how many cache misses are introduced by increased fragmentation. Are the
158.
▲
by
dmytrish
9y ago
You can write good code in Lisp, but isn't it wiser to choose a language/technology that drains less organizational resources for herding cats?
159.
▲
by
dmytrish
9y ago
tl;dr: doubling size of metadata (and usually a half of a 128bit address is zeros anyway). Having twice as much space occupied has many implications: twice as much space lost for data itself, less metadata will fit CPU caches, less throughp
160.
▲
by
dmytrish
9y ago
Return type polymorphism has usecases where it is irreplaceable (see other comment threads). I am just pointing out an example of bad use, which is not a problem of the language, just of this specific API. As for APIs in general, sometimes
161.
▲
by
dmytrish
9y ago
Thanks! I feel the same about "tmux vs screen": tmux panes are just so much easier to use and more flexible than in screen, even though screen can split windows).
162.
▲
by
dmytrish
9y ago
Today I learned that `:: IO [Int]` at the end of an expression is applied to the whole expression. Thanks!
163.
▲
by
dmytrish
9y ago
I am definitely not against languages extensions in general. I think that it's one of the unique features of Haskell that keep it stable and flexible at the same time. If I already have `ScopedTypeVariables` in scope for other valid re
164.
▲
by
dmytrish
9y ago
I don't know how can I actually do this inside a do-block: xs :: [Int] <- ... does not work without `ScopedTypeVariables` (and I don't like proliferation of redundant language extensions). In Rust, sure, it's not
165.
▲
by
dmytrish
9y ago
Yes, it feels great to just drop `read` into a context with enough type information to infer the return type. On the other hand, when the type context is not sufficient, it gets a bit bulky: -- with sufficient type context: xs <-
166.
▲
by
dmytrish
9y ago
I don't use panes much, but Terminal.app seems to have panes too.
167.
▲
by
dmytrish
9y ago
There are different dimensions of "complex": 1. How cumbersome a language is to use (as a beginner, as a confident developer, etc). - C++ is rather easy to start, but takes ages to master and surprises even powerful users daily. -
168.
▲
by
dmytrish
9y ago
Ads could run on something like the Ethereum virtual machine, having a limited amount of "gas" (instructions) to execute.
169.
▲
by
dmytrish
9y ago
https://www.nasa.gov/mission_pages/station/research/experime... This link is not exactly about low gravity (it's about zero gravity effects), but it might be reasonable to assume that the same mechanism
170.
▲
by
dmytrish
9y ago
Also, your blood won't boil and eyes won't pop put when exposed to the atmosphere directly. Also, no bone/vision problems due to one third of Earth gravity. Also, abundant water without sulphuric contaminants. Also, good prot
171.
▲
by
dmytrish
9y ago
GET requests just do not make sense for actions: they are cacheable and replayable. An http client/a proxy/something on the backend can cache it and avoid going to the actual logic. Also, mixing credentials into URL does not feel
172.
▲
by
dmytrish
9y ago
Actually, we had a POSIX port of Ling of alpha quality (e.g. no access to file system, a prototype of network connections based on libuv, etc) and experimented with running it on MIPS microcontrollers natively (not a great idea due to memor
173.
▲
by
dmytrish
9y ago
> If you had to build one from scratch, how would you do it? I consider Jupyter notebooks to be a fascinating evolution of the terminal paradigm: their basic behavior is close enough to a terminal, but then you are free to rearrange, rer
174.
▲
by
dmytrish
9y ago
I like Plan 9 terminal somewhat, even though it's infuriatingly simplistic and non-ergonomic: - the idea of the terminal as a document which can be navigated is pretty interesting (tmux fixes this to some degree). - the possibility to
175.
▲
by
dmytrish
9y ago
So there is no country called "Input/Output", what a bummer.
176.
▲
by
dmytrish
9y ago
No, there is O1 visa for that.
177.
▲
by
dmytrish
9y ago
Perl has a lot of crappy language design decisions (which make it "fun" and a tire fire waiting to happen in any large-ish codebase): - interpretation of a variable (is it a list, a number, a string, a hash?) depends on the contex
178.
▲
by
dmytrish
9y ago
Scala may be written in functional style, which is a poor match for JVM (e.g.: uglyness of `@tailrec` annotations, absence of mutually-recursive functions, JVMs GCs are not usually optimized for that many ephemeral objects, etc). Native cod
179.
▲
by
dmytrish
9y ago
Just a wild guess: Pascal may use tightly packed structures without alignment by default?
180.
▲
by
dmytrish
9y ago
This is also a good addition for functional programming in Python: https://github.com/kachayev/fn.py
More ›