15 comments

  • pointlessone4 hours ago
    We’re roughly on schedule. <a href="https:&#x2F;&#x2F;www.destroyallsoftware.com&#x2F;talks&#x2F;the-birth-and-death-of-javascript" rel="nofollow">https:&#x2F;&#x2F;www.destroyallsoftware.com&#x2F;talks&#x2F;the-birth-and-death...</a>
  • rkeene23 hours ago
    I did something similar with TCL, the basis was using an extension I wrote to handle the UNIX stuff [0]. It operated an On-Premises cloud environment appliance, and `init` was just a TCL script (at one point it was a statically linked binary with the init script embedded, but that turned out to be overkill)<p>[0] <a href="https:&#x2F;&#x2F;chiselapp.com&#x2F;user&#x2F;rkeene&#x2F;repository&#x2F;tuapi&#x2F;doc&#x2F;trunk&#x2F;USAGE.md" rel="nofollow">https:&#x2F;&#x2F;chiselapp.com&#x2F;user&#x2F;rkeene&#x2F;repository&#x2F;tuapi&#x2F;doc&#x2F;trunk...</a>
  • tzury6 hours ago
    Check out this:<p><a href="https:&#x2F;&#x2F;bellard.org&#x2F;jslinux&#x2F;vm.html?url=alpine-x86.cfg&amp;mem=192" rel="nofollow">https:&#x2F;&#x2F;bellard.org&#x2F;jslinux&#x2F;vm.html?url=alpine-x86.cfg&amp;mem=1...</a><p>and<p><a href="https:&#x2F;&#x2F;bellard.org&#x2F;jslinux&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bellard.org&#x2F;jslinux&#x2F;</a><p>By the famous Fabrice Bellard who is the creator of QuickJS, QEMU, FFMPEG and many other brilliant and fascinating tools!<p><a href="https:&#x2F;&#x2F;bellard.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bellard.org&#x2F;</a>
  • anthk14 minutes ago
    I remember some core Unix utilities reimplemented in Perl, mainly done for Win32 systems back in the day. OFC the performance coudn&#x27;t compete with the ones written in C, but it was good enough.
  • mos874 hours ago
    A very timely endeavor indeed <a href="https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;typescript&#x2F;typescript-native-port&#x2F;" rel="nofollow">https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;typescript&#x2F;typescript-native-...</a>
    • IshKebab2 hours ago
      That&#x27;s about the Typescript compiler performance, not runtime. And this project doesn&#x27;t even use Typescript does it?
  • kalterdev6 hours ago
    It’s never early to prepare for JavaScript complete takeover.
  • supermdguy6 hours ago
    Reading the code, I was surprised to see that cd was implemented by calling out to the os library. I assumed that was something the shell or at least userspace handled. At what level does the concept of a “current directory” exist?
    • creatonez5 hours ago
      It&#x27;s at the kernel level. Each process has its own current working directory. On Linux, these CWD values are exposed at `&#x2F;proc&#x2F;[...]&#x2F;cwd`. This value affects the resolution of relative paths in filesystem operations at a syscall level.
    • lukeh5 hours ago
      In the kernel’s process structure. See NOTES - <a href="https:&#x2F;&#x2F;man7.org&#x2F;linux&#x2F;man-pages&#x2F;man2&#x2F;chdir.2.html" rel="nofollow">https:&#x2F;&#x2F;man7.org&#x2F;linux&#x2F;man-pages&#x2F;man2&#x2F;chdir.2.html</a>
    • semiquaver5 hours ago
      Unix defines a Working Directory that every process has, changed with chdir(2): <a href="https:&#x2F;&#x2F;man7.org&#x2F;linux&#x2F;man-pages&#x2F;man2&#x2F;chdir.2.html" rel="nofollow">https:&#x2F;&#x2F;man7.org&#x2F;linux&#x2F;man-pages&#x2F;man2&#x2F;chdir.2.html</a>
      • mort965 minutes ago
        This doesn&#x27;t <i>technically</i> answer the question: POSIX doesn&#x27;t concern itself with the kernel interface, only with the libc. Most POSIX systems have a kernel with a syscall interface that mirrors the libc API so that these libc functions are just syscall wrappers, but nothing technically prevents the current working directory to be a purely userspace concept maintained by the libc where all relative paths passed to filesystem functions are translated into absolute paths by the libc function before being passed to the kernel via syscall.<p>But yes, in the BSDs, Linux and Windows, the kernel has a concept of a current working directory.
  • nxobject4 hours ago
    Kernighan and Ritchie wept. (Tears of joy at an awesome hack, or tears of sadness at an awesome hack?)
  • zsoltkacsandi34 minutes ago
    &gt; tiny project for building a tiny Linux distribution<p>I am working something similar in Go, and writing an educative blog post series about it: <a href="https:&#x2F;&#x2F;serversfor.dev&#x2F;linux-inside-out&#x2F;" rel="nofollow">https:&#x2F;&#x2F;serversfor.dev&#x2F;linux-inside-out&#x2F;</a>
  • MobiusHorizons6 hours ago
    Very cool. Good use of quickjs, although it would have been cool if it somehow didn’t need a libc and just used the syscall interface. Makes me want to give that a try.
  • andai2 hours ago
    See also this post by the author:<p><i>Making a micro Linux distro</i> [for RISC-V]<p><a href="https:&#x2F;&#x2F;popovicu.com&#x2F;posts&#x2F;making-a-micro-linux-distro&#x2F;" rel="nofollow">https:&#x2F;&#x2F;popovicu.com&#x2F;posts&#x2F;making-a-micro-linux-distro&#x2F;</a>
  • goodpoint3 hours ago
    urgh
  • hxbdbehd2 hours ago
    [dead]
  • stx56 hours ago
    [dead]
  • darkreader2 hours ago
    strange motivation and implementation. I mean it real. There are many existing open source projects that run Linux on JS.