HNHacker News
TopNewBestAskShowJobs

mzs

10,003 karma · joined February 13, 2013

submissionscomments
mzs··on My Stratum-0 Atomic Clock
I wonder how, if at all, you can improve precision with 4 stratum-1 clocks like he author has.
mzs··on Fast16: High-precision software sabotage 5 years before Stuxnet
I miss the days of knowing who last touched every source file and precisely what version it was:

  $ what /usr/bin/file
  /usr/bin/file:
   PROGRAM:file  PROJECT:file-106
   $File: apprentice.c,v 1.309 2021/09/24 13:59:19 christos Exp $
   $File: apptype.c,v 1.14 2018/09/09 20:33:28 christos Exp $
   $File: ascmagic.c,v 1.109 2021/02/05 23:01:40 christos Exp $
   $File: buffer.c,v 1.8 2020/02/16 15:52:49 christos Exp $
   $File: cdf_time.c,v 1.19 2019/03/12 20:43:05 christos Exp $
   $File: cdf.c,v 1.120 2021/09/24 13:59:19 christos Exp $
   $File: compress.c,v 1.129 2020/12/08 21:26:00 christos Exp $
   $File: der.c,v 1.21 2020/06/15 00:58:10 christos Exp $
   $File: encoding.c,v 1.32 2021/04/27 19:37:14 christos Exp $
   $File: fsmagic.c,v 1.81 2019/07/16 13:30:32 christos Exp $
   $File: funcs.c,v 1.122 2021/06/30 10:08:48 christos Exp $
   $File: is_csv.c,v 1.6 2020/08/09 16:43:36 christos Exp $
   $File: is_json.c,v 1.15 2020/06/07 19:05:47 christos Exp $
   $File: is_tar.c,v 1.44 2019/02/20 02:35:27 christos Exp $
   $File: magic.c,v 1.115 2021/09/20 17:45:41 christos Exp $
   $File: print.c,v 1.89 2021/06/30 10:08:48 christos Exp $
   $File: readcdf.c,v 1.74 2019/09/11 15:46:30 christos Exp $
   $File: readelf.c,v 1.178 2021/06/30 10:08:48 christos Exp $
   $File: softmagic.c,v 1.315 2021/09/03 13:17:52 christos Exp $
   $File: file.c,v 1.190 2021/09/24 14:14:26 christos Exp $
  ...
 
  WHAT(1)                     General Commands Manual                    WHAT(1)
  
  NAME
       what - show what versions of object modules were used to construct a file
  
  SYNOPSIS
       what [-qs] [file ...]
  
  DESCRIPTION
       The what utility searches each specified file for sequences of the form
       "@(#)" as inserted by the SCCS source code control system.  It prints the
       remainder of the string following this marker, up to a NUL character,
       newline, double quote, `>' character, or backslash.
  
       The following options are available:
  
       -q      Only output the match text, rather than formatting it.
  
       -s      Stop searching each file after the first match.
  
  EXIT STATUS
       Exit status is 0 if any matches were found, otherwise 1.
  
  SEE ALSO
       ident(1), strings(1)
  
  STANDARDS
       The what utility conforms to IEEE Std 1003.1-2001 ("POSIX.1").  The -q
       option is a non-standard FreeBSD extension which may not be available on
       other operating systems.
  
  HISTORY
       The what command appeared in 4.0BSD.
  
  BUGS
       This is a rewrite of the SCCS command of the same name, and behavior may
       not be identical.
  
  macOS 26.4                     December 14, 2006                    macOS 26.4
mzs··on Want to Write a Compiler? Just Read These Two Papers (2008)
archive of forth translation of Crenshaw’s howto

https://web.archive.org/web/20190712115536/http://home.iae.n...

mzs··on Shell Tricks That Make Life Easier (and Save Your Sanity)
You'll probably dislike this too:

  $ {
  >     echo foo \
  >     && echo bar \
  >     || echo baz ;
  > }
  foo
  bar
  <^P><^A>$<^F>IFS
  ${IFS#   echo foo   && echo bar   || echo baz ; }
  $ _
There's good and bad to both approaches. I like how I can use () and {} to bracket things and otherwise every line that end in \ is continued. I line-up on the left with the operator, you with indentation. When you use a # style comment, you have to look up and back and forward to see what the operator is you are continuing over to the next line:

  $ foo |
    bar | # ?Do? *the* $bar$ && [do] {it!}
    baz
Which only takes an extra neuron or so, but then history...

  <^P>
  $ foo |   bar | # ?Do? *the* $bar$ && [do] {it!}
  baz
mzs··on Shell Tricks That Make Life Easier (and Save Your Sanity)
Wow I hate* that. I use bracket comments. They're cool cause they are bracket comments, so I use it in scripts to document pipelines. They are annoying cause they are bracket comments, in an interactive shell I have to type more and in TWO places. It's fun to reason-out how it works ;)

  $ echo foo | tr fo FO | sed 's/FOO/BAR/'
  BAR
  $ echo foo | ${IFS# tr fo FO | } sed 's/FOO/BAR/'
  foo
It's nice to have a way to both /* ... */ and // ... in shell scripts though:

  foo \
  | bar ${IFS Do the bar. Do it. } \
  | baz
* in the best possible way, like it's awful - I hate I didn't think of that
mzs··on Tracy Kidder has died
indeed: B. Joshua Rosen https://www.polybus.com/hdlmaker/Resume.html
mzs··on A Compiler Writing Journey
"Part 64: Self-compilation on an 8-bit CPU"

Unlike how a bunch of projects end right as they start to get good, this has a great ending. Thank you

mzs··on Stdwin: Standard window interface by Guido Van Rossum [pdf]
the code from 1995

https://github.com/thomas-hori/mirror-cwi-stdwin

mzs··on (Media over QUIC) on a Boat
1. is? https://bugzilla.mozilla.org/show_bug.cgi?id=1659672
mzs··on Building a Shell
Had an assignment to build a shell in a week, how hard could it be?

  controlling terminal
  session leader
  job control
The parser was easy in comparison.
mzs··on Strip mining of Illinois' coal deposits reveal the secret of the Tully Monster
Solving the mystery of the Tully Monster: https://www.anl.gov/article/solving-the-mystery-of-the-tully...
mzs··on A few CPU hardware bugs
links to this entertainment: https://crackhead.technology/anjoy-ssc338q-libtools/
mzs··on 221 Cannon is Not For Sale
Who was the 222nd commentator?

https://imgur.com/a/i5YQ2c4

mzs··on Douglas Adams on the English–American cultural divide over "heroes"
This might be a Polish thing but hero has to die. Does not matter if accomplishes a goal, just that hero put it all on the line against incredible odds.
mzs··on How can I read the standard output of an already-running process?
vxworks 6.x:

(one login session, say over serial)

  -> ioTaskStdGet 0, 1
  value = 3 = 0x3
  -> taskIdSelf
  value = 13600784 = 0xcf8810
(another session, say over telnet)

  -> ioTaskStdSet 0xcf8810, 1, 0x9
  value = 0 = 0x0
(first session ie SERIAL)

  -> printf "foo\n"
  -> taskIdSelf
  -> i
(otherone eg TELNET)

  -> foo
  value = 4 = 0x4
  value = 13600784 = 0xcf8810


     NAME         ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY
  ----------  ------------ -------- --- ---------- -------- -------- ------- -----
  ...
teeheeheehaw!
mzs··on How the Brain Parses Language
I completely understand! I'm also Polish American. I have to say it helps when mother's side of family is Gdańsk+west and father's Lublin+east. My wife's family is all from Warsaw area and I had to translate for my father-in-law during a holiday to Władysławowo-Hel (probably helps my aunt's father's side is Kashubian too, mmm... dessert first).

I was blown-away on holiday to Croatia. It was so unexpectedly relatively easily understandable after Czechia, Austria, and Slovenia. I was all, "What just happened!? Shouldn't this be something more like Italian?"

It took only a month for me to be able to communicate in Ukrainian with my ESL students, you're totally right about Cyrillic. And I too think in concepts but switch my brain to express them externally via language, whatever that language may be at the moment. I am terrible at translating OTOH, so unnatural!

But it has it's limits, I got to a point after German and Norwegian that I thought I harbored a super-power. Then I went to school in Hungary ;) I also had an ESL student from Lithuania, yep incomprehensible.

mzs··on Kernel Float: Unlocking Mixed-Precision GPU Programming
https://github.com/KernelTuner/kernel_float
mzs··on The stack circuitry of the Intel 8087 floating point chip, reverse-engineered
insightful footnote, thanks: https://web.archive.org/web/20190301193516/http://www.drdobb...
mzs··on The effect of shingles vaccination at different stages of dementia
from one of the previous papers:

"To provide causal as opposed to correlational evidence, we take advantage of the fact that, in Wales, eligibility for the zoster vaccine was determined on the basis of an individual’s exact date of birth. Those born before 2 September 1933 were ineligible and remained ineligible for life, whereas those born on or after 2 September 1933 were eligible for at least 1 year to receive the vaccine."

Eyting, M., Xie, M., Michalik, F. et al. A natural experiment on the effect of herpes zoster vaccination on dementia. Nature 641, 438–446 (2025). https://doi.org/10.1038/s41586-025-08800-x

mzs··on Trick users and bypass warnings – Modern SVG Clickjacking attacks
A zoom of not 100% breaks the QR one at least.
mzs··on New 3D scan reveals a hidden network of moai carvers on Easter Island
Lipo CP, Hunt TL, Pakarati G, Pingel T, Simmons N, et al. (2025) Megalithic statue (moai) production on Rapa Nui (Easter Island, Chile). PLOS ONE 20(11): e0336251. https://doi.org/10.1371/journal.pone.0336251
mzs··on Volcanic eruption might have helped bring the Black Plague to Europe
Bauch, M., Büntgen, U. Climate-driven changes in Mediterranean grain trade mitigated famine but introduced the Black Death to medieval Europe. Commun Earth Environ 6, 986 (2025). https://doi.org/10.1038/s43247-025-02964-0
mzs··on Human hair grows through 'pulling' not pushing, study shows
Tissot, N., Genty, G., Santoprete, R. et al. Mapping cell dynamics in human ex vivo hair follicles suggests pulling mechanism of hair growth. Nat Commun 16, 10267 (2025). https://doi.org/10.1038/s41467-025-65143-x
mzs··on Sugars, 'Gum,' Stardust Found in NASA's Asteroid Bennu Samples
Furukawa, Y., Sunami, S., Takano, Y. et al. Bio-essential sugars in samples from asteroid Bennu. Nat. Geosci. (2025). https://doi.org/10.1038/s41561-025-01838-6

Sandford, S.A., Gainsforth, Z., Nuevo, M. et al. Nitrogen- and oxygen-rich organic material indicative of polymerization in pre-aqueous cryochemistry on Bennu’s parent body. Nat Astron (2025). https://doi.org/10.1038/s41550-025-02694-5

Nguyen, A.N., Seifert, L.B., Shimizu, K. et al. Abundant supernova dust and heterogeneous aqueous alteration revealed by stardust in two lithologies of asteroid Bennu. Nat Astron (2025). https://doi.org/10.1038/s41550-025-02688-3

mzs··on Sterile Neutrino Prediction Muddled by Latest Experiments
The MicroBooNE Collaboration. Search for light sterile neutrinos with two neutrino beams at MicroBooNE. Nature 648, 64–69 (2025). https://doi.org/10.1038/s41586-025-09757-7

The KATRIN Collaboration. Sterile-neutrino search based on 259 days of KATRIN data. Nature 648, 70–75 (2025). https://doi.org/10.1038/s41586-025-09739-9

mzs··on 4.3M Browsers Infected: Inside ShadyPanda's 7-Year Malware Campaign
simple human written summary: https://www.theregister.com/2025/12/01/chrome_edge_malicious...
mzs··on [dead]
clean link: https://www.amazon.com/Ear-Wax-Removal-Tool-Camera/dp/B0BDFW...
mzs··on CBP is monitoring US drivers and detaining those with suspicious travel patterns
Yes, I’m Polish American and was traveling from West Germany to Poland. It wasn’t so bad once we bribed them. It turned-out the guards just wanted Marlboros, Johnny Walker, and US dollars. We still had to reassemble the Mercedes.
mzs··on The Lions Operating System
aka the Lions book
mzs··on CBP is monitoring US drivers and detaining those with suspicious travel patterns
This happened to me, in East Germany. I'm sorry it happens now in the Land of the Free.
← PreviousPage 2 of 34Next →