Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cygx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
99 ms
·
511.
▲
by
cygx
6y ago
We should go more old-school and resurrect NNTP instead: Have clients that render Markdown, and servers where users can create their own access-controlled groups. Have a group where only the owner may post: That's a feed. Have a group
512.
▲
by
cygx
6y ago
Depends on the benchmark. Eg at the bottom of this page [1] can be found a simple fib(40) comparison of a few runtimes. The Node time is at 2.6x the LuaJIT time, which I'd still consider in the same ballpark compared to eg the factor o
513.
▲
by
cygx
6y ago
Also keep in mind that as far as performance of dynamic languages goes, all of the P* languages (Perl, Python, PHP, and... Ruby ;)) have been left in the dust by the front-runners (eg Node.js or LuaJIT). Perl used to be king a long time ago
514.
▲
by
cygx
6y ago
Or The Language Formerly Known as Perl6 [1], where it won't cause much friction as variable names ordinarily start with a sigil. [1] https://docs.raku.org/syntax/identifiers#Ordinary_identifier...
515.
▲
by
cygx
6y ago
They're (probably) alluding to the fact that command.com is spelled cmd.exe since Windows NT became the mainline.
516.
▲
by
cygx
6y ago
Maybe I'm blind, but I don't see any such download link. Or did you use 2 - Dowload clojure.jar as a shorthand for 2.1 - Install Maven 2.2 - Install git 2.3 - Clone https://github.com/clojure/clojure.git 2.4
517.
▲
by
cygx
6y ago
Where can I get such a clojure.jar? What worked for me was ... 2 - Download clojure-1.10.1.jar, spec.alpha-0.2.176.jar, core.specs.alpha-0.2.44.jar from mvnrepository.com ... 5 - java -cp clojure-1.10.1.jar;spec.alpha-0.2.176.jar;core.specs
518.
▲
by
cygx
6y ago
That was a thing even before AJAX came along, eg via forms targetting an iframe. A long time ago, I wrote a single-page chat application that continuously updated through chunked transfers, with submission via a plain old HTML form that r
519.
▲
by
cygx
7y ago
On top of that, FLRW spacetime is a large-scale approximation: More realistic models should probably follow the 'swiss-cheese' approach, where local conditions can look rather different.
520.
▲
by
cygx
7y ago
Gravity. Gather enough stuff, and you end up with balls (unless you spin things really fast).
521.
▲
by
cygx
7y ago
Drag a marker with a constant radial velocity (from your perspective) across a spinning disk. It'll trace out a curved line, so from the perspective of an observer on the disk, an acceleration must have been present. The full 3d Coriol
522.
▲
by
cygx
7y ago
It's a C idiom. Some people prefer `for(;;)` over `while(1)` to create infinite loops.
523.
▲
by
cygx
7y ago
The C language standard makes certain guarantees, such as no out-of-bounds array access, or no modification of memory accessed through a restrict-qualified expression by other means. If such things happen during program execution, the progr
524.
▲
by
cygx
7y ago
Fortran 77, when the latest version is Fortran 2018? It was the first relevant search result. Feel free to look for more recent resources on the topic, eg https://www.sciencedirect.com/science/article/pii/S1
525.
▲
by
cygx
7y ago
It's forbidden by the language standard, hence compilers assume no aliasing occurs, but it nevertheless may do so due to 'non-conforming' code. In the words of the g77 manual: > Essentially, compilers are promised (by th
526.
▲
by
cygx
7y ago
But note that that as far as I'm aware, Fortran compilers will happily miscompile code that breaks the aliasing assumptions as well. No matter which language you use, it's the responsibility of the programmer to not break these in
527.
▲
by
cygx
7y ago
Fortran as a language had some advantages over C for high-performance numeric code (eg more restrictive aliasing rules or stack-allocated variable-length arrays). C99 addressed this.
528.
▲
by
cygx
7y ago
Which is the whole point of Han unification, the argument being that whether or not a particular line in U+4ECA is horizontal or diagonal is just like that. What's the difference?
529.
▲
by
cygx
7y ago
Unicode doesn't encode ligatures except for backwards compatibility. And it doesn't encode separate variants for unified Han characters. As in, that's not an argument, just a description of the status quo.
530.
▲
by
cygx
7y ago
There are differences as well as similarities. I'm no expert, but shouldn't, say, U+4ECA still translate to 'now' no matter if you draw a particular line horizontally or diagonally? There are also some mandatory[1] ligat
531.
▲
by
cygx
7y ago
Han unification was pushed through by western interests, by my understanding. Note that as far as I'm aware, the interest in question was the initial 16-bit limit of the character set and later on the non-proliferation of competing s
532.
▲
by
cygx
7y ago
Note that the paper does compare a switch-based dispatcher to a computed-goto version ('jump threading') - cf figure 2. The latter used to have a significant performance advantage over the former, which is apparently no longer tru
533.
▲
by
cygx
7y ago
Bytewise access is always possible and won't violate the strict aliasing/effective typing rules. The worst that could happen when messing with IEEE floating point values that way is creating a signalling NaN (if they are available
534.
▲
by
cygx
7y ago
Yeah, my bad. I missed the point of the example (ie that the size argument might be too small). I assumed the point was memset writing to padding bytes. It is indeed true that y might not get zeroed in principle (though I doubt that'll
535.
▲
by
cygx
7y ago
And I believe that's wrong. Memset copies values to bytes, regardless if they are padding or not. You just can't rely on padding bytes keeping that value. In particular, writing to a member may fill padding with arbitrary garbage
536.
▲
by
cygx
7y ago
It's just not guaranteed to 0 out y Citation needed. As far as I'm aware, memsetting structs is perfectly fine. The problem are things like memcmp as padding bytes take unspecified value.
537.
▲
by
cygx
7y ago
Some possibilities: Circular reasoning, assuming the conclusion, petitio principii.
538.
▲
by
cygx
7y ago
In your example, assuming that a million-line program is well done in its language, you'd have exactly the same complexity but now in a thousand lines, meaning that now each line does more, is more complex and changing it/underst
539.
▲
by
cygx
7y ago
On the flip side, we're traveling farther in greater numbers than in 1918.
540.
▲
by
cygx
7y ago
The anti-vaxx movement would like a word...
More ›