Show HN: TRUST – Coding Rust like it's 1989

(github.com)

84 points | by wojtczyk 13 hours ago

15 comments

  • GuB-42 5 hours ago
    Looking at this makes me nostalgic in a way the author probably hasn't intended.

    Rust is notorious for its slow compile times, while Turbo Pascal was known to be blazingly fast. And the debugger, one of the most important part of the experience is "Not implemented". Dressing it as a 1989 IDE makes me painfully aware of what we have lost. Despite running on hardware that were orders of magnitudes slower than today, software used to be more responsive.

    By "more responsive" I mean that while modern systems are excellent at batch processing, latency is often not great, and because so much happens in parallel, also confusing.

    • pjmlp 4 hours ago
      Some of us still haven't lost it thanks to Delphi, C++ Builder, .NET or even Java.

      However they aren't fashionable in the days of Electron and CLI nostalgia.

      So you end up with Go on vim, instead of FreePascal on Lazarus.

    • anta40 4 hours ago
      >> Rust is notorious for its slow compile times

      Don't forget Haskell. And what's other... C++, OCaml, etc?

      I guess a language with complex/complicated design is difficult to be compiled "blazing fast"

      • GuB-42 9 minutes ago
        Rust is not alone to compile slowly. And yes, there are reasons, but if you want to pick a language to fit the Turbo Pascal vibes, that's not it.

        Zig and Go would probably be better modern languages for this. Also "Turbo Zig" and "Turbo Go" sound cool, "Trust" sounds too corporate :)

      • wojtczyk 3 hours ago
        Right, we can appreciate a lot of the heavy weight lifting by the compiler or blazing fast translations... in the latter case an assembler would do
    • wojtczyk 5 hours ago
      It was intended to evoke emotions. I really consider this more of an art project than a developer tool.

      I will see about the debugger.

  • pjmlp 6 hours ago
    Well not quite, unfortunely Rust still has a bit to catch up with 1989, it isn't only the Turbo Vision inspired IDE.

    https://ia801901.us.archive.org/5/items/TurboPascal55/Antiqu...

    > Fast! Compiles 34, 000 lines of code per minute

    https://archive.org/details/bitsavers_borlandtur5.5Brochure1...

    Measured on a a IBM PS/2 Model 60, meaning an Intel 80286 running at 10 MHz with 640 KB for MS-DOS, up to 8 MB depending on extenders and HMA configurations.

    https://en.wikipedia.org/wiki/IBM_PS/2_Model_60

    And if you feel using the language complexity excuse for 2026 hardware, see OCaml, Delphi, D, or C# AOT.

    • wojtczyk 5 hours ago
      Thank you for the references!
  • nazgulsenpai 1 hour ago
    The blue CRT glow of Turbo C++ / QBasic 4.5 IDE at 12 AM when I've snuck up in the middle of the night to poke around on the family computer on a school night when I was ~10 years old... I love this.
    • wojtczyk 43 minutes ago
      Happy to hear that. Thank you!
  • 0rbiter 5 hours ago
    The window screenshots are clearly from macOS 26, the rounded corners look so broken. If Rust ran in DosBox, we would have the perfect 1989 emulator.
    • wojtczyk 3 hours ago
      Thanks for the feedback, maybe I'll redo the screenshots
      • joshka 2 hours ago
        I recommend VHS generally for these (we use them for all the ratatui screenshots generally). I'm also playing around with doing a rust version of this (https://www.joshka.net/betamax/)
        • wojtczyk 41 minutes ago
          Thanks, I was looking into a terminal recorder last night, but then it was kind of late. I will look into VHS.
  • rob74 9 hours ago
    Cool! I assume TRUST stands for "Turbo Rust"? If yes, maybe it would be worth mentioning that in the readme. I doubt that Embarcadero Technologies (the current owners of the Delphi and C++ Builder IDEs, and probably also the owners of other former Borland trademarks) would mind - but then again, it doesn't hurt to stay on the safe side...
    • wojtczyk 5 hours ago
      I can neither confirm nor deny what the T stands for. However a quick research showed some trademarks are current and renewed.
    • weinzierl 8 hours ago
      Random aside: Back in the day Microsoft used the "Quick" prefix and Borland used "Turbo". I am waiting for a QRUST.
      • gpderetta 8 hours ago
        VisualRust
        • wojtczyk 5 hours ago
          haha - someone should do it
          • tosti 2 minutes ago
            Nowadays it would be called VisualRust365 with CoPilot. And suck.
      • wojtczyk 5 hours ago
        QRUST - I love that
        • sourcegrift 3 hours ago
          Of course a pole would love it! (Only mean it positively:-) )
          • wojtczyk 3 hours ago
            I didn't read it any other way than positively only
    • monadgonad 7 hours ago
      Staying on the safe side would be not confirming whether it stands for Turbo Rust or not. "You might very well think that; I couldn't possibly comment."
  • awhenderson 9 hours ago
    I haven't felt a lot of desire to code in Rust but I do now! Absolutely applaud this project - it's completely tugged on the retro nostalgia strings for my Turbo Pascal days. Also one of the reasons I enjoy the previously HN featured Microsoft Edit project immensely - https://github.com/microsoft/edit. Thank you OP
    • wojtczyk 5 hours ago
      Thank you! I appreciate your feedback
  • 3836293648 4 hours ago
    This needs to have DOS builds available. Is it performant enough for 90s hardware? I know the rust compiler itself isn't really.
    • rho_soul_kg_m3 3 hours ago
      I think one of the earlier OCaml versions of the Rust compiler would be lean enough to be usable on a mid-90's PC.
  • anta40 3 hours ago
    Just noticed in cannot build a standalone Rust source file

    "error: could not find 'Cargo.toml'"

    I assume first need to create a project by "cargo new" ...?

    Anyway, love the good ol' Turbo Pascal 7 Reference. Haven't touch it for more than 1 decade.

    • wojtczyk 3 hours ago
      Thanks for letting me know. I shall add that.
  • joshka 2 hours ago
    Ha - I see it's Ratatui based. Nice work there :D
    • wojtczyk 2 hours ago
      Thank you! Ratatui was super helpful
  • eithed 8 hours ago
    Ah, Norton Commander takes me back
    • wojtczyk 5 hours ago
      Same here. I need to fire up my PC AT again.
  • kaant 11 hours ago
    Because Rust deserves a blue-screen IDE from the olden days and someone had to do this...
    • wojtczyk 5 hours ago
      Thank you for noticing! :D
  • WiSaGaN 8 hours ago
    Maybe I should start a project rewriting pctools 5.0 in rust!
    • wojtczyk 5 hours ago
      I would love to see that.
  • vsgherzi 9 hours ago
    Honestly the experience looks pretty nice. Which is crazy to say for such an old style of program but I kind of like it. Perhaps just nostalgia for a time I never got your experience.
    • 2ndorderthought 9 hours ago
      I'm not mad at this at all. It probably runs with like 20kb if RAM.

      I realize the author is probably just having fun, but if a few modern features added to this and I would probably try it.

      Multi cursor, a little terminal window, some way to do code hints or intelligence. This would be a dream boat lol

      • staplung 4 hours ago
        Have you tried Fresh? Has everything you listed and more

        https://getfresh.dev/

      • wojtczyk 5 hours ago
        Thank you! I may build this out further. I just wanted to get started and feel like back then; share and see what happens. If I am the only one who is excited about this.
      • boxed 7 hours ago
        https://github.com/boxed/TurboKod

        I started this just for the lulz, but now I've got:

        copy/paste/undo

        multiple cursors

        debuggers

        syntax highlighting (even nested languages with jetbrains style comments!)

        find-in-files

        integrated documentation

        integrated git client (roughly modeled after lazygit)

        spell checking

        and tons more that I can't even remember

        • 2ndorderthought 6 hours ago
          It's pretty awesome and inspires me more than lulz. Highly successful art project if you ask me
          • boxed 6 hours ago
            Thanks.

            I'm thinking it could be a sort of reference implementation to build your own custom IDE the way you like it. I'm going to attempt to get TurboKod to be good enough to be my daily driver, we'll see how it goes.

        • wojtczyk 5 hours ago
          OP here. Thanks for sharing! I love your project. Looks very polished and true to the experience.

          And yes, TRUST got started for the lulz and feels.

    • wojtczyk 5 hours ago
      Thank you! It was meant to evoke emotions.
    • q3k 8 hours ago
      A year or so ago I spent half a day writing some Rust on an actual DEC glass teletype (VT520) connected to a Debian box. I used vim and shell job control (^Z, jobs, fg, etc.) to switch between tooling and a persistent text editor. It made me feel things.
      • wojtczyk 5 hours ago
        I can imagine. Thank you for sharing! I just saw one in the Computer History Museum.
  • sourcegrift 7 hours ago
    Embed nvim in the right pane!
    • wojtczyk 5 hours ago
      Thank you for the feedback. I may actually add that option.
  • AbuAssar 7 hours ago
    nice (and clever) name!
    • ahartmetz 4 hours ago
      I actually expected an unsafe-only Rust because of the name and the "archaic" date (of course, "safe" languages did exist at the time, if not low-level and safe ones).

      Still, cool project.

      • wojtczyk 3 hours ago
        unsafe-only Rust ... good idea!
    • wojtczyk 5 hours ago
      Thank you!