TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Serverless QBasic

107 pointsby psuteralmost 7 years ago

10 comments

matthewwiesealmost 7 years ago
Fun article! I&#x27;ve gotta give this a try myself.<p>On a related note (of using BASIC where it doesn&#x27;t belong), I hacked together a method to convert BASIC code to WebAssembly using BaCon[0], a BASIC-to-C converter, and Emscripten to take the resulting C output and generate some wasm.[1] Much like the linked article, this is a fun diversion to entertain the idea of using BASIC where the language authors couldn&#x27;t possibly have imagined it. Perhaps I&#x27;ll get around to actually making a &quot;real&quot; project out of it sometime...<p>[0]: <a href="http:&#x2F;&#x2F;www.basic-converter.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.basic-converter.org&#x2F;</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;matthewwiese&#x2F;basic-to-c-wasm-example" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;matthewwiese&#x2F;basic-to-c-wasm-example</a>
评论 #17539208 未加载
评论 #17539309 未加载
Annataralmost 7 years ago
It’s slow. All those layers of abstraction exact their toll on latency, even on today’s monster systems.<p>Reading the essay, my heart goes out to the author: he missed all those wonderful years in the ‘80’s and the early ‘90’s cracking protections, swapping, coding intros, watching demos and competing on the Commodore64, Commodore Amiga and the ATARI ST. He missed out on all the wonderful memories and all the action. I’m saddened by it. He started out on an obscure platform and then switched immediately to a drab, boring, soulless PC bucket, never to experience the joy of the Scene.<p>For me writing software in BASIC under MS-DOS and later on Windows®️ was an afterthought, since I had already been proficient in MC68000 and MOS 6502 intro coding on Amiga and Commodore64. It was easy to do since I stumbled upon the complete, official reference manual on BASIC 3.0 from Microsoft and I already knew BASIC from learning it on the Commodore PLUS&#x2F;4. The only piece of software I wrote was an ASCII survey points file to DXF converter which I then ported to VisualBASIC 2.0, and that because I also had the full AutoCAD book set which included full DXF format specification. It cut down our work from several hours to a few seconds, but BASIC on the PC had always been an afterthought for me, something I knew but never used much, or something to whip up a quick utility in and run it from a batch file wrapper.
评论 #17542565 未加载
评论 #17539643 未加载
appdragalmost 7 years ago
Thanks for this fun article :) I noticed your serverless function response time is between 2000 to 3000ms, I wonder why and it would be super interesting to have more details about time taken by each step of the process (python proxy &#x2F; dosbox &#x2F; qbasic &#x2F; openwhisk)<p>Point of comparison, nodejs function executed on AWS Lambda: <a href="https:&#x2F;&#x2F;00demo-32387b.appdrag.com&#x2F;api&#x2F;Morse?txt=SOS-Test" rel="nofollow">https:&#x2F;&#x2F;00demo-32387b.appdrag.com&#x2F;api&#x2F;Morse?txt=SOS-Test</a>
评论 #17540394 未加载
susamalmost 7 years ago
&gt; While Microsoft did have a compiler for the language, I couldn’t easily find a version of it online.<p>I have archived the QuickBASIC 4.5 compiler here: <a href="https:&#x2F;&#x2F;github.com&#x2F;susam&#x2F;dosage&#x2F;tree&#x2F;master&#x2F;langs&#x2F;qb45" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;susam&#x2F;dosage&#x2F;tree&#x2F;master&#x2F;langs&#x2F;qb45</a><p>The above archive is obtained from here: <a href="https:&#x2F;&#x2F;www.qbasic.net&#x2F;en&#x2F;qbasic-downloads&#x2F;compiler&#x2F;qbasic-compiler.htm" rel="nofollow">https:&#x2F;&#x2F;www.qbasic.net&#x2F;en&#x2F;qbasic-downloads&#x2F;compiler&#x2F;qbasic-c...</a>
评论 #17539468 未加载
评论 #17540308 未加载
riettaalmost 7 years ago
This is amazing! I have an old copy of GW Basic. Maybe it&#x27;s worth an experiment to do the same with an even older interpreter for the fun of it!
评论 #17542336 未加载
chrstphrhrtalmost 7 years ago
Awesome! Memories of &quot;hacking&quot; that gorillas-throwing-bananas game to mess with the physics, probably around 1995.
le-markalmost 7 years ago
This is very cool. I&#x27;ve often wished I could return to my roots of simply programming, and not being a server admin and dba. Am I the only who wishes we could deploy things like BASIC applications to a runtime in the cloud and be done with all these layers of abstraction and incidental complexity?
评论 #17541586 未加载
knz42almost 7 years ago
The suggestion to &quot;use SYSTEM instead of END&quot; is suspicious.<p>SYSTEM spawns the system shell as a sub-process. If one would EXIT from the spawned command.com&#x2F;cmd.exe, QBASIC would pop up back. I think a user of programs written in this way would find themselves surprised.
评论 #17539575 未加载
评论 #17540473 未加载
评论 #17542694 未加载
sigzeroalmost 7 years ago
Looks like a fun project. :)
mattlalmost 7 years ago
Describing a laptop from 1994 as “a netbook before there really was a net“ —- I don’t get.
评论 #17541676 未加载
评论 #17541539 未加载