Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
James-Livesey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
James-Livesey
5y ago
You'll find it's very similar in atto! Use the Up/Down arrow keys to go to previous lines, and you'll be able to edit those lines directly. The currently-edited line will be saved when you go to a different line. The dis
62.
▲
by
James-Livesey
5y ago
I agree, which is why I have implemented some useful editing features that might make it easier to enter your programs: - Syntax highlighting, to make code easier to read - Typing `edit` followed by the line number, and then pressing Enter,
63.
▲
by
James-Livesey
5y ago
Thanks for your feedback! It seems I did miss some instructions about how to break the program on a specific help page in my guide, but I've now mentioned it. Considering that atto is designed to accommodate beginners, I didn't wa
64.
▲
by
James-Livesey
5y ago
Agreed, however, programming on mobile isn't the most optimal experience in general. atto was mainly built for the desktop, so I'd suggest you try it out on a computer instead of a phone!
65.
▲
by
James-Livesey
5y ago
Unfortunately, all iOS browsers must be WebKit-based due to the limitations imposed on App Store apps. The problem is, WebKit doesn't support regex lookbehind which is an extremely useful feature for tokenising atto programs. Hopefully
66.
▲
by
James-Livesey
5y ago
It's mainly regex lookbehind, but there can also be many other side effects of using Safari over Chrome or Firefox (such as page zooming issues and other rendering stuff, and their disappointing lack of good support for PWAs). The rege
67.
▲
by
James-Livesey
5y ago
I'd love to see that! There's plenty of graphics commands in atto, so I'm sure it's possible to recreate.
68.
▲
by
James-Livesey
5y ago
That's very true; they're definitely the essentials to any BASIC interpreter! `if` is also very useful as well to do conditional jumps, and so is `input`. With those commands, the possibilities are endless!
69.
▲
by
James-Livesey
5y ago
> When you pick a Help path, there is a hyperlink "Guide" 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 ret
70.
▲
by
James-Livesey
5y ago
The spaces issue should now be fixed (see GH PR #7)! If you do a hard reload, it should be much easier to edit now. `if`/`end` _should_ work; try out this demo to see it in action: https://jamesl.me/atto/?code=10+n
71.
▲
by
James-Livesey
5y ago
Should all be fixed now! See https://github.com/James-Livesey/atto/pull/7 for more details. In the end, using `input` still wasn't sufficient to fix the lag, so instead I 'bodged' the delay bef
72.
▲
by
James-Livesey
5y ago
Yeah, hopefully am going to get it working again today, so fingers crossed there'll be more fun along the way!
73.
▲
by
James-Livesey
5y ago
Nice language! Love the syntax too; quite similar to atto, but with a few unique features which really does make it easy to use!
74.
▲
by
James-Livesey
5y ago
Hi there! I'm the creator of this programming language. I'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
75.
▲
by
James-Livesey
5y ago
Glad to hear that despite the weird behaviour with Firefox, you enjoy the nostalgia! If it helps, if you want to write really long programs, it's possible to create .atto files in a text editor and then import them into atto by pressin
76.
▲
by
James-Livesey
5y ago
Yup, you've pretty much summed up Safari really well there. I've come across sooo many annoyances when supporting Safari that I do wonder how the developers of the Apple website etc. don't get annoyed at the lack of useful su
77.
▲
by
James-Livesey
5y ago
It's all there! Try the `import` and `export` commands. Ctrl+O and Ctrl+S work as well, provided that the files end with .atto (unless you set your file open dialog to search for all files). `share` also lets you distribute your code v
78.
▲
by
James-Livesey
5y ago
Try using Ctrl+S and Ctrl+O for file save/load. There's `import` and `export` commands as well to do this, and there's even a `share` command to share your code via a URL! eg. https://jamesl.me/atto/?code
79.
▲
by
James-Livesey
5y ago
I wanted it to be as lightweight as possible, with only a few support libraries to show the Markdown content for docs etc. It's all done with vanilla HTML/CSS/JS and I put the new JavaScript modules functionality to good use
80.
▲
by
James-Livesey
5y ago
You should find it works! Once you type run, the caret will disappear as the program does nothing infinitely. Press Esc to break the program to carry on! But it should be 20 goto 10 if you want to print the same text again and again.
81.
▲
by
James-Livesey
5y ago
Thank you! That was exactly what I was opting for — I was looking for a good terminal font for this project which is nice and rounded, and I came across Brass Mono, which seems to fit the job really nicely. Though it unfortunately doesn
82.
▲
by
James-Livesey
5y ago
Interesting! I've just loaded it up on my latest Firefox and I see what you mean -- there's quite a lot of input lag going on there. I mainly develop in Chrome but I've tested this in Firefox before and it was alright. I bett
83.
▲
Show HN: Atto – BASIC computer that runs in the browser
(jamesl.me)
102 points
by
James-Livesey
5y ago
|
71 comments