HNHacker News
TopNewBestAskShowJobs

forgotpwd16

3,569 karma · joined August 4, 2018

email: [username]@proton.me
submissionscomments
forgotpwd16··on APT Rust requirement raises questions
Python had already become vastly popular before ML/AI. Scripting/tools/apps/web/... Only space that hasn't entered is mobile.
forgotpwd16··on APT Rust requirement raises questions
Legit question really. A comparative study on language readability using codes doing the same thing written idiomatically in different languages will be interesting. Beyond syntax, idioms/paradigm/familiarity should also play role.
forgotpwd16··on APT Rust requirement raises questions
>tool that can translate memory-safe Rust code into memory-unsafe C code

Fwiw, there're two such ongoing efforts. One[1] being an, written in C++, alternative Rust compiler that emits C (aka, in project's words, high-level assembly), the other[2] being a Rust compiler backend/plugin (as an extra goal to its initial being to compile Rust to CLR asm). Last one apparently is[3] quite modular and could be adapted for other targets too. Other options are continuing/improve GCC front-end for Rust and a recent attempt to make a Rust compiler in C[4] that compiles to QBE IR which can then be compiled with QBE/cc.

[1]: https://github.com/thepowersgang/mrustc [2]: https://github.com/FractalFir/rustc_codegen_clr [3]: https://old.reddit.com/r/rust/comments/1bhajzp/ [4]: https://codeberg.org/notgull/dozer

forgotpwd16··on Fast Lua runtime written in Rust
Not sure what this is. The homepage shows making an API in Lua. So is a web framework?

In any case, a bad description term-wise. Being referred to as runtime made sense for Node & JS, since JS was until Node mostly confined to web browsers with Node setting it free giving native OS access, an event loop, and even a module system. Lua, Python, etc are already shipping as their own self-contained runtime. So calling a Lua, Python, etc wrapper in X as runtime written in X makes no sense.

forgotpwd16··on You can make PS2 games in JavaScript
Someone did compile Godot (v2) for PS2 and did run it but seems like they gave up trying to run/export any games with it[1][2]. Somehow, the PSP port[3] (also v2) is more successful[4].

[1]: https://github.com/ivandortulov/godot-ps2 [2]: https://itch.io/t/3658957/compiling-godot-for-the-playstatio... [3]: https://github.com/technicaljicama/godot-psp [4]: https://www.gamebrew.org/wiki/3D-Luck_PSP

forgotpwd16··on You can make PS2 games in JavaScript
First link isn't by the author and second link is a different article...
forgotpwd16··on You can make PS2 games in JavaScript
That's true; network too. Can play digital backups (off USB/Eth) only by using POPStarter (for those unaware, POPS being Sony's PS1 emulator ripped off the single game that was officially used on). Although POPS isn't really that good (was used, experimentally, only once afterall), USB throughput isn't an issue.
forgotpwd16··on You can make PS2 games in JavaScript
USB is fine for PS1/retro games; should be more than enough for AthenaEnv. The difference only matters for PS2 backups. And there're more options than those two. HDD/SSD, Ethernet, MX4SIO/SIO2SD, MMCE (SD2PSX et al).
forgotpwd16··on You can make PS2 games in JavaScript
Cool article. AthenaEnv is an alternative follow-up to, also by same dev, Enceladus which uses Lua instead. Besides games they're used, and even more popular for this use case, homebrew apps. Examples being RETROLauncher & POPSLoader for Enceladus, and OSD-XMB for Athena.
forgotpwd16··on You can make PS2 games in JavaScript
>no one will know the font was changed

You're underestimating the effect typography has.

>you may want to make more of an effort

You seriously saying someone should put effort in editing a comic they didn't even cared on editing until they saw someone's comment? And somehow you equate the not putting effort to editing such comic to being fucked and starving?

AI hate sometimes makes people really lose their mind. Doing pointless random shit like this is a legit AI good application. Something that needs no creativity nor intellect to do. Just time. (And, most certainly, more than 10s.)

