HNHacker News
TopNewBestAskShowJobs

zeotroph

508 karma · joined August 2, 2012

submissionscomments
zeotroph··on What’s New in Apple Filesystems [pdf]
All the next gen, copy on write filesystems have checksums: NTFS+ (ReFS) has it, ext4+ (btrfs) has it, but HPFS++ (APFS) has not. Bummer.

At least optional checksums should be supported, then watchOS does not waste time with it but a user with 10k+ mac workstation who might still uses spinning rust for bulk data storage is SOL.

zeotroph··on What’s New in Apple Filesystems [pdf]
For a company which primarily sells consumer products it makes sense to omit hardware checksums: You just detect errors which the end user might never notice, a bit flip in a picture you never look at again might not be that bad.

For anyone who has ever heard of checksums this makes APFS a no-go of course.

zeotroph··on Legit: Git Commands as an Esoteric Programming Language
The mentioned git-in-git problem always annoyed me, at least it should be possible to store .git/ subtrees anywhere else but on the toplevel (it very likely is already supported in the data model). Then git can scream at me for not using submodules, and I can then silence that warning because I obviously know what I am doing!

legit might be an esoteric use case for that, but storing raw testdata for git hooks (not a zip or the commands to create the repo) are actual usecases.

zeotroph··on Legit: Git commits as an esoteric programming language
The mentioned git-in-git problem always annoyed me, at least it should be possible to store .git/ subtrees anywhere else but on the toplevel. Then git can scream at me for not using submodules, and I can then silence that warning because I obviously know what I am doing!

legit might be an esoteric use case for that, but storing raw testdata for git hooks (not a zip or the commands to create the repo) are actual usecases.

zeotroph··on Psyche-c – Automatic Compilation of Partially-Available C Sources
And may be a a road to gradual typing, i.e. a forward looking auto. The language spec will probably never allow if (maybe someday in C++), but IDEs might fill in the type for you if it can be deduced from a call site later on.
zeotroph··on Show HN: Muon, a low-level programming language inspired by C, C# and Go
Related, and very much a personal preference: Given that there will be no classes etc, isn't the use of camel case (and the not-that-different Pascal Case) for both structs and functions giving up a dimension of distinction?

The ClassCamel and snake_function_case split of Python and Rust is something I bikeshed about often - sooner or later 'IO', 'TCP' or 'MMbT' needs to be CamelCased and then it all goes downhill. Or C and C++ (the latter is also mentioned as an inspiration), which never used CamelCase. I think Java then used it purely to distinguish itself also by style from these direct and unsafe memory poking languages.

zeotroph··on Show HN: Automatically synchronize subtitles with video
Previously: Fiddle with the subtitle/audio offset factor (and then they drift apart again slowly, driving you mad!)

Now: subsync

Soon: Players run subsync internally the press of one button or commandline switch.

The voice audio detection and then mapping is such a neat solution. I would have embedded parts of the surrounding audio in some base64 format into the subtitle file and then used that as an alignment clue. But this won't work when the languages don't match.

zeotroph··on Show HN: Automatically synchronize subtitles with video
Given it just processes audio, how long does processing one video file usually take?
zeotroph··on Show HN: Automatically synchronize subtitles with video
A neat subtitle feature I found out mpv has, but no other video player: Hide those parts of the subtitle which are mainly for those with impaired hearing like '[loud noise]' etc, but keep the rest:

`mpv --sub-filter-sdh ...`

That logic could probably be extracted into a separate subtitle filtering tool.

zeotroph··on New ‘past’ link on HN front page
Methodical or just overly cautious? It took ages to get the `[-]`/collapse tree link, and the other IMO obvious QoL improvement -- a 'parent' link to a) get to the root node of a discussion tree that no longer interests the reader and then to b) use the mentioned '[-]' to collapse it all -- might take even longer.
zeotroph··on Ramses – A distributed system for rendering 3D content
No, I think it was not windows only, and not as "fancy" or versatile, just something like gtk or Qt with built-in networking.

But this looks neat as well, I did not know that one nor found it during my search.

zeotroph··on Ramses – A distributed system for rendering 3D content
Slightly off topic, I remember another distributed UI system that was posted to HN or mentioned in the comments not that long ago. I think it supported normal 2d widgets and maybe 3d as well. It was nothing web/js based but had native clients. Anyone remember this? I tried searching for it to no avail.

I am fascinated by such systems. In the best case you get screen/tmux re-attachment features for GUIs, down to the application level, not desktop level (x11/xpra does some of this). And you do not just stream pixels across a network (like x11) but have at least some of the render logic locally. If you can then use local graphics hardware that seems like an unbeatable combination.

Maybe some websockets/webgl/webassemly which does all that will become the de-facto platform agnostic GUI platform in the future.

zeotroph··on Ramses – A distributed system for rendering 3D content
Any guess as to what type of network layer they use there?

I thought cables are short enough in a car that they can attached the displays directly to rendering hardware. Are there other advantages? Provide a fallback in case one render process fails?

zeotroph··on Show HN: Lua/LuaJIT with C/C++/Java/JavaScript syntax
Maybe also properly separated list/array, map/dict and set types? The I-am-everything-{} type in lua is a bit unergonomic when you want to use it as only such a type and a stumbling block for unfamiliar users.

Can a project using 5.3 lua continue using existing .lua files but also write new files in .ljs?

> switch

Aren't match statements all the rage nowadays? Even C++20 get's one (with a silly name, of course)!

> class

Finally, setmetatable is nice, but, yes, "proper" not handrolled classes.

> const

Too few scripting languages have these. Do you intend to make this include interior mutability as well or is this only pointer deep?

zeotroph··on Copyleft and community licenses are not without merit, but they are a dead end
> Linux kernel [..] BSD licensed.

It would be another BSD with not many commercial players contributing to. BSD-ish licenses mean free labor for companies, but are problematic for cooperation. The easiest way is always to "defect": Take the sources and never contribute back - it might help a competitor.

The Copyleft licenses work around that and make cooperation between of adversaries possible.

zeotroph··on Two Chinese Stalagmites Are a 'Holy Grail' for Accurate Radiocarbon Dating
And all the CO2 which is added to the atmosphere by burning ancient and practically C14-free carbon compounds makes using this isotope less reliable, so other measuring methods are required.
zeotroph··on Firefox 64 Released
So, that means a PgDown button (I guess it is mostly that direction) on the mouse is missing. The thumb button which most mice have and are mapped to forward/backwards could be remapped to that. Or a mouse gesture? FoxyGestures, a Firefox addon, has a "Scroll Down" action.
zeotroph··on Firefox 64 Released
But, that is what PgUp/PgDown are for on the keyboard, no? When you are navigating in these discrete steps why use the mouse, which is excellent for continuous input. If I click on something, I want to go THERE, not in the direction of it. "But we have always done it in this (imo illogical) way" is just being stubborn.
zeotroph··on Firefox 64 Released
> Scrollbar

One thing I like about the Firefox (Gtk?) scrollbar is that it finally removed (a few version ago already) the "Click on it somewhere, but it doesn't move there but just acts like PgDown/Up", i.e. the non-warping to the exact click position but just inching towards it. This is completely unnecessary in the time of wheels and touchpads and I already miss it everywhere else.

zeotroph··on Firefox 64 Released
Indeed, and thanks for pointing that out! I am not a fan of the simplified Gtk file dialog, even though I learned the trick of pressing Ctrl-L to edit the location. Let's see if that works with other Gtk apps. Edit: `GTK_USE_PORTAL=1 inkscape/gimp` does not work, seems it requires sandboxing? The xdg-desktop-portal-kde package says "This allows sandboxed applications to request services from outside the sandbox using KDE GUIs".
zeotroph··on Red Hat Enterprise Linux 8 Beta
Do they include other file systems which can provide data checksums? The linked stratis doesn't seem to have that feature, did they patch the underlying XFS? There don't seem to be that many filesystems with that capability yet:

https://en.wikipedia.org/wiki/Comparison_of_file_systems#Fil...

zeotroph··on Tables
> Sparkling

All these "Let's do Lua, but right" languages fill me with both hope AND dread. This also shows what Lua could have become if a few more bold decisions were made. But I guess without a large commercial entity behind it, that was inevitable.

Is there list of lua-ish (especially wrt. speed and easy C integration) languages somewhere? I did not know this one for example.

zeotroph··on Tables
> The package ecosystem is growing

That is a nice euphemism. The lack of something even remotely resembling a standard library is what keeps me from using lua more than I absolutely have to.

Because more complex constructs can be created so easily in Lua everybody is happily copy/pasting half baked stuff from the web. That means there is no common style which might make it consistent across code bases so Lua remains a "Bring Your Own" language. No proper arrays, no easy exceptions, no easily recognizable classes ("but it is so easy with setmetatable etc."), iterators, prettyprint...

Plus the various annoyances, such as nil access not being an error, no += (I read all the reasons against it), weird "false" concept, that tables are - if you look closely - neither arrays nor dictionaries, the "require" imports are not modules but more akin #include.

In my opinion Lua 6 should drop some historic weirdness (~=!) and make the core language more in line with JS or Python and provide a standard library - even if components there sacrifice some of the holy performance.

zeotroph··on An Introduction to Modern CMake
They also went the cmake route of not trying to be the build system, but the meta buildsystem which just writes out ninjafiles, or makefiles and lots of other obscure formats in case of cmake. This is probably also the reason why cmake 'won' so far.
zeotroph··on An Introduction to Modern CMake
The syntax... `list(GET mylist 4 val)` - oh, you mean `val = mylist[4]`. And the strange `function(ARGUMENTNAME argument1 OTHERARG arg2)` function syntax, and that out value names are always passed into a function as this language does not know `=` assignment, and the semicolon separated lists. And worst of all, the weak to absent typing, reading from a nonsense variable never fails.

I hope this is all abstracted enough so one day cmake can become saner to read and write. For now you just have to carry this otherwise useless syntax knowledge with you, or switch to meson or waf. Most IDEs seem to prefer cmake though, especially with the new cmake server mode it might be here to stay.

And a big thanks to all the saints who want to make cmake understandable for the rest of us.

zeotroph··on Linux touchpad like a Macbook: goal worth pursuing?
Possibly a complete image of the disk. dd'ing from an SSD with trim gets you zeros for the unused sectors, otherwise write a big file with zeros on the remaining space.

This data compresses quite well and gets you all the hidden and extra attributes an rsync might miss. That would be my unix-y approach.

zeotroph··on A Critique of “Enlightenment Now”: When Truth and Reason Are No Longer Enough
This one comes from a "a card-carrying true believer in liberal Enlightenment values", and claims that it focuses on preaching to the choir.

"Pinker’s book doesn’t include one notably pessimistic set of graphs" - the one that shows the declining number of local relationships. The lack of true local connections might make cheap substitutes attractive, such as ones nation or ones race. The book offers nothing there, "but thinking about families may be able to inform liberalism in a deeper way."

zeotroph··on Git log – The good parts
The difference is an added --date-order:

"Show no parents before all of its children are shown, but otherwise show commits in the commit timestamp order."

zeotroph··on How Europeans evolved white skin (2015)
> vitamin D

That is the driving force for lighter skin (unless your diet is mostly fish, such as the Inuit). Skin gets darker again when migration towards sunnier climates happens: while UV light is essential for the synthesis of D3, it also destroys folic acid / vitamin B9 [1], which is essential when the neural tube of a fetus is being formed.

And since this mutation is so very visible, maybe here sexual selection plays a role, just like it is suspected with blond hair?

1: https://www.sciencedaily.com/releases/2014/03/140321095240.h...

zeotroph··on How Europeans evolved white skin (2015)
And, as a side note, height correlates with cancer risk "Its results found that for every extra 10cm (4in) of height, when fully grown, the risk of developing cancer increased by 18% in women and 11% in men.": https://www.bbc.com/news/health-34414446

Mechanism unknown, but the mentioned growth factors might be the cause, similar to the increased insulin presence wrt. obesity.

← PreviousPage 4 of 6Next →