Hacker Newsnew | past | comments | ask | show | jobs | submit | funny_falcon's commentslogin

I believe, it was pro-military, but not pro-war. The book idealizes the state and social system, and uses war only as a backdrop.


Compilers still prefer LEA to multiply on 3,5 and 9, which performs shift+add I believe.


First SmallTalk versions were built with Lisp. “Live environment” and “world image” were just inherited.


Actually, the first version of SmallTalk was implemented in BASIC! https://codersatwork.com/dan-ingalls


And looks like Helix editor uses it together with ropey.


OMG!

returns_struct looks actually correct to me, ie it is expected (by me). Golang's defer works this way.

Do both examples follow standard? Or is it common misinterpretation by all compilers?


Do you use stanza?


There is the trick: use enum for const. It works most of the time.


Yes, at least that's better than macros.


It seems meson is gaining traction and will overpass cmake in near future.


Another quite similar technique from OpenSmalltalk: https://clementbera.wordpress.com/2018/11/09/64-bits-immedia...


CRuby uses this technique on 64bit platforms for years.

Edit: the commit https://github.com/ruby/ruby/commit/b3b5e626ad69bf22be3228f8...


> CRuby uses this technique on 64bit platforms for years.

What do you mean by "this technique"?

The paper says that CRuby uses tagged objects but could benefit from the innovation being discussed here, a specific bit pattern used to tag floats. See the following quote:

> Therefore, implementations that represent floats as tagged pointers could benefit from it with minimal implementation effort. Such popular implementations include CPython [11], CRuby [32] and Google’s V8 [33].


In fact, CRuby successfully combined “Self Tagging” with pointer tagging. Here's the commit:

https://github.com/ruby/ruby/commit/b3b5e626ad69bf22be3228f8...


Seems legit.

Linked commit contains code for rotating tagged floats so bits 60..62 go to the least significant positions, and a comment about a range of unboxed floats between 1.7...e-77 and 1.7...e77, plus special casing 0.0.


I mean, CRuby does “Float Self Tagging” for years. Paper just has the mistake about CRuby.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: