News for hackers. Stuff that matters.

tapirl

Re:Everyone Should Know SIMD on Wednesday July 22, 2026 @07:31PM (#49014918)
Aha, you are right. Smaller indexes are for least-significant bits.
Re:Everyone Should Know SIMD on Wednesday July 22, 2026 @07:00PM (#49014626)
Maybe I'm wrong, but should it be @clz instead?
Re:Rewriting Bun in Rust on Friday July 10, 2026 @12:34PM (#48862198)
Performance alone doesn't always imply verbosity, but combining it with other goals—such as increased security and more power std APIs—often does.
Re:Rewriting Bun in Rust on Wednesday July 08, 2026 @08:30PM (#48839380)
Zig is indeed verbose in some aspects, but not overall. For example, its `try error-union` syntax eliminates a lot of boilerplate code.

The main reason why Zig is verbose in some aspects is the main goal of Zig is program performance. It is a worthy tradeoff.

Re:Kimi K2.7 Code is generally available in GitHub Copilot on Thursday July 02, 2026 @04:40AM (#48758357)
Unlike Google, the AI wave appears to deliver positive revenue impacts for Microsoft.

The company does need to integrate the new AI-human-machine interface into its application development SDKs.

Re:Announcing Box3D :: Box2D on Thursday July 02, 2026 @03:42AM (#48757902)
Thanks for the info. Updated.
Re:Announcing Box3D :: Box2D on Wednesday July 01, 2026 @01:03PM (#48749968)
Full List Of Open Source Physics Engines: https://www.tapirgames.com/blog/open-source-physics-engines
Re:Announcing Box3D :: Box2D on Wednesday July 01, 2026 @12:39PM (#48749591)
About Jolt, do you mean https://github.com/jrouwe/JoltPhysics ?
Re:The state of building user interfaces in Rust on Tuesday June 16, 2026 @07:22AM (#48553513)
No specific examples. Just general GUI apps.
Re:The state of building user interfaces in Rust on Monday June 15, 2026 @12:30PM (#48543674)
Slow means many: * long program launch times * inconsistent frame rates during runtime * noticeable lag in user interaction
Re:The state of building user interfaces in Rust on Saturday June 13, 2026 @12:06PM (#48518581)
web UI is slow, this is only reason when I don't it.
Re:Zig by Example on Monday June 08, 2026 @12:00PM (#48447089)
Having quick viewed all the chapters, the examples are too simplistic to fully demonstrate the full picture of Zig's syntax and semantics.
Re:Go: Support for Generic Methods on Thursday May 28, 2026 @04:09AM (#48306087)
Yes, the sugar is just to make chain calls with parameter types possible. The sugar reflects the limitation of the basic of Go generics design. Now they would make the language even more complex to such a small need. In facts, there are more problems in Go generics need to be solved earlier than this: https://go101.org/generics/888-the-status-quo-of-go-custom-g...
Re:Go: Support for Generic Methods on Thursday May 28, 2026 @12:27AM (#48304493)
Go's generics design is the most clunky one among popular languages.
Are there any evidences which prove the process was done in a week?
Re:Mojo 1.0 Beta on Sunday May 10, 2026 @06:50PM (#48088952)
It might be feature richer, but it is hard to say it is more powerful. Sometimes, features (especially constraints) will reduce powerlessness.
Re:Mojo 1.0 Beta on Saturday May 09, 2026 @02:14PM (#48076978)
> ..., comptime that is more powerful than Zig

It would be great if you can elaborate more here. I can't make the conclusion from Mojo's docs now.

Re://go:fix inline and the source-level inliner on Sunday March 15, 2026 @11:02PM (#47394735)
> ... and perhaps `go fix` should add a check for this (

This is an impossible task. For a library function, you can't know whether or not the function is defer called.

Maybe this is not an important problem. But it would be better if the blog article mentions this.

Re://go:fix inline and the source-level inliner on Sunday March 15, 2026 @10:22PM (#47394439)
another:

   package main

   type T = [8]byte
   var a T

   //go:fix inline
   func foo() T {
      return T{}
   }

   func main() {
      if foo() == a {
      }
   }
filed: https://github.com/golang/go/issues/78170 and https://github.com/golang/go/issues/78169
Re://go:fix inline and the source-level inliner on Sunday March 15, 2026 @08:49PM (#47393789)
similar:

    package main

    //go:fix inline
    func foo[T [8]byte | [4]uint16]() {
        var v T
        var n byte = 1 << len(v) >> len(v)
        if n == 0 {
            println("T is [8]byte")
        } else {
            println("T is [4]uint16]")
        }
    }

    func main() {
        foo[[8]byte]()
    }
Re://go:fix inline and the source-level inliner on Sunday March 15, 2026 @06:06PM (#47392470)
Another example (fixable):

    package main

    import "unsafe"

    //go:fix inline
    func foo[T any]() {
        var t T
        _ = 1 / unsafe.Sizeof(t)
    }

    func main() {
        foo[struct{}]()
    }
Go is a language full of details: https://go101.org/details-and-tips/101.html
Re://go:fix inline and the source-level inliner on Sunday March 15, 2026 @05:58PM (#47392387)
You claim listens right for this specified example. :D

It is just a demo.

Re://go:fix inline and the source-level inliner on Sunday March 15, 2026 @05:56PM (#47392368)
As I have mentioned, no ways to fix it. Because it is hard to know whether or not the handle function is called in a deferred call.
Re://go:fix inline and the source-level inliner on Sunday March 15, 2026 @05:10PM (#47391964)
It looks the following code will be rewritten badly, but no ways to avoid it? If this is true, maybe the blog article should mention this.

    package main
    
    //go:fix inline
    func handle() {
        recover()
    }
    
    func foo() {
        handle()
    }
    
    func main() {
        defer foo()
        panic("bye")
    }
Re:Go 1.26 Release Notes on Wednesday February 11, 2026 @10:27AM (#46976122)
Re:Why Go is not my favourite language on Wednesday February 04, 2026 @04:39AM (#46883658)
This one is just an example to demo one case of backward-capability breaking.

> All the examples in that article are very exotic.

Have you carefully read that article? All? You must be kidding. The article shows several cases used in practice.

Re:Why Go is not my favourite language on Tuesday February 03, 2026 @10:36AM (#46872297)
The change made in Go 1.22 for 3-clause-for loops is not a new feature. It simply broke backward compatibility and old Go principles. It is much worse than C++'s stuff features.
Re:Why Go is not my favourite language on Tuesday February 03, 2026 @04:50AM (#46868866)
It is only right for for-each loops.

For 3-clause-for loops, if you have read https://go101.org/blog/2024-03-01-for-loop-semantic-changes-... carefully, it is hard to think it is right.

Re:Why Go is not my favourite language on Tuesday February 03, 2026 @04:48AM (#46868848)
zig now.
Re:Why Go is not my favourite language on Monday February 02, 2026 @10:46PM (#46866208)
Go was my favorite language for a long time, and I have written many books and articles about it. However, since the release of Go 1.22 [1], that is no longer the case. Go 1.22 damaged Go's reputation for promoting explicitness and maintaining strong backward compatibility.

[1]: https://go101.org/blog/2024-03-01-for-loop-semantic-changes-...

Older »