frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

FreeBASIC is a free/open source BASIC compiler for Windows DOS and Linux

https://freebasic.net/
115•90s_dev•5mo ago

Comments

orionblastar•5mo ago
This one emulates GW-BASIC as PC-BASIC so old BASIC programs for the IBM PC DOS systems can run on modern systems: https://robhagemans.github.io/pcbasic/

FreeBASIC is like Microsoft's QuickBASIC.

More BASIC Languages: https://www.thefreecountry.com/compilers/basic.shtml

WalterGR•5mo ago
> FreeBASIC is like Microsoft's QuickBASIC.

Except that it doesn't emulate Microsoft's QuickBASIC, or ... ?

banana_giraffe•5mo ago
It does support "-lang qb" which is designed to specifically limit FreeBASIC to a QuickBASIC compatible dialect.
TonyTrapp•5mo ago
And more specifically, "-lang qb" is more or less how FreeBASIC started out. The more modern dialects came later, and became the default, hence the addition of "-lang qb".
vunderba•5mo ago
It really isn't - from the docs themselves:

  FreeBASIC gives you the FreeBASIC compiler program (fbc or fbc.exe),
  plus the tools and libraries used by it. fbc is a command line program
  that takes FreeBASIC source code files (*.bas) and compiles them into
  executables.  In the combined standalone packages for windows, the main
  executable is named fbc32.exe (for 32-bit) and fbc64.exe (for 64-bit)

The magic of QuickBasic was that it was an editor, interpreter, and help system all rolled up into a single EXE file. Punch F5 and watch your BAS file execute line-by-line.
bencollver•5mo ago
Wasn't QBasic the interpreter as opposed to QuickBasic the compiler?
analog31•5mo ago
This is what I recall too. QuickBasic was perhaps BASIC's answer to Turbo Pascal, a relatively lightweight but usable text based IDE. I knew some happy users.
orionblastar•5mo ago
https://winworldpc.com/product/quickbasic/45 for a look at QuickBASIC 4.5 abandonware; they also had QuickC and QuickPascal.
pjmlp•5mo ago
No, the answer was Quick Pascal, however Microsoft didn't really cared that much about it.
vunderba•5mo ago
It's been a long time, but my impression was that QuickBASIC had an interpreter and the ability to compile. Then later on, Microsoft bundled a more limited version called QBasic with later versions of MS DOS which lacked the compiler.

But all of them (QBasic, QuickBASIC, Microsoft PDS, and even Visual Basic for DOS which almost nobody remembers sadly) had the editor, interpretative execution, and built-in help.

90s_dev•5mo ago
I remember VB-DOS, and fondly too. It was magical. I think I used it even before VB3.
agf•5mo ago
This matches my memory. When I got my dad's old work computer with QuickBASIC on it, and I discovered the compiler, and could write programs other people could "just run", I felt like a real programmer for the first time.
90s_dev•5mo ago
Yet you were even before that, the moment you made programs work at all.
pjmlp•5mo ago
Yes that was the case, by the time Visual Basic 5 came to be, its compiler was based on Visual C++ backend.
DCKP•5mo ago
All this brings back fond memories of my first programming foray, an ASCII game in QBASIC from Mars and Back: Computer Programming Handbook by Andrew J. Read. So much fun, so much frustration.
the_af•5mo ago
No, QuickBasic was both an interpreter and a compiler. QBasic was just an interpreter.
klipt•5mo ago
"Compiler". Even Visual Basic only compiled to p-code, which had to be interpreted at runtime. Not to fully native code.

That's why it always ran slower than Delphi.

pjmlp•5mo ago
Wrong, starting with with Visual Basic 5, a proper compiler was introduced based on Visual C++ backend, in addition to the P-Code interpreter.

Additionally VB devs no longer needed to rely on C++ for ActiveX controls, aka OCX, the VBX replacement.

dspillett•5mo ago
VB6 (and IIRC 5 too) could compile to native, as seen in the compile options: https://imgur.com/a/v0QcbBU

