News for hackers. Stuff that matters.

funny_falcon

systems, upstart or even simple primitive script wrapper.

Built-in is also possible: just fork once after start, and you have parent as watchdog and restarter.

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.
Re:From C++ to Clojure: Jank language promises best of both on Thursday January 30, 2025 @04:55AM (#42876411)
First SmallTalk versions were built with Lisp. “Live environment” and “world image” were just inherited.
And looks like Helix editor uses it together with ropey.
Re:C: Simple Defer, Ready to Use on Tuesday January 07, 2025 @05:10AM (#42621059)
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?

Re:Rails for Everything on Thursday January 02, 2025 @09:24AM (#42574651)
Do you use stanza?
Re:C++ Is an Absolute Blast on Wednesday December 25, 2024 @05:35PM (#42511648)
There is the trick: use enum for const. It works most of the time.
Re:C++ Is an Absolute Blast on Wednesday December 25, 2024 @05:27PM (#42511604)
It seems meson is gaining traction and will overpass cmake in near future.
Re:Float Self-Tagging on Friday November 29, 2024 @03:02PM (#42276644)
Another quite similar technique from OpenSmalltalk: https://clementbera.wordpress.com/2018/11/09/64-bits-immedia...
Re:Float Self-Tagging on Thursday November 28, 2024 @02:13PM (#42267838)
In fact, CRuby successfully combined “Self Tagging” with pointer tagging. Here's the commit:

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

Re:Float Self-Tagging on Thursday November 28, 2024 @01:47PM (#42267628)
I mean, CRuby does “Float Self Tagging” for years. Paper just has the mistake about CRuby.
Re:Float Self-Tagging on Thursday November 28, 2024 @12:28PM (#42267058)
CRuby uses this technique on 64bit platforms for years.

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

Re:Float Self-Tagging on Thursday November 28, 2024 @12:26PM (#42267041)
Just correction: CRuby uses “Float Self-Tagging” for years.
Re:Lush: My favorite small programming language on Tuesday November 26, 2024 @05:34PM (#42250845)
But commits exists even this year: https://sourceforge.net/p/lush/activity/
Readability, reproducibility, and simple LRU.

Reproducibility matters for tests, they become simpler. Some other algorithms become simpler as well.

LRU is just a dict with preserving order: on access just delete and insert again.

Re:Python Interpreters on Saturday August 31, 2024 @03:51PM (#41411443)
Unfortunately, pocketpy moved to global reference to vm recently while changing implementation from C++ to C. Weird decision.
Re:Telegram founder Pavel Durov arrested at French airport on Sunday August 25, 2024 @05:15AM (#41345799)
AFAIK, Signal doesn’t provide any way to prove its application were built from non-modified audited free open source code. Indeed there are evidences it behaves “a bit” differently.

So unless you’ve built application by yourself, you have no guarantee of it’s sequrity.

Re:Show HN: High-precision date/time in SQLite on Sunday August 18, 2024 @03:58PM (#41284942)
What “Statically typed” would mean for SQL DB with extensible type system?
Re:Show HN: High-precision date/time in SQLite on Thursday August 15, 2024 @01:48PM (#41258614)
As a PostgreSQL smallish contributor I just can say: NO, DON'T DO THIS!!!!

Extensible type system is a worst thing that could happend with database end-user performance. Then one may not short-cut no single thing in query parsing and optimization: you must check type of any single operand, find correct operator implemenation, find correct index operator family/class and many more all through querying system catalog. And input/output of values are also goes through the functions, stored in system catalog. You may not even answer to "select 1" without consulting with system catalog.

There should be sane set of builtin types + struct/json like way of composition. That is like most DBs do except PostgreSQL. And I strongly believe it is right way.

Re:Go is my hammer, and everything is a nail on Tuesday August 13, 2024 @01:34AM (#41232564)
First three are clearly documented in language reference, which could be read in several hours (at least before generics were introduced).
Re:A write-ahead log is not a universal part of durability on Wednesday July 03, 2024 @03:41AM (#40863672)
Most weird thing: PostgreSQL's checksum algorithm is almost free on modern processors. It uses SIMD instructions extremely well in optimized builds. I've never seen him in CPU profile despite I always enable it.

There are no any reasons to not enable it (except pg_upgrade).

Re:Evolving the Go Standard Library with math/rand/v2 on Saturday May 04, 2024 @02:13AM (#40255328)
Lemire uses your found but corrects its biases.
There was one: https://github.com/grumpyhome/grumpy

Looks like abandoned though.

Re:Vala Programming Language on Monday April 08, 2024 @04:32PM (#39973407)
`git gui` and `gitk` my Swiss-knife tools for every day git-ting. They are maintained by git core team.
Sun bought whole team of Self [1] language to make its HotSpot JIT.

[1] https://en.wikipedia.org/wiki/Self_(programming_language)

Older »