forgotpwd16··on Show HN: Vibe Prolog
If the project is about testing Claude's capabilities, the prompts will be more interesting to have.
forgotpwd16··on Things I don't like in configuration languages
Interestingly, at least in this list, after JSON/YAML were published in 2001 there's a 10y+ gap until competitors started arriving. Of those, considering only markup languages (so no Dhall/Nickel/etc*), EDN/TOML/JSON5/HJSON were published in early 2010s and all the rest (~10) are published late 10s-now 20s. Author's MAML being close to first in this new wave.

*Honorable mention to Nix, which is also functionally a configuration language, released a decade before those. Feel like recent few years there has been an increase in remaking existent things slightly different and marketing them like new.

forgotpwd16··on Ion: Modern System Shell in Rust
>if it wasn't ready in time

Ion predates Nushell by few years.

forgotpwd16··on Ion: Modern System Shell in Rust
Well, there're samples... in the screenshots. For user info* gotta check the linked manual, which also has a comparison page to POSIX shell[0]. It's basically a slightly different, no doubt improved, POSIX shell. On one hand it's easier to transition to. On other hand it's incompatible enough to create headaches. (And the big competitor is Bash/Zsh not sh.) Considering there're packages for Ubuntu, it is not Redox-only.

Nushell is certainly a better fit to be called modern shell but, even not considering the structured design, is much more different.

*Kinda makes sense as source repos are meant for devs; end-users should be checking manuals/sites instead. We're just used for repos' READMEs to be functionally similar to projects homepages.

[0]: https://doc.redox-os.org/ion-manual/migrating.html

forgotpwd16··on Open-source Zig book
zigbook.pdf => https://files.catbox.moe/gobtw7.pdf

HOWTO: The text can be found per-chapter in `./pages/{chapter}.adoc` but each chapter includes code snippets found in a respective `./chapters-data/code/{chapter}/` subdirectory. So, perhaps a hacky way to do it but quite lazy to fully figure asciidoctor flags, created using a script a combined book.adoc that includes all others with `include::{chapter}.adoc` directives, then run `asciidoctor-pdf -a sourcedir=../chapters-data/code -r asciidoctor-diagram -o book.pdf ./pages/book.adoc`.

forgotpwd16··on IDEmacs: A Visual Studio Code clone for Emacs
Should've probably mentioned it before but it actually used a dual-license model by having an MIT version that lagged behind upstream for 18 months (could be found in oni2-mit repo). During last month when development stopped it was fully re-licensed under MIT (hence oni2-mit repo no longer exists).
forgotpwd16··on AsciiMath
TeX is a typesetting system and not interested in semantics; AM is similar but simpler format meant for more casual use and to be quite readable even when not typesetted. What you're describing is essentially a computer algebra system. There's some overlap but they're different things.

That said, your system kinda exists already (and has been for decades). Mathematica can be written fully in M-Expressions (given any expression can recover the M-Exp with `FullForm[HoldForm[...]]`) and can convert to TeX (given any expression with `TeXForm[HoldForm[...]]`) for each if you want.

    | TeX          | M-Expression                      |
    |--------------+-----------------------------------|
    | 1 + 2        | Plus[1, 2]                        |
    | 1 - 2        | Plus[-1, 2]                       |
    | 1 \times 2   | Times[1, 2]                       |
    | frac{1}{2}   | Times[2, Power[2, -1]]            |
    | a_i          | Map[a, Range[0, n]]               | (* or better: a[i] *)
    | \sum_i a_i   | Apply[Plus, Map[a, Range[0, n]]]  | (* or better: Sum[a[i], i] *)
    | \int x^2, dx | Integrate[Power[x, 2], x]]]       |
