Better HN
topnewbestaskshowjobs
Log inSign up

simonz05

490 karma · joined Oct 19, 2010 (16y ago) · 107 submissions

Website: simonklee.dk E-mail: hello@simonklee.dk
Submissions

1.

An Introduction to Zig(pedropark99.github.io ↗)

4 points · by simonz05 · 2y ago · discuss

2.

More Modern B-Tree Techniques(nowpublishers.com ↗)

3 points · by simonz05 · 2y ago · discuss

3.

Can You Do Both: Fast Scans and Fast Writes in a Single System?(cedardb.com ↗)

2 points · by simonz05 · 2y ago · discuss

comment 2y ago · link · parent

This type of runtime type checking is quite common in Go. An example from bufio.Reader's WriteTo method:

  // WriteTo implements io.WriterTo.
  // This may make multiple calls to the [Reader.Read] method of the underlying [Reader].
  // If the underlying reader supports the [Reader.WriteTo] method,
  // this calls the underlying [Reader.WriteTo] without buffering.
  func (b *Reader) WriteTo(w io.Writer) (n int64, err error) {
   b.lastByte = -1
   b.lastRuneSize = -1
  
   n, err = b.writeBuf(w)
   if err != nil {
    return
   }
  
   if r, ok := b.rd.(io.WriterTo); ok {
    m, err := r.WriteTo(w)
    n += m
    return n, err
   }
  
   if w, ok := w.(io.ReaderFrom); ok {
    m, err := w.ReadFrom(b.rd)
    n += m
    return n, err
   }
  
   if b.w-b.r < len(b.buf) {
    b.fill() // buffer not full
   }
  
   for b.r < b.w {
    // b.r < b.w => buffer is not empty
    m, err := b.writeBuf(w)
    n += m
    if err != nil {
     return n, err
    }
    b.fill() // buffer is empty
   }
  
   if b.err == io.EOF {
    b.err = nil
   }
  
   return n, b.readErr()
  }

comment 2y ago · link · parent

We recently went through a similar situation at a logistics company in Europe. We decided to bring software development in-house after facing similar frustrations with a third-party provider. It was a challenging process, especially in attracting talent, but ultimately, it allowed us to build a solution tailored to our needs.

I’ve been with the company for the past 4 years, working as a lead software engineer. If you’re interested, my contact details are in my profile, and I’m happy to setup a call

comment 2y ago · link · parent

I understand and respect your perspective on Austin and Cherry’s involvement in the Go community. Their contributions may indeed be less visible but still impactful. However, the community’s perception of leadership is crucial, and visibility plays a big part in that. For instance your long form blog adds context to decisions you’ve taken in the past. I hope their active roles will become more apparent, fostering a stronger connection with the broader Go community.

comment 2y ago · link · parent

https://www.youtube.com/watch?v=wwoWei-GAPo — Project has come a long way since this. Happy that it's still around and thriving. I don't think we expected that in 2009. I don't believe Go would have been where it is without Russ. His contribution to the project has been tremendous.

Thanks Russ.

comment 2y ago · link · parent

> I'd also like to see less google control of the project.

That doesn't look like is going to happen — the leadership change announced here seems to me to continue on the Google path. Both Austin and Cherry are relatively unknown outside Google and are to my knowledge not active in the community outside Google.

comment 2y ago · link · parent

I cannot remember (or find) where I signed up for updates, but I get an email every 6 months (or so) from Lorenzo Stoakes personal email. Probably just send him an e-mail and he'll add you to his list.

comment 2y ago · link · parent

See also The Linux Memory Manager: https://linuxmemory.org/chapters Last update the author sent out was in early July noting that the book is now in editing:

> I am happy to report that I have completed the first draft of the book [...] > I am now in an editing phase, which may well take some time. Sadly I can't give a reasonable estimate as this will be done in concert with my publisher.

comment 2y ago · link · parent

In this X thead Joran comments how it all started with a HN comment back in 2019. https://x.com/jorandirkgreef/status/1815702485190774957

comment 2y ago · link · parent

Lsm trees also need a log, right?

comment 2y ago · link · parent

The paper is inspired by a hacker news comment: https://x.com/andy_pavlo/status/1807799839616614856

14.

Encore AI API Creator(encore.dev ↗)

1 points · by simonz05 · 2y ago · discuss

comment 2y ago · link · parent

In-process database like SQLite is the holy grail for low-latency database access on the edge. However, the synchronous I/O is holding it back, but how does in-process database look like with asynchronous I/O?

16.

Serverless Runtime / Database Co-Design with Asynchronous I/O(twitter.com ↗)

2 points · by simonz05 · 2y ago · 1 comment

17.

Debug Go Request Latency with Datadog's Profiling Timeline(blog.felixge.de ↗)

1 points · by simonz05 · 3y ago · discuss

comment 3y ago · link · parent

Felix Geisendörfer did a bunch of work to improve continuous profiling performance [1].

[1]: https://blog.felixge.de/waiting-for-go1-21-execution-tracing...

19.

Ghostty Devlog 002(mitchellh.com ↗)

1 points · by simonz05 · 3y ago · discuss

comment 3y ago · link · parent

Paul, impressive work on the rewrite.

Can you shed light on the biggest challenges and steps you (and the team) took to overcome them to succeed with the rewrite? We often hear about how major rewrites can fail or be massively delayed, but you seem to have succeeded.

comment 3y ago · link · parent

The GitHub search query turned out wrong (for me). It added a space to the location param.

It should be.

https://github.com/search?q=location%3A%22Copenhagen%22+lang...

22.

Systems Distributed Conference(systemsdistributed.com ↗)

3 points · by simonz05 · 3y ago · discuss

23.

Atomic Commitment: The Unscalability Protocol(brooker.co.za ↗)

1 points · by simonz05 · 3y ago · discuss

comment 3y ago · link · parent

Another option would be to use a service like Cloudflare, which offers protections against scraping and other malicious behavior. This can help prevent the proxy-mirror site from being able to access your site's content.

https://blog.cloudflare.com/introducing-scrapeshield-discove...

25.

A programmer-friendly I/O abstraction over io_uring and kqueue(tigerbeetle.com ↗)

127 points · by simonz05 · 4y ago · 33 comments

26.

Handmade Seattle 2022 (live conference)(handmade-seattle.com ↗)

4 points · by simonz05 · 4y ago · discuss

comment 4y ago · link · parent

Yep, this should be evaluated as `(- (+ 2 (* 2 2)) 6)`

comment 4y ago · link · parent

Be aware URL field in browsers have a maximum number of characters they accept.

comment 4y ago · link · parent

That depends. Replicated state machines need to distinguish between a crash and corruption. Most systems don't do that. It can be disastrous to truncate the journal when encountering a checksum mismatch for instance.

See "Protocol-Aware Recovery for Consensus-Based Storage" for more research on that topic. [1][2]

- [1] https://www.usenix.org/system/files/conference/fast18/fast18... - [2] https://www.youtube.com/watch?v=fDY6Wi0GcPs

comment 4y ago · link · parent

The paper analyzes how file systems and PostgreSQL, LMDB, LevelDB, SQLite, and Redis react to fsync failures. It shows that although applications use many failure-handling strategies, none are sufficient: fsync failures can cause catastrophic outcomes such as data loss and corruption.
1234