@sandro the goal is not to remove shell from the dependency graph (it’s used in stdenv configure scripts anyways!), but to provide a better builder language with features such as structured data and less footguns
Notices by fgaz (fgaz@cdrom.tokyo)
-
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Sunday, 25-Feb-2024 13:26:22 JST fgaz -
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Thursday, 22-Feb-2024 19:28:54 JST fgaz What if… #NixOS used #Tcl instead of #Bash?
I present you tcl-stdenv!
-
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Thursday, 22-Feb-2024 19:28:47 JST fgaz @clacke @raito I ended up writing a proof of concept https://cdrom.tokyo/notice/Af8WEUo1QkesHl4Sky
-
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Wednesday, 21-Feb-2024 20:31:05 JST fgaz @mer the trick is to always stock enough pasta to avoid that situation In conversation from cdrom.tokyo permalink Attachments
-
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Friday, 27-Oct-2023 21:47:12 JST fgaz @drewdevault is the above based on a standard? I'm interested in adding either that or rel=vcs to other forges
@lanodan @amolithIn conversation from gnusocial.jp permalink -
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Wednesday, 25-Oct-2023 21:06:26 JST fgaz @Ericson2314 how is the computed derivations feature going? This is exactly what it should help optimize
In conversation from cdrom.tokyo permalink -
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Wednesday, 25-Oct-2023 21:06:20 JST fgaz @wamserma @mic92 @Ericson2314 @zimbatm I think a project like hydra would benefit more from a language with strong static types *cough* #Haskell *cough*
The builder scripts on the other hand...In conversation from cdrom.tokyo permalink -
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Wednesday, 25-Oct-2023 21:06:08 JST fgaz This is something I’ve been thinking about for a while. #Tcl would be a really good #NixOS builder language.
- Incredibly portable
- Easily bootstrappable
- Like bash but without many of its pitfalls
- Like lisp but with an arguably cleaner and more familiar syntax
There are also disadvantages, but you can probably count on one hand programming languages that are suited for the task.
@wamserma
RE: https://cdrom.tokyo/objects/6c88a7dc-52bd-4481-879d-78e34dc58b14In conversation from cdrom.tokyo permalink Attachments
-
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Wednesday, 25-Oct-2023 21:06:02 JST fgaz @raito @tcltk @clacke @nixos I’ve been planning to try this since forever and I’ve been slowly packaging stuff to that end. #Nix and #Tcl would go so well together!
The #nushell talk at #NixCon reminded me of this again, but my list of ongoing side projects is a little too big at the moment 😅. Still, if anyone is working on it please let me know!
(sorry for the necropost, I just found the thread by browsing tags)
In conversation from cdrom.tokyo permalink -
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Thursday, 21-Sep-2023 21:19:39 JST fgaz But wait, that was a regular file! A file that can be overwritten (and reset to 0 bytes) by multiple processes, so it could be that I just didn’t see the data in time.
So I tried to make it a FIFO… forgetting that FIFOs are blocking until a reader is set up. My shell instantly locked up, and so did the most random parts of the system
In conversation from cdrom.tokyo permalink Attachments
-
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Thursday, 21-Sep-2023 21:18:46 JST fgaz Like… I know it’s required by POSIX, and it’s helpful in scripts, but how is it possible that standalone programs rely on it instead of just… not producing that data.
Just how much data gets produced and the immediately thrown away into /dev/null at any given moment?
In conversation from cdrom.tokyo permalink -
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Thursday, 21-Sep-2023 21:18:45 JST fgaz Just how much data gets produced and the immediately thrown away into /dev/null at any given moment?
Hmm actually I can easily find that out…
In conversation from cdrom.tokyo permalink -
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Thursday, 21-Sep-2023 21:18:44 JST fgaz The answer appears to be 0. They just like to know that it’s there
In conversation from cdrom.tokyo permalink -
Embed this notice
fgaz (fgaz@cdrom.tokyo)'s status on Thursday, 21-Sep-2023 20:08:29 JST fgaz I somehow managed to accidentally delete /dev/null and it’s unbelievable how much stuff relies on writing data to nothing.
- SSH just doesn’t start
- same with tmux
- bash completion doesn’t work and spams errors about _upvars
- I can’t open GUI programs unless I launch them from a terminal that was opened when /dev/null was still there
- Firefox prints assertion failures, then the error handler segfaults (!!)
In conversation from cdrom.tokyo permalink