Most active commenters
  • jksmith(4)

←back to thread

Microsoft Edit

(github.com)
486 points ethanpil | 29 comments | | HN request time: 1.2s | source | bottom
1. 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 #
2. throwaway127482 ◴[] No.44372927[source]
I am curious about how you made money with it, if you don't mind sharing.
replies(1): >>44372980 #
3. jksmith ◴[] No.44372980[source]
My first company out of uni was a company that sold a tv advertising application written in dos. It did all the reports, put together spot advert packages, measuring reach and frequency, cost per point, etc. Used Neilsen ratings for data. The company at the time paid commissions along with salary to programmers. The app still lives on in windows, but I've been out of that game for decades. Written in TP for dos, then Delphi for windows.
replies(1): >>44373064 #
4. TheAmazingRace ◴[] No.44373064{3}[source]
Honestly dude, this is clever. Good on you for finding an opportunity to make a useful tool and you made out like a bandit in the process. :)
replies(2): >>44373196 #>>44378711 #
5. jksmith ◴[] No.44373196{4}[source]
That was the toolchain that my company used. Turbo vision was a Borland product, back when Philippe Khan was running the company. We were that ahead of the curve for "shrinkwrapped software development" at the time. That legacy, Delphi and FPC still maintain the standard for desktop, native dev, really for the last 30 years.
replies(1): >>44373371 #
6. 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 #
7. esafak ◴[] No.44373371{5}[source]
Kahn is still pretty active: https://philippekahn.com/
replies(1): >>44376302 #
8. electroly ◴[] No.44373408[source]
Every time I see a new modern TUI framework, my disappointment is the same: "Oh. This isn't as good as Turbo Vision."
replies(2): >>44373486 #>>44380735 #
9. wenc ◴[] No.44373486[source]
Turbo Vision was truly immersive. I used it in Turbo C and also in Paradox 4.5.

So good.

replies(1): >>44376964 #
10. nathell ◴[] No.44374737[source]
array[1..25, 1..80] of Word absolute $B800:0000.

Arrays in TP were laid out in row-major order, and each character was represented by two bytes, one denoting the character itself and the other the attributes (foreground/background color and blinking). So, even better, array[1..25, 1..80] of packed record ch: char; attr: byte end absolute $B800:0000.

Replace $B800 with $B000 for monochrome text display (mode 7), e.g., on the Hercules.

11. san1927 ◴[] No.44374924[source]
lmao is any body still using turbo cpp?
replies(4): >>44375029 #>>44375402 #>>44379085 #>>44379927 #
12. srvmshr ◴[] No.44375029{3}[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 #
13. keyle ◴[] No.44375402{3}[source]
I wish I was.
14. zozbot234 ◴[] No.44375918{4}[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.
15. TiredOfLife ◴[] No.44376013[source]
> This is just a "because I wanted to" project.

It's not. They needed a small TUI editor that was bundled with Windows and worked over ssh.

https://news.ycombinator.com/item?id=44034961

replies(1): >>44383111 #
16. velcrovan ◴[] No.44376302{6}[source]
I skimmed the blog. I detect LLM output, but no person.
replies(1): >>44378410 #
17. ByteDrifter ◴[] No.44376964{3}[source]
Funny how something that ran in a tiny box on a 386 could feel more responsive than some modern GUIs. Turbo Vision really nailed the basics.
replies(1): >>44381665 #
18. natebc ◴[] No.44378410{7}[source]
I think we're going to have to get used to feeling like this. Makes me sad a little.
19. ashoeafoot ◴[] No.44378703{4}[source]
embrace. extend. deadend.
20. rollcat ◴[] No.44378711{4}[source]
The broadcast industry continues to move at a slow pace compared to IT, and understandably - it's live TV, you need things to work 24/7/365.

That means there's always an opportunity for the resourceful.

21. dleslie ◴[] No.44379085{3}[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 #
22. Arnavion ◴[] No.44379125{4}[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.
23. nazgulsenpai ◴[] No.44379927{3}[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.
24. iforgotpassword ◴[] No.44380337{4}[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. :)

25. no_wizard ◴[] No.44380735[source]
I always thought Charm was pretty robust as far as TUI tools go[0]

[0]: https://charm.sh/

26. macjohnmcc ◴[] No.44381270[source]
I'd love for an interface like that on VSCode that runs in a terminal even remotely.
27. kgwxd ◴[] No.44381665{4}[source]
I swear the characters appear on the screen before I press the keys when I'm in a real (not emulated) Linux terminal. I can't feel the lag as I'm typing this comment into a basic textarea, but it's clearly there, because a terminal feels magical.
28. ethbr1 ◴[] No.44382236{4}[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.

29. jksmith ◴[] No.44383111[source]
Well, I don't have the rights to bundle anything with windows, nor would I want to. All you'd need is a thin player to reproduce a TUI screen if done in FPC, and it wouldn't be limited to Windows. All I'm suggesting is we tend to have some recency prejudice in our development, even when it costs more time/money than it should. I'm sure I've done the same over the years.