Most active commenters

    ←back to thread

    Microsoft Edit

    (github.com)
    486 points ethanpil | 11 comments | | HN request time: 1.849s | source | bottom
    Show context
    jksmith ◴[] No.44372826[source]
    This is just a "because I wanted to" project. And I get that; done a lot of those myself just to understand what the hell was going on. But the rewrite of turbo vision into FPC and compiling to half a dozen targets has been around for 20 years. Turbo vision is probably the best text mode windowing library in existence. The cool fun kicks in when you can map a whole text screen to an array like so: var Screen: Array[1..80,1..25] Of Byte Absolute $B800; // or something like that as i recall

    What turbo vision brought to the game was movable, (non) modal windows. Basically a lot of rewriting that array in a loop. Pretty snappy. I made a shitload of money with that library.

    replies(6): >>44372927 #>>44373230 #>>44373408 #>>44374737 #>>44376013 #>>44381270 #
    1. dleslie ◴[] No.44373230[source]
    For those curious, here is a modern port of the C++ Turbo Vision that also supports Unicode:

    https://github.com/magiblot/tvision

    replies(1): >>44374924 #
    2. san1927 ◴[] No.44374924[source]
    lmao is any body still using turbo cpp?
    replies(4): >>44375029 #>>44375402 #>>44379085 #>>44379927 #
    3. srvmshr ◴[] No.44375029[source]
    You'll be surprised if I tell you several universities in India have not updated their curriculum in a very long time & Turbo C++ (& its non-standard C++ flavor) is the weapon of choice. The school board in the '00s, which preferred to teach a programming language for CS, used to have it curriculum around this C++ dialect. I have passed my high-school board examinations with this language (It was known to be already outdated in 2004. The smart kids knew the real C++ was programming by Visual Studio 6 ecosystem. But one had to still deal with it to clear the exams.)

    Admitted, a few things have changed in last couple of years. MATLAB is being replaced by Python. Teaching 8085 & 8051 is being replaced by RasPi/Arduino. 8086 is taught alongside ARM & RISC, and not touted as SoTA.

    I last saw Turbo being used in 2016-17 in a university setting, inside a DosBox (because Windows 7+ have dropped support for such old programs). Insane, but true.

    replies(4): >>44375918 #>>44378703 #>>44379125 #>>44382236 #
    4. keyle ◴[] No.44375402[source]
    I wish I was.
    5. zozbot234 ◴[] No.44375918{3}[source]
    Nice. This editor could see a lot of use in such places if it gains developer-oriented features such as LSP, DAP and tree-sitter parsers. As a Rust-written editor, it will probably be quite a bit easier on resources than the usual modern choices which generally involve VSCode or Jetbeans plus language-specific plugins.
    6. ashoeafoot ◴[] No.44378703{3}[source]
    embrace. extend. deadend.
    7. dleslie ◴[] No.44379085[source]
    OpenWatcom is the preferred choice of those still writing DOS applications, but there are those that still use Turbo C++ for the nostalgia.
    replies(1): >>44380337 #
    8. Arnavion ◴[] No.44379125{3}[source]
    Yeah, I also learned C++ via Turbo C++ in school in India in the early 2000s. Googling for "conio.h" shows Indians still talking about it in blogs and C/C++ forums as of 2024.
    9. nazgulsenpai ◴[] No.44379927[source]
    Core memory unlocked... When I was ~10-12, I asked my dad (who knew nothing but thought he knew everything about computers) how to make programs for Windows because I couldn't in QBasic. His answer was "with C++!". He came home with a book Learn C++ In 24 Hours that had Turbo C++ on a single 3.5" floppy disk. Naturally, that did not work, but I still had fun failing to compile every program I attempted to write.
    10. iforgotpassword ◴[] No.44380337{3}[source]
    Oh, a few years ago I wanted to write a simple program for dos. Since this is a Linux-only household otherwise, I was delighted to see OpenWatcom has a Linux port. I spent a good half hour trying to get a simple first version of the program I wanted to write running, but it always crashed right away. I simplified more and more until I basically arrived at hello world. On a hunch I ran the windows version of OpenWatcom with wine, and lo and behold, the program ran flawlessly! Once I googled that I found a couple of forum threads where people went like "yeah sure the Linux port produces broken binaries" because of course.

    It's never the compiler until it's the compiler. Just didn't expect it during some simple fun coding at home. :)

    11. ethbr1 ◴[] No.44382236{3}[source]
    > You'll be surprised if I tell you several universities in India have not updated their curriculum in a very long time

    I once asked an Indian colleague why Indians use US/UK-nonstandard English like "kindly", "do the needful", and "revert".

    He thought about it a minute, then said "Oh, the texts everyone uses to learn English say that proper letters must always begin with 'Kindly,'".

    Sokath, his eyes uncovered.