Interestingly (didn't know it myself either) internally notation is even simpler than your described system as you can see by minus/frac examples. Note that `a_i` examples can exist in indefinite form, which is why the commented forms are more correct given no other context.

There's also Emmy which is a vastly expanded port of scmutils (from SICM) embedded in Clojure but haven't used it much. Being embedded in Clojure, uses sexps and, when used in Clerk environment, can render to TeX.

forgotpwd16··on Writing a DOS Clone in 2019
There's a follow up post and there was supposed to be another one too but apparently was never written. Regarding code:

>Once I return to work and get approval to open up the source code, I’ll make the repo public as well.

Guess approval wasn't given?

forgotpwd16··on IDEmacs: A Visual Studio Code clone for Emacs
>of an electron application

It isn't an Electron application*, that's why GP said native. The EULA part though was probably a block to adoption.

*It uses Revery, a, made by OniVim's devs, cross-platform GUI framework (similar to Flutter but build on Reason/OCaml).

forgotpwd16··on AsciiMath
>for an obscure reason known only to its author

It's, in project's words, simple calculator-style syntax (can also call it simplified LaTeX subset or that ad hoc math syntax used in emails but standardized) made to easily embed math on web pages by converting to MathML, with its existence predating MathJax by few years (and even MathJax's predecessor, jsMath). It was never meant to be LaTeX competitor.

With last point, have noticed people most often use this xkcd strip opposite to what it means. It's about when, for a particular use case, one standard/tech/whatever tries to replace all others rather when one standard/tech/whatever attempts to fulfill a distinct use case.

forgotpwd16··on Designing a Language (2017)
What you mean with runtime context? In any case language design and implementation are distinct concepts, although they're usually running in parallel so you don't end up with a design that is unimplementable (e.g. BitC).
forgotpwd16··on Google Releases CodeWiki
Apparently gotta request a new repo. Kinda lame.
forgotpwd16··on Moving Back to a Tiling WM – XMonad
Checking the video and impressed how people remember all the programs they've running on the canvas and their location. In i3 have been using i3-renameworkspaces to know what is opened in other workspaces because kept forgetting.
forgotpwd16··on Magit manuals are available online again
Unless something has changed recently, all you can do is set budget alerts on billing updates. Runaway costs for people simply testing AWS is common. (On the bright side, again unless something has changed recently, asking them in support to scrap them works.)
forgotpwd16··on I think nobody wants AI in Firefox, Mozilla
>refocus on the one thing that still gives the organization a reason to exist: building a great browser

Considering their existence depends on Google's money, it's to their best interest for the browser to lag behind Chrome.

forgotpwd16··on The terminal of the future
A solution build upon Emacs is trivially portable by utilizing a custom init.el, setting the user-emacs-directory variable, and a script/desktop entry running Emacs with it. A solution build upon anything is, in theory, portable utilizing Nix/Guix.
forgotpwd16··on The terminal of the future
What GP talks about is illustrated with the following modification of your example:

  PS /home/user> gc *.txt | measure | cat | select -ExpandProperty Count
  Select-Object: Property "Count" cannot be found.
  Select-Object: Property "Count" cannot be found.
  Select-Object: Property "Count" cannot be found.
  Select-Object: Property "Count" cannot be found.
  Select-Object: Property "Count" cannot be found.
  Select-Object: Property "Count" cannot be found.
  Select-Object: Property "Count" cannot be found.
  Select-Object: Property "Count" cannot be found.
  Select-Object: Property "Count" cannot be found.
Essentially at every step you need to consider whether the preceding command outputs objects or not. This isn't the case with the Unix way. The pipeline always carries a stream of bytes. You only have to consider how to interpret that stream.
forgotpwd16··on The terminal of the future
The discussion is about the terminal as an interface rather the emulator/renderer specifically, or in this case the windowing system. So in Plan 9 you could've a GUI app overtake the root window but could you have graphics intertwined with text when working at the shell?
forgotpwd16··on The terminal of the future
Ghostty may be great performance/standards-wise but, currently at least, brings no innovations.
forgotpwd16··on I hate screenshots of text
As described in the article, it isn't just text being image but that, usually, the image is only a subset of the entire text. Yes, OCR can help find the file containing a code segment in your local codebase but issues such as, mentioned in the article, sending a random error line rather the entire log remain.
← PreviousPage 11 of 34Next →