Viewing profile — laurenth
laurenth
HN member- Joined
- Sat, Mar 02, 2024, 3:11 PM UTC
- HN karma
- 167
- Public activity
- 18 items
- HN profile
- View on Hacker News ↗
About laurenth
Recent public activity
- story
- story
-
comment
Comment #47626494
A shell is almost always used to setup the bootstrap environment, so the dependency on a shell is more or less always there. Otherwise, something special with POSIX shell is its la…
- story
- story
- story
- story
- story
- story
-
comment
Comment #42108686
Author here, > assuming the resulting shell script is as inscrutably as binary executable It's quite the opposite, pnut generates shell code that's close to the original C code to …
-
comment
Comment #41061356
We haven't found this to be an issue for Pnut. One of the metric we use for performance is how much time it takes to bootstrap Pnut, and dash takes around a minute which is about t…
-
comment
Comment #41061107
That's the idea! As you point out, it moves the trust from the binary to the shell executable, but the shell is already a key piece of any build process and requires a minimum leve…
-
comment
Comment #41060737
You're right, thanks for the bug report. It should now be fixed :)
-
comment
Comment #41060714
It seems ShellCheck errs on the side of caution when checking arithmetic expansions and some of its recommendations are not relevant in the context they are given. For example, on …
-
comment
Comment #41057347
From our experience, ksh is generally faster, and dash sits between ksh and bash. One reason is that dash stores variables using a very small hash table with only 37 entries[0] mea…
-
comment
Comment #41053576
One of the example we include is a base64 encoder/decoder: https://github.com/udem-dlteam/pnut/blob/main/examples/compiled/base64.sh It doesn't support NULs as you pointed out, but…
-
comment
Comment #41053028
Author here, That's correct! Unlike Bash and other modern shells, the POSIX standard doesn't include arrays or any other data structures. The way we found around this limitation is…
-
comment
Comment #41052900
Author here, Because all shell variables in code generated by pnut are numbers, variables never contain whitespace or special characters and don't need to be quoted. We considered …