News for hackers. Stuff that matters.

yeokm1

Re: on Tuesday April 15, 2025 @09:32AM (#43692457)
Conventional wisdom states that running LLMs locally will require computers with high performance specifications especially GPUs with lots of VRAM. But is this actually true?

Thanks to an open-source llama2.c project, I ported it to work so vintage machines running DOS can actually inference Llama 2 LLM models. Of course there are severe limitations but the results will surprise you.

Re: on Saturday October 05, 2024 @11:03PM (#41754433)
If I were to tell you a PC has a floppy drive, optical drive, Sound Blaster card, serial, parallel and PS/2 ports running DOS, you would think I’m referring to a machine from the 1990s. But my very modern PC built in 2024 possess these characteristics!

I recently built myself a PC as my previous desktop components was insufficient for my current needs. I decided to build one with the ability to still reach back into the past to run DOS.

In this post, I will go through my thought process I went through to decide on the specifications as well as the journey I made to run MS-DOS 6.22 on it.

I did an experiment on a relatively modern 2020 Thinkpad and found that it can still run DOS.

Modern features like Thunderbolt, 2.5 Gig Ethernet and Sound Blaster compatibility over Intel High Definition Audio can work which is pretty remarkable. Thanks to drivers that can actually be found online.

I also ran 8088 Domination and it seems to work well too.

This is however the end of the line, no more Thinkpads and likely other laptops made after this model generation will be able to run DOS natively.

Re: on Monday September 11, 2023 @08:28PM (#37475508)
I used Enhanced Doskey. http://paulhoule.com/doskey/
Re: on Monday September 11, 2023 @08:28PM (#37475507)
They have already written an article about it :)

https://hackaday.com/2023/09/10/upgraded-graphics-gremlin-ad...

Re:Building a DOS ChatGPT client in 2023 on Saturday March 25, 2023 @08:52PM (#35309367)
With the recent attention on ChatGPT and OpenAI’s release of their APIs, many developers have developed clients for modern platforms to talk to this super smart AI chatbot. However I’m pretty sure almost nobody has written one for a vintage platform like MS-DOS.
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Saturday December 21, 2019 @11:01AM (#21851767)
I updated my blog post to include a memory and disk usage comparison :)
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @10:04AM (#21835446)
The printf is just for example code.

In actual fact, I'll have to copy the data to a char array to be sent to display in the listbox.

Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @10:01AM (#21835425)
VC++ 1.52 has an internal text editor but nowhere near the capabilities of Visual Studio Code or any modern text editors.

I also use Git and sourcetree and they won't run on Win 2K.

Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @09:39AM (#21835237)
If someone has got a working TLS 1.2 on such an old OS, I'll like to know too. Because I certainly haven't saw any example.

I think the work to get TLS 1.2 working will certainly dwarf the work on this Slack app.

Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @05:07AM (#21833509)
I felt it was enough for me. :)

https://api.slack.com/

Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @04:56AM (#21833459)
Win 3.1 apps can also access memory in 64K segments which I only use 1 to hold the humongous HTTP+JSON reply from Slack.

Wikipedia says "However, no single process can use more than 16 MB.". Not sure where is the source of that though.

https://en.wikipedia.org/wiki/Windows_3.1x

Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @04:54AM (#21833450)
You are correct. My 390E has 384MB of RAM but only 256MB is accessible by Win 3.1.

An earlier blog post shows this http://yeokhengmeng.com/2016/09/windows-for-workgroups-3-11-...

Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @04:17AM (#21833276)
Hey thanks for the tips. Let me adjust the blog post to mention this point
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @04:01AM (#21833204)
Hmm. Borland and Watcom compilers came up in my research. Will look into them for help next time!
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @03:49AM (#21833159)
Thanks for raising this to me!
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @03:49AM (#21833157)
Oh I did not know about this! I just based my understanding from the official Microsoft documentation. Thanks!
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @03:48AM (#21833150)
Trumpet Winsock is not by Microsoft :P
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @03:47AM (#21833139)
Noted. Will update my blog post!
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @03:45AM (#21833132)
Something I can try next time! I didn't know about BearSSL before
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @12:34AM (#21832218)
Unsure why it goes to twitter. Here is the blog post. http://yeokhengmeng.com/2019/12/building-a-new-win-3-1-app-i...
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @12:32AM (#21832209)
Agreed. But such CDs are tough to locate today.
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Thursday December 19, 2019 @12:31AM (#21832207)
I forgot to make the repo public. It's up now!
Re:Building a new Windows 3.1 app in 2019: A Slack Client on Wednesday December 18, 2019 @11:06PM (#21831952)
I built a Win 3.1 app during a company hackathon just for fun. Here, I detail learnings and process for how a new old app can be created with the aid of modern tools and hindsight of old technologies. And perhaps what lessons can it offer us today.

Without the benefit of modern libraries and languages, I had to read up and take care of many low level details, socket programming, HTTP, JSON parsing, UI design in code all under tight memory constraints. Nevertheless, it was a terrific lesson in understanding how things work under the hood.

I had to do things the old-fashioned way reading books and header files due to the dearth of online documentation. I can empathise with the plight of the programmers of yesteryears who had to code without the benefit of online search engines.

With this blog post, I hope you'll find it interesting to learn about developing a modern-ancient app for Win 3.1.

https://github.com/yeokm1/w31slack https://github.com/yeokm1/http-to-https-proxy

My colleague who sits beside me is okay with it :)

Older »