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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Atto – BASIC computer that runs in the browser

102 点作者 James-Livesey将近 4 年前

14 条评论

James-Livesey将近 4 年前
Hi there! I&#x27;m the creator of this programming language. I&#x27;ve designed this language to resemble the style of the BASIC programming languages of the 80s, but with the modern functionality of today (syntax highlighting, rich editing, fast runtime, runs in browser etc.). It&#x27;s a bit of a side project of mine, but ultimately I think it&#x27;s a great way for beginners to learn programming, and for more advanced users to tinker with!<p>You can get help by using the `help` command, and we have many tutorials to get you started with, in addition to a command reference. Whilst our documentation is still work-in-progress, your feedback is most welcome — let me know what you think is good about the documentation, but also what you think could be improved, too.<p>atto is open source, so feel free to check out (and maybe star‽) the GitHub repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;James-Livesey&#x2F;atto" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;James-Livesey&#x2F;atto</a><p>There&#x27;s also an official Twitter account (with a bot coming very soon™ — edit: it should all work now), so be sure to follow it for updates: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;codeurdreams" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;codeurdreams</a>
thom将近 4 年前
I dunno about anybody else, but I still read $ in my head as &#x27;string&#x27;. Anyway, this is nice, not sure I can quite work out saving and loading, but there&#x27;s enough here to be nostalgia- and kid-friendly.<p>I&#x27;ve been very impressed with Gambas if anyone&#x27;s looking for a more mature BASIC environment on Linux or elsewhere:<p><a href="http:&#x2F;&#x2F;gambas.sourceforge.net&#x2F;en&#x2F;main.html" rel="nofollow">http:&#x2F;&#x2F;gambas.sourceforge.net&#x2F;en&#x2F;main.html</a><p>Bindings and UIs enough that it&#x27;d be a while before you really needed to break out into another language.
评论 #27725170 未加载
评论 #27727668 未加载
评论 #27727910 未加载
评论 #27725107 未加载
评论 #27725779 未加载
iddan将近 4 年前
When opening in iOS I get this great thoughtful message:<p>atto can&#x27;t run in this browser :(<p>Unfortunately, your browser doesn&#x27;t support the features that are required to run atto. If you&#x27;re on mobile, try using atto on a desktop computer. Otherwise, please use the latest version of Chrome or Firefox, which are known to work with atto.<p>If you&#x27;re using Safari, then it&#x27;s doubtful that Apple will ever implement the required features due to their constant reluctance to modernise their browser. If you work for Apple&#x2F;are on the WebKit dev team, please implement lookbehind in regex so we can make atto work for everyone!
评论 #27724901 未加载
评论 #27724935 未加载
评论 #27725880 未加载
roywiggins将近 4 年前
Something has gone terribly wrong with the keyboard-handling, half the time it misses a keystroke, or doubles a keystroke, or has very noticeable delay.<p>This is on Firefox. It doesn&#x27;t seem to have those problems on Chrome.
评论 #27725121 未加载
评论 #27726331 未加载
评论 #27724507 未加载
gerdesj将近 4 年前
I love it!<p><pre><code> * It&#x27;s simple, really simple. No fluff. * Help in RH margin still leaves enough room for the main event whilst being available * The main interface is reminiscent of prior BASICs but has been modernised * Is the cursor too cool ... ? * Overall, it looks gorgeous and is a pleasure to use </code></pre> When you pick a Help path, there is a hyperlink &quot;Guide&quot; to return at the top but I think you need a really obvious Help navigation thing with buttons. You click a big coloured button to pick a Help path so a button should return you to the start. To be fair once you get it, the return links are tiny and unobtrusive.<p>If Help could be popped out into a new tab&#x2F;window then that would make multi-screen use work well.<p>BASIC is a bit odd nowadays but it is all starting to come back. The &quot;I&#x27;ve never&quot; guide could do with how to delete a line (type the number and hit enter)<p>Great job.<p>(I still have my original C-64. It now has a USB interface!)
评论 #27728222 未加载
ngcc_hk将近 4 年前
Is it only one feature that is missing in safari ? “ atto can&#x27;t run in this browser :(<p>Unfortunately, your browser doesn&#x27;t support the features that are required to run atto. If you&#x27;re on mobile, try using atto on a desktop computer. Otherwise, please use the latest version of Chrome or Firefox, which are known to work with atto.<p>If you&#x27;re using Safari, then it&#x27;s doubtful that Apple will ever implement the required features due to their constant reluctance to modernise their browser. If you work for Apple&#x2F;are on the WebKit dev team, please implement lookbehind in regex so we can make atto work for everyone!”
评论 #27728239 未加载
评论 #27728246 未加载
euske将近 4 年前
I really wish that you explained how to stop the execution. especially when you mentioned the &quot;20 goto 10&quot; example. Also, if possible, please support Ctrl+C to break too (maybe this isn&#x27;t a good idea because it&#x27;s used for copy-to-clipboard). I expected the editor works in a standard way (e.g. going back to the end of the previous line by hitting the left arrow at the beginning of a line) but it didn&#x27;t, so a quick key binding table would be nice. Thanks for sharing!
评论 #27728919 未加载
评论 #27726497 未加载
ncmncm将近 4 年前
The only things you really need to implement in a browser BASIC are PRINT, GOTO, and FOR, because that is all anybody will type into it to try it out. (Some use GOTO, some FOR.)<p>I don&#x27;t know the name for that sort of completeness.
评论 #27728227 未加载
mattlondon将近 4 年前
Love the font and colours. Took me right back to the old spectrum days. I assume this was deliberate - good work!
评论 #27725136 未加载
adamredwoods将近 4 年前
Cute, but I am thankful for the modern IDEs. Retyping a full line to fix a line is antiquated.
评论 #27728947 未加载
评论 #27726058 未加载
评论 #27726593 未加载
评论 #27730114 未加载
评论 #27729000 未加载
SamBam将近 4 年前
Very nice. Someone reimplement that banana-throwing gorillas game that come with QBasic on Windows!
评论 #27728229 未加载
评论 #27726927 未加载
ngcc_hk将近 4 年前
Safari, chrome and Firefox of the iOS browsers none worked
评论 #27728242 未加载
gus_massa将近 4 年前
It&#x27;s nice that it has instructions, but nobody read the instruction. tl;dr: type &quot;run&quot; to run the program.<p><pre><code> 10 print &quot;Hello, world!&quot; 20 goto 10 run </code></pre> Also: What is the tech stack? Which basic version are you emulating?
评论 #27725159 未加载
评论 #27724968 未加载
评论 #27724666 未加载
networkid将近 4 年前
Works awfully on mobiles
评论 #27728244 未加载