TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Serverless QBasic

107 点作者 psuter将近 7 年前

10 条评论

matthewwiese将近 7 年前
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 未加载
Annatar将近 7 年前
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 未加载
appdrag将近 7 年前
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 未加载
susam将近 7 年前
&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 未加载
rietta将近 7 年前
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 未加载
chrstphrhrt将近 7 年前
Awesome! Memories of &quot;hacking&quot; that gorillas-throwing-bananas game to mess with the physics, probably around 1995.
le-mark将近 7 年前
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 未加载
knz42将近 7 年前
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 未加载
sigzero将近 7 年前
Looks like a fun project. :)
mattl将近 7 年前
Describing a laptop from 1994 as “a netbook before there really was a net“ —- I don’t get.
评论 #17541676 未加载
评论 #17541539 未加载