News for hackers. Stuff that matters.

lambda_garden

Re:Tracing: Structured Logging, but better in every way on Wednesday September 20, 2023 @01:14PM (#37586859)
Couldn't this be injected into the runtime so that no code changes are required?

Perhaps really performance critical stuff could have a "notrace" annotation.

Re:Java 21 Released on Tuesday September 19, 2023 @11:28AM (#37571334)
Java 21 is colorblind - but the colors still exist
Re:Java 21 Released on Tuesday September 19, 2023 @10:48AM (#37570723)
I have a genuine question about Loom / virtual threads / etc.

In languages with async-await syntax, I like that it is explicit what is sync and what is async. I also like how the "bind" points within an async expression make it clear where the syncronization happens. It seems to me that Java 21 makes all of this implicit, which is a step backward in this respect.

Similar to how types enforce valid usage (a foundational idea in Java), I feel that an Async<T> should not be implicitly a T.

Are people concerned about this at all?

Have the Java designers addressed this?

Re:Skip the API, Ship Your Database on Thursday September 14, 2023 @04:16AM (#37506296)
This is not equivalent to (say) a single Postgres database where we get shared state with transactions between all users - or have I missed something?
Re:Running a 180B parameter LLM on a single Apple M2 Ultra on Thursday September 07, 2023 @04:00PM (#37424763)
> LLaMA, with up to 65B params, opened against Meta's wishes

They sure didn't try very hard to secure it. I wonder if it was their strategy all along.

Re:Mojo: It’s Finally Here on Thursday September 07, 2023 @03:54PM (#37424692)
The issues I raised were pretty concrete, and not merely "this symbol is better than that symbol"
Re:Mojo: It’s Finally Here on Thursday September 07, 2023 @02:35PM (#37423540)
Why are people so enthused about Python syntax?

Some problems off the top of my head:

- The lack of new variable declaration keyword makes scopes less explicit. nonlocal is not simpler in the large than `let x = ...`

- The lack of multi-line lambdas is very limiting for anyone coming from JS, C#, Rust, Kotlin... heck even Java

- The ternary operator (... if ... else ...) is needlessly different for other mainstream languages

Re:Two GitHub bots not talking to each other on a PR on Thursday September 07, 2023 @09:06AM (#37418347)
The brittleness of this kind of thing is a real application for LLMs
Re:Google leaked Google’s flagship Pixel 8 Pro, again on Wednesday August 30, 2023 @10:25AM (#37322614)
Could be getting ahead of the next iPhone announcement
Re:Sweden During the Pandemic on Tuesday August 29, 2023 @09:50AM (#37307935)
Indeed. A question we should be asking is what the Swedish government should have done if faced by mass non-compliance
Trouble with that is invoking main and declaring main are too similar. I prefer this:

    let main () =
      printf "hello"
      0
Re:Rust 1.72.0 on Thursday August 24, 2023 @11:58AM (#37250425)
But why not test? If we don't expect compatibility to break, then it will be little extra effort surely?