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•11mo ago

Comments

orionblastar•11mo 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•11mo ago
> FreeBASIC is like Microsoft's QuickBASIC.

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

banana_giraffe•11mo ago
It does support "-lang qb" which is designed to specifically limit FreeBASIC to a QuickBASIC compatible dialect.
TonyTrapp•11mo 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•11mo 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•11mo ago
Wasn't QBasic the interpreter as opposed to QuickBasic the compiler?
analog31•11mo 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•11mo ago
https://winworldpc.com/product/quickbasic/45 for a look at QuickBASIC 4.5 abandonware; they also had QuickC and QuickPascal.
pjmlp•11mo ago
No, the answer was Quick Pascal, however Microsoft didn't really cared that much about it.
vunderba•11mo 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•11mo ago
I remember VB-DOS, and fondly too. It was magical. I think I used it even before VB3.
agf•11mo 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•11mo ago
Yet you were even before that, the moment you made programs work at all.
pjmlp•11mo ago
Yes that was the case, by the time Visual Basic 5 came to be, its compiler was based on Visual C++ backend.
DCKP•11mo 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•11mo ago
No, QuickBasic was both an interpreter and a compiler. QBasic was just an interpreter.
klipt•11mo 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•11mo 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•11mo 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•11mo ago
Having to depend on msvbvm60.dll was hardly any different than msvcrt.dll, but try to explain that to most folks.
lproven•11mo 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•11mo ago
QuickBasic produced a DOS .EXE file.

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

lproven•11mo ago
You are correct, and VB 6, the final version, at last included a native-code compiler as well.
westurner•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
Kinda like any Forth. Even PForth has a bundled block editor and a rudimentary help system.
lproven•11mo 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•11mo ago
Old discussion: https://news.ycombinator.com/item?id=38730966 (105 points | Dec 2023 | 70 comments)
andrea76•11mo ago
Is there an ide with form designer like visual basic?
TonyTrapp•11mo 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•11mo ago
Not with FreeBASIC.

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

Libcat99•11mo 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•11mo ago
I really wonder why MS would not supper the whole BASIC legacy that anyway exists even without them.
anta40•11mo 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•11mo ago
Did you check whether these are available on Internet Archive already?
anta40•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
But can it run Nibbles or Gorillas?

SPEAKE(a)R: Turn Speakers to Microphones for Fun and Profit [pdf] (2017)

https://www.usenix.org/system/files/conference/woot17/woot17-paper-guri.pdf
41•Eridanus2•1h ago•18 comments

Game Devs Explain the Tricks Involved with Letting You Pause a Game

https://kotaku.com/video-game-devs-explain-how-pausing-works-and-sometimes-it-gets-weird-2000686339
113•speckx•2d ago•83 comments

NIST scientists create 'any wavelength' lasers

https://www.nist.gov/news-events/news/2026/04/any-color-you-nist-scientists-create-any-wavelength...
312•rbanffy•13h ago•134 comments

What are skiplists good for?

https://antithesis.com/blog/2026/skiptrees/
82•mfiguiere•1d ago•21 comments

Anonymous request-token comparisons from Opus 4.6 and Opus 4.7

https://tokens.billchambers.me/leaderboard
520•anabranch•18h ago•509 comments

College instructor turns to typewriters to curb AI-written work

https://sentinelcolorado.com/uncategorized/a-college-instructor-turns-to-typewriters-to-curb-ai-w...
285•gnabgib•15h ago•276 comments

The electromechanical angle computer inside the B-52 bomber's star tracker

https://www.righto.com/2026/04/B-52-star-tracker-angle-computer.html
336•NelsonMinar•17h ago•91 comments

Updating Gun Rocket through 10 years of Unity Engine

https://jackpritz.com/blog/updating-gun-rocket-through-10-years-of-unity-engine
84•tyleo•2d ago•32 comments

Binary Dependencies: Identifying the Hidden Packages We All Depend On

https://vlad.website/binary-dependencies-identifying-the-hidden-packages-we-all-depend-on/
22•PaulHoule•2d ago•2 comments

Why Japan has such good railways

https://worksinprogress.co/issue/why-japan-has-such-good-railways/
414•RickJWagner•21h ago•381 comments

The world in which IPv6 was a good design

https://apenwarr.ca/log/20170810
56•signa11•7h ago•12 comments

Keep Pushing: We Get 10 More Days to Reform Section 702

https://www.eff.org/deeplinks/2026/04/keep-pushing-we-get-10-more-days-reform-section-702
62•nobody9999•3h ago•4 comments

State of Kdenlive

https://kdenlive.org/news/2026/state-2026/
402•f_r_d•22h ago•123 comments

Modern Common Lisp with FSet

https://fset.common-lisp.dev/Modern-CL/Top_html/index.html
157•larve•3d ago•18 comments

SI Units for Request Rate (2024)

https://entropicthoughts.com/si-units-for-request-rate
71•fanf2•3d ago•47 comments

It's cool to care (2025)

https://alexwlchan.net/2025/cool-to-care/
9•surprisetalk•3d ago•6 comments

Migrating from DigitalOcean to Hetzner

https://isayeter.com/posts/digitalocean-to-hetzner-migration/
784•yusufusta•20h ago•394 comments

Zero-Copy GPU Inference from WebAssembly on Apple Silicon

https://abacusnoir.com/2026/04/18/zero-copy-gpu-inference-from-webassembly-on-apple-silicon/
83•agambrahma•11h ago•31 comments

Optimizing Ruby Path Methods

https://byroot.github.io/ruby/performance/2026/04/18/faster-paths.html
102•weaksauce•13h ago•36 comments

Metatextual Literacy

https://www.jenn.site/metatextual-literacy/
31•dado3212•3d ago•3 comments

Dizzying Spiral Staircase with Single Guardrail Once Led to Top of Eiffel Tower

https://www.smithsonianmag.com/smart-news/a-dizzying-spiral-staircase-with-a-single-guardrail-onc...
26•bookofjoe•2d ago•12 comments

Sumida Aquarium Posts 2026 Penguin Relationship Chart, with Drama and Breakups

https://www.sumida-aquarium.com/special/sokanzu/en/2026/
215•Lwrless•3d ago•11 comments

Thoughts and feelings around Claude Design

https://samhenri.gold/blog/20260418-claude-design/
308•cdrnsf•14h ago•197 comments

William Cecil's Succession Plan

https://www.historytoday.com/archive/history-matters/william-cecils-succession-plan
6•Petiver•4d ago•0 comments

Bypassing the kernel for 56ns cross-language IPC

https://github.com/riyaneel/Tachyon/tree/main/docs/adr
43•riyaneel•2d ago•21 comments

Ask HN: How did you land your first projects as a solo engineer/consultant?

3•modelcroissant•59m ago•0 comments

My first impressions on ROCm and Strix Halo

https://blog.marcoinacio.com/posts/my-first-impressions-rocm-strix-halo/
45•random_•12h ago•35 comments

Show HN: MDV – a Markdown superset for docs, dashboards, and slides with data

https://github.com/drasimwagan/mdv
115•drasim•18h ago•43 comments

Scientists discover “cleaner ants” that groom giant ants in Arizona desert

https://www.sciencedaily.com/releases/2026/04/260414075641.htm
106•t-3•3d ago•38 comments

NASA Shuts Off Instrument on Voyager 1 to Keep Spacecraft Operating

https://science.nasa.gov/blogs/voyager/2026/04/17/nasa-shuts-off-instrument-on-voyager-1-to-keep-...
179•sohkamyung•10h ago•78 comments