P-code was still offered as an option because some wanted the smaller output binary sizes, and the build process was faster⁰.

Some incorrectly assume that the native option wasn't really fully compiled because the main supporting library (msvbvm60.dll) was still used¹, but this was for common library functions³ and the interpreter portion was not touched.

There were unofficial tools that would statically link your exe with the relevant VB runtime (and certain other libraries) but the use of those was rare.

----

[0] Though I don't think the build speed matter was actually significant for many, if any, workflows, even on really slow kit.

[1] Some didn't distribute it after a time, to reduce download sizes, as they were included with Windows so users already had them. Windows 7 (and maybe Vista?) included msvbvm60.dll and friends by default, and most XP and 98 installs² had it too as it came with Internet Explorer updates.

[2] though there was a compatibility break at one point that meant you needed to recompile with VB6sp6 if you hadn't included a local copy in your apps directory

[3] Much like many C programs don't have glibc statically linked into them, but work because it is practically ubiquitous on the systems they target.

pjmlp•5mo ago
Having to depend on msvbvm60.dll was hardly any different than msvcrt.dll, but try to explain that to most folks.
lproven•5mo ago
Both of these are incorrect.

Both QuickBASIC and the BASIC Professional Development System compiled to full native DOS code, and could make standalone EXE files.

VB finally gained this with VB 6 which could also make native EXE files.

the_af•5mo ago
QuickBasic produced a DOS .EXE file.

It didn't output p-code. You're confusing it with Visual Basic.

lproven•5mo ago
You are correct, and VB 6, the final version, at last included a native-code compiler as well.
westurner•5mo ago
> The magic of QuickBasic was that it was an editor, interpreter, and help system all rolled up into a single EXE file. Punch F5 and watch your BAS file execute line-by-line.

That's still how vscode works; F5 to debug and Ctrl-[Shift]-P like CtrlP.vim: https://code.visualstudio.com/docs/debugtest/debugging

FWICS,

The sorucoder.freebasic vscode extension has syntax highlighting: https://marketplace.visualstudio.com/items?itemName=sorucode...

There's also an QB64Official/vscode extension that has syntax highlighting and keyboard shortcuts: https://github.com/QB64Official/vscode

re: how qb64 and C-edit are like EDIT.COM, and GORILLA.BAS: https://news.ycombinator.com/item?id=41410427

C-edit: https://github.com/velorek1/C-edit

vunderba•5mo ago
I tried QB64 a couple years ago, but IIRC it's still compiled as opposed to interpretative, e.g. you can't Ctrl-Break and drop into the current executing line of BASIC code unless they've radically changed how it works.
90s_dev•5mo ago
Rather, QB was the pico8 of the 1990s. Convenient, self-contained, mysterious, quasi-powerful, in-app help menu for the entire language and API, and a few built-in demo games.
westurner•5mo ago
'Edit' - a CLI/TUI text editor similar to EDIT.COM but written in rust - is now open source https://news.ycombinator.com/item?id=44031529
pjmlp•5mo ago
A magic also available in Turbo BASIC.

Ironically Borland gave up competing against Microsoft on BASIC tooling, while Microsoft gave up competing against Borland on Pascal tooling (Quick Pascal).

Both products where short lived, Microsoft killed Quick Pascal quite quickly, while Borland sold Turbo BASIC, which became Power BASIC.

orionblastar•5mo ago
PowerBASIC is dead; the website no longer works. The old PowerBASIC for DOS abandonware can be found here: https://winworldpc.com/product/powerbasic/3x

It is a DOS 16-bit program.

pjmlp•5mo ago
Yeah, I lost track of where it went back in Windows 9X days.

Real BASIC seemed the only alternative to VB that was somehow still market relevant.

anthk•5mo ago
Kinda like any Forth. Even PForth has a bundled block editor and a rudimentary help system.
lproven•5mo ago
No, FBC is not like QuickBASIC: there's no IDE in FBC.

However, the QB64PE project does have an IDE. Some screenshots in this thread:

https://qb64phoenix.com/forum/showthread.php?tid=2469&pid=23...

gus_massa•5mo ago
Old discussion: https://news.ycombinator.com/item?id=38730966 (105 points | Dec 2023 | 70 comments)
andrea76•5mo ago
Is there an ide with form designer like visual basic?
TonyTrapp•5mo ago
I think FBEdit was the closest to that, but like with most other languages, it never reached the same level of integration and quality because forms are simply not first-class citizens in FreeBASIC, unlike VB where the whole development process evoled around forms. You always need native GUI code or use a GUI library like GTK to achieve the same in FreeBASIC.
lproven•5mo ago
Not with FreeBASIC.

Others that do: Gambas, Xojo, RAD BASIC, Twin BASIC.

Libcat99•5mo ago
Not free, but this was one of my favorite things when learning to program. https://everybasic.info/lib/exe/fetch.php/basics/vbdos-3.png Visual Basic for DOS.
larodi•5mo ago
I really wonder why MS would not supper the whole BASIC legacy that anyway exists even without them.
anta40•5mo ago
I have some CDs from a computer magazine (in the 2000s) which provided you code archives even back to 90s (including good old QB stuffs).

FBC easily compile lots of them. Well, too bad still no macOS support.

zozbot234•5mo ago
Did you check whether these are available on Internet Archive already?
anta40•5mo ago
The magazine I meant is Mikrodata. It's an Indonesian IT magazine, which was was closed few years ago. Until 2000-ish, the magazines came with CDs which has code archives from practically all Mikrodata contributors.

I started learning programming in 2002 with VB, so it felt kinda amusing looking at 90s DOS stuffs (Turbo Pascal 7, QB, TASM) etc

zozbot234•5mo ago
Looks like the Internet Archive has no content from this magazine as of yet! It may be that they have it archived privately and it's just hidden from public view, but you may want to write to Jason Scott https://en.wikipedia.org/wiki/Jason_Scott (who works on the Software section at the Internet Archive) about getting this stuff backed up and archived properly for the foreseeable future. As an official archive and library, the Internet Archive is one entity that can keep copies of rare and fragile content safely backed up (and CD coverdiscs from old Indonesian magazines definitely qualify) without being restricted by copyright laws as most other people and organizations might be.
Firehawke•5mo ago
Microsoft really should go back and look into open sourcing more of their really old tools. Get versions of MASM, QuickBasic, VisualBasic (the DOS version, of course), and so forth out there.

There's a lot to learn from these old tools and it'd be nice to have this stuff opened up for tinkerers on ancient platforms. It's not like MS is going to make any money off any of this anymore, nor is it viable for use on a modern platform even with substantial effort.

JdeBP•5mo ago
Of course, things like NASM have existed for a long time precisely because MASM and TASM were not open source.

* https://www.nasm.us

ironicgnome•5mo ago
But can it run Nibbles or Gorillas?

The last-ever penny will be minted today in Philadelphia

https://www.cnn.com/2025/11/12/business/last-penny-minted
197•andrewl•3h ago•290 comments

Maestro Technology Sells Used SSD Drives as New

https://kozubik.com/items/MaestroTechnology/
28•walterbell•42m ago•15 comments

Steam Machine

https://store.steampowered.com/sale/steammachine
306•davikr•1h ago•124 comments

Learn Prolog Now

https://lpn.swi-prolog.org/lpnpage.php?pageid=top
168•rramadass•4h ago•99 comments

Steam Frame

https://store.steampowered.com/sale/steamframe
192•Philpax•1h ago•63 comments

Async and Finaliser Deadlocks

https://tratt.net/laurie/blog/2025/async_and_finaliser_deadlocks.html
23•emailed•59m ago•1 comments

Launch HN: JSX Tool (YC F25) – A Browser Dev-Panel IDE for React

21•jsunderland323•1h ago•10 comments

Yt-dlp: External JavaScript runtime now required for full YouTube support

https://github.com/yt-dlp/yt-dlp/issues/15012
668•bertman•8h ago•427 comments

Project Euler

https://projecteuler.net
31•swatson741•1h ago•9 comments

Apple Introduced Digital ID in Apple Wallet

https://www.apple.com/newsroom/2025/11/apple-introduces-digital-id-a-new-way-to-create-and-presen...
38•meetpateltech•2h ago•37 comments

Fighting the New York Times' invasion of user privacy

https://openai.com/index/fighting-nyt-user-privacy-invasion
162•meetpateltech•5h ago•165 comments

Ioannis Yannas invented artificial skin for treatment of burns–dies at 90

https://news.mit.edu/2025/professor-ioannis-yannas-dies-1027
83•bookofjoe•1w ago•3 comments

GPT-5.1: A smarter, more conversational ChatGPT

https://openai.com/index/gpt-5-1/
5•tedsanders•5m ago•0 comments

.NET 10

https://devblogs.microsoft.com/dotnet/announcing-dotnet-10/
402•runesoerensen•1d ago•318 comments

Waymo robotaxis are now giving rides on freeways in LA, SF and Phoenix

https://techcrunch.com/2025/11/12/waymo-robotaxis-are-now-giving-rides-on-freeways-in-these-3-cit...
183•nharada•3h ago•207 comments

Micro.blog launches new 'Studio' tier with video hosting

https://heydingus.net/blog/2025/11/micro-blog-offers-an-indie-alternative-to-youtube-with-its-stu...
76•justin-reeves•5h ago•27 comments

The Single Byte That Kills Your Exploit: Understanding Endianness

https://pwnforfunandprofit.substack.com/p/the-single-byte-that-kills-your-exploit
8•andwati•3d ago•0 comments

What happened to Transmeta, the last big dotcom IPO

https://dfarq.homeip.net/what-happened-to-transmeta-the-last-big-dotcom-ipo/
165•onename•10h ago•86 comments

Yann LeCun to depart Meta and launch AI startup focused on 'world models'

https://www.nasdaq.com/articles/metas-chief-ai-scientist-yann-lecun-depart-and-launch-ai-start-fo...
727•MindBreaker2605•11h ago•535 comments

The Geometry Behind Normal Maps

https://www.shlom.dev/articles/geometry-behind-normal-maps/
83•betamark•5h ago•5 comments

A brief look at FreeBSD

https://yorickpeterse.com/articles/a-brief-look-at-freebsd/
22•todsacerdoti•7h ago•4 comments

NetHack4 Philosophy

http://nethack4.org/philosophy.html
41•suioir•1w ago•15 comments

Building a CI/CD Pipeline Runner from Scratch in Python

https://muhammadraza.me/2025/building-cicd-pipeline-runner-python/
16•mr_o47•2d ago•3 comments

Valve Announces New Steam Machine, Steam Controller and Steam Frame

https://www.phoronix.com/news/Steam-Machines-Frame-2026
21•doener•45m ago•1 comments

Pakistani newspaper mistakenly prints AI prompt with the article

https://twitter.com/omar_quraishi/status/1988518627859951986
424•wg0•7h ago•150 comments

Hard drives on backorder for two years as AI data centers trigger HDD shortage

https://www.tomshardware.com/pc-components/hdds/ai-triggers-hard-drive-shortage-amidst-dram-squee...
83•pabs3•13h ago•61 comments

Laptops with Stickers

https://stickertop.art/main/
590•z303•1w ago•641 comments

Bluetooth 6.2 – more responsive, improves security, USB comms, and testing

https://www.cnx-software.com/2025/11/05/bluetooth-6-2-gets-more-responsive-improves-security-usb-...
216•zdw•6d ago•135 comments

Show HN: Cancer diagnosis makes for an interesting RL environment for LLMs

11•dchu17•2h ago•1 comments

X5.1 solar flare, G4 geomagnetic storm watch

https://www.spaceweatherlive.com/en/news/view/593/20251111-x5-1-solar-flare-g4-geomagnetic-storm-...
380•sva_•21h ago•109 comments