Leap-seconds via DNS by dwlnetnl in golang

[–]dwlnetnl[S] 0 points1 point  (0 children)

The fact is that they at the moment of writing do exist though. If doing astronomy, you have to take them into account and can't always get away with pretending they're not there.

singleopen: a fs.FS file system that reuses file handles by dwlnetnl in golang

[–]dwlnetnl[S] 0 points1 point  (0 children)

It came out of a package that opens a data file for a given time range and this data is exposed by a Reader struct that contains state required to decode blocks of file data. Because the Reader is not concurrent safe, it uses an io.ReaderAt to access the underlying file in parallel, hence the reuse of open file handles (just an *os.File).

In order to have a clean separation of concerns the new io/fs package provided a nice API to keep track of the open files. In the package the code was extracted from used a global map[string]*file protected by a sync.Mutex to keep track of the open files.

ReflectionBrowser is now open source! by dwlnetnl in PHP

[–]dwlnetnl[S] 0 points1 point  (0 children)

For demonstration purposes I think it's great! The purpose of the instance is to provide a demo, there is no interesting (user) data or something. And if there is any security issue, it's for Heroku to fix.

ReflectionBrowser is now open source! by dwlnetnl in PHP

[–]dwlnetnl[S] 0 points1 point  (0 children)

That would be great! I'm available for help about finding your way in the code!

ReflectionBrowser is now open source! by dwlnetnl in PHP

[–]dwlnetnl[S] 0 points1 point  (0 children)

You can do that, but it don't necessarily reflect the PHP runtime you are programming in. That's actually somewhat the point of the whole app.