frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Goboscript, text-based programming language, compiles to Scratch

https://github.com/aspizu/goboscript
112•aspizu•6h ago
goboscript is a text-based programming language which compiles to Scratch. It allows you to write Scratch projects in text, and compile it into a .sb3 file - which can be opened in the Scratch editor, TurboWarp or be uploaded to the Scratch website.

goboscript allows you to create advanced Scratch projects with ease, you can use any text editor, use a version control system such as git. You can refactor your code using search and replace. Text code can be copy pasted, which allows you to easily reuse code or share it with others. goboscript syntax is concise and easy to read.

goboscript allows you to integrate external tooling and workflows, such as using a script to generate costumes for a text rendering engine. Or loading in images into lists.

goboscript has a powerful macro system - similar to Rust's macro system. This allows you to write macros to generate code.

goboscript is more than just an 1:1 mapping of Scratch blocks to text, it also has additional features like local variables for procedures (custom blocks).

goboscript also performs optimizations, detects problems and unused code.

Comments

arjvik•5h ago
This is beautiful, and brings back so much nostalgia!
arnavsurve•5h ago
This is hilarious yet awe inspiring at the same time. Great work
web3aj•5h ago
This is hilarious because it defeats the purpose of scratch.
sriram_malhar•5h ago
On the contrary. I think it is an excellent bridge between visual and text-oriented programming. It also introduces concepts we take for granted elsewhere: return values from functions, text-based macro substitution, local variables, structs and enums.
bvrmn•3h ago
Tell me more about scratch's purpose, please. I believe it's to teach programming. GoboScript seems a natural extension of already conventional environment to more "real" textual programming tasks.
japanuspus•5h ago
Thank you for making this!

My initial take was to share this with my son who used to built all kinds of things in Scratch, but I know that the lack of simple install instructions will be a deal-breaker for him.

Given that (part of) your audience will be persons like my son graduating out of graphical programming in Scratch, it might be worth spending a little time on non-dev install instructions. Even more so as you can leverage the rust toolchain and just suggest something along `cargo install --git ...` [0], without even publishing as a crate.

Apologies if this comes across as entitled: I just want to communicate that a single README-sentence on top of the work you already put into this would make it significantly more accessible.

[0]: https://doc.rust-lang.org/cargo/commands/cargo-install.html

AlexanderDhoore•5h ago
I love teaching Scratch to kids. Some years ago, I used to do "CoderDojo", which is like a hobby club where kids can learn programming. Some kids go to soccer, others to art academy — and these kids learn programming. Super cool to teach.

However, most kids get stuck after they master Scratch. Especially kids around the age of 8–10. They learn Scratch. It's awesome. They make some advanced games and really get the hang of it.

Then they ask to do something more — some “real programming.” And that's where the hurdles start to pop up. First problem: my kids don't speak English, so most documentation and tutorials are out of reach. Second problem: suddenly they need to learn everything about computers — source files, graphics, networking... This is too big a hurdle for them to take. Third problem: text-based programming. Most of them literally can't type on a keyboard properly. Text is also much less fun than visual programming.

What I've always wondered — and this project reminds me of it — is: can we make the transition smoother? Stay within the Scratch ecosystem, which they know, but start introducing extra concepts step by step, without the big jump.

GoboScript introduces "text-based programming" as a first step, while staying within the Scratch world. I would have liked it more if we could teach the kids a real-world programming language, like Python or JavaScript — because then they’re moving toward "real programming" step by step.

The next step would be: introduce other computer concepts like file systems or networking.

I would love to build this myself. Alas, no time. Maybe one day.

shakna•5h ago
Would something like Blockly [0] or MakeCode [1] fill that gap?

[0] https://developers.google.com/blockly/

[1] https://makecode.microbit.org/

femto•4h ago
It sounds like you want the ability to instantiate a scratch block that contains a text box, which in turn contains the function body for the block? It would then be possible to incrementally write as little or as much as desired in text.

Getting fancy, that block could use a backend interpreter/compiler of choice, so the language could be Squeak, Python, C, an LLM generator, ...

brobdingnagians•4h ago
I know this is probably a bit more advanced, but this suggestion reminds me of Blueprints w/ magic nodes in Unreal Engine. There is a plugin for Magic Nodes (https://forums.unrealengine.com/t/magic-nodes/121220) where you can enter C++ into a blueprint node that integrates into the blueprint system. Similar kind of UI could work well
liotier•2h ago
> It sounds like you want the ability to instantiate a scratch block that contains a text box, which in turn contains the function body for the block ?

That is the escape hatch from all visual development environments. Having seen Talend and W4 in action, I know the end state of the process: a single block with everything in it - I'm barely caricaturing here.

Maybe the specific needs of early learners will keep the system from degenerating too fast but, the moment code goes in that is not visually represented in the environment's visual paradigm, coherence goes downhill fast and one starts longing for properly managed scripts.

yowzadave•40m ago
I’m familiar with the Grasshopper visual scripting environment for the Rhino CAD system, and what you’re describing happens there as well…but I don’t really perceive it as a negative. Users who aren’t comfortable with text programming continue to use the visual method, and users who are tend to migrate their more complicated functions to single blocks. There’s a limit of complexity beyond which the visual programming becomes an impediment to understanding. It’s OK if moving things to a text-based block will make the internal logic of that block inaccessible to some number of users, given that those users would struggle to understand the visual version of the function as well.
geokon•2h ago
This is done rather well in TouchDesigner
gibolt•4h ago
This is how I learned a long time ago with Game Maker. Everything was Gui based, but you could also add code blocks to do more powerful things.

Eventually, most things I built were nothing but code blocks.

paavope•3h ago
I had pretty much the exact same experience with Game Maker too. In retrospect, feels like a very powerful pedagogical tool. Even when I wasn't really trying to "learn coding" but rather I just wanted to make some games, I ended up learning to code

The fact that _most_ things could be done with drag-and-drop, but for some features you had to drop down to scripting, served as a really nice and gentle stepping stone to writing code.

byearthithatius•4h ago
I loved learning and then mentoring at CoderDojos. Incredible meetups where they really let kids learn in their own way with guidance of more experienced coders. Very fun and I never had a bad experience. The ones I went to were at University of Minnesota.
latexr•4h ago
Maybe something like Hedy will work better for you, instead of Scratch.

https://hedy.org/

https://youtube.com/watch?v=ztdxlkmxpIQ

felixr•4h ago
For a textual teaching language check out https://hedy.org It is multilingual (not just English) and introduces syntax gradually
tc4v•3h ago
You use case is exactly what hedy tackles, your experience is really similar to what the author of Hedy tells in conference and interviews.
_glass•3h ago
I teach programming to designers and architects at the local university. We're using Processing quite successfully, because it skips a lot of steps. My daughters are too young and are still doing Scratch (with the great micro:bit). But I think next would be Processing, or Arduino with Micropython. But yes, typing is a problem. My older daughter inputs almost all her text via voice input. At work we're doing a lot of low code for new architectures. I think agentic low code tools for kids would be nice.
chrka•2h ago
https://easylang.online/ide/
PullJosh•2h ago
The solution I built for this is Leopard. It is a Scratch → JavaScript converter. You can take an existing Scratch project and convert it to JavaScript code and then keep working, or use the Leopard library to create a new project from (ahem) scratch, following all the same conventions as a Scratch project.

Check it out! https://leopardjs.com/

sebstefan•2h ago
As a kid who didn't speak english I used the AutoIT language - not related to AutoHotKey

It's a got a fully localized offline documentation embedded in a plug-and-play IDE designed to always compile & run your code with a single F5 press, no configuration needed

The language itself is fully fledged but mostly revolves around things that kids already know.

The tutorial makes you leave the CLI stage by chapter 5, because when kids want to make software they want to make UIs, they've never used CLIs to do fun things before.

It's also centered around automating desktop tasks. Moving the mouse, typing keystrokes, downloading or opening web pages, parsing the source, identifying windows on screen, moving them around, reading pixels, playing sounds...

https://www.autoitscript.com/site/autoit/

notpushkin•1h ago
I loved AutoIT as a kid! And it was also fun playing around with stuff like https://www.perfectautomation.com/ (nice to see that it’s now freeware, and the newer replacement project is completely free / open source!).

But it was about the same time as I started digging around in Delphi 7, then discovered a RAD package pretty much exactly like Delphi, but with PHP instead (wild times), and as I was going down the webmaster route in parallel it was the thing I spent most of my days in. (That, and making bootleg Windows XP builds just for fun, of course.)

as1mov•58m ago
Flash circa 4-7 era had a really nice scripting environment for ActionScript where you could select instructions via a drop-down and edit fields for each instruction (with the fields being of dynamic input types). I've never seen something like these days, but for a 12 year old me it was really fun and simple to use. It also came with an integrated offline manual.

Maybe you could try something like that?

shadowgovt•31m ago
I still think Scratch has some brilliant ideas that aren't quite captured into traditional text-based programming languages. The fact that the types are rigid out to the editor (i.e. the editor will let you have a partially-formed program but not an invalid program because it does static type checking per-edit and rejects edits that don't pass) is quite a powerful feature tucked into a toy / educational language.
ijustlovemath•12m ago
have you tried showing them LabVIEW? it ticks tons of boxes:

- graphical

- more advanced (inherently parallel, more useful async data structures like events and queues)

- interfaces with tons of cool hardware

- built in network programming

- pretty powerful debugging

- free with community edition

Once they have the basics down, you could transition them out to a text based language slowly, even using the c/Matlab based text nodes to start

sriram_malhar•5h ago
I love it! It has features that I'd have liked Scratch to have, like return values from functions, local vars, structs etc.
ferriswil•4h ago
Looks fantastic! Now it simply needs a non-Scratch runtime and a Scratch-like frontend, and we'll finally be able to teach bootstrapping to the 5-10 year old demographic.
nis251413•3h ago
Next step: create a visual programming language that compiles to goboscript.
falcor84•1h ago
This is great! I'd also like to mention pytch.org which takes a slightly different approach to the same problem, essentially recreating most of Scratch within python, and teaching learners how they'd go about writing code to do the same sort of stuff they would have done with Scratch, and then to extend it with python stuff that isn't possible in Scratch.

Thinking of it now, I wonder if the two approaches could be combined?

Show HN: Goboscript, text-based programming language, compiles to Scratch

https://github.com/aspizu/goboscript
112•aspizu•6h ago•31 comments

Show HN: Find startup founders near you

https://www.foundersaround.com/
2•leonagano•3m ago•0 comments

Show HN: Sshsync – CLI tool to run shell commands across multiple remote servers

https://github.com/Blackmamoth/sshsync
25•blackmamoth•16h ago•32 comments

Show HN: I modeled the Voynich Manuscript with SBERT to test for structure

https://github.com/brianmg/voynich-nlp-analysis
346•brig90•19h ago•104 comments

Show HN: Job board aggregator for best paying remote SWE jobs in the U.S.

https://www.remoteswe.fyi
84•xitang•11h ago•58 comments

Show HN: I reinvented PHP in TypeScript (demo)

https://github.com/vseplet/morph
12•vseplet•3d ago•8 comments

Show HN: A platform to find tech conferences, discounts, and ticket giveaways

https://www.tech.tickets/
85•danthebaker•2d ago•21 comments

Show HN: Berlin Swapfest #2 – Electronics flea market (July 20th, 2025)

https://www.swapfest.berlin/?number=2
4•mirshko•1h ago•0 comments

Show HN: Vaev – A browser engine built from scratch (It renders google.com)

https://github.com/skift-org/vaev
205•monax•18h ago•120 comments

Show HN: Python Simulator of David Deutsch’s “Constructor Theory of Time”

https://github.com/gvelesandro/constructor-theory-simulator
76•SandroG•15h ago•11 comments

Show HN: Hardtime.nvim – break bad habits and master Vim motions

https://github.com/m4xshen/hardtime.nvim
191•m4xshen•23h ago•75 comments

Show HN: Buckaroo – Data table UI for Notebooks

https://github.com/paddymul/buckaroo
94•paddy_m•20h ago•8 comments

Show HN: A web browser agent in your Chrome side panel

https://github.com/parsaghaffari/browserbee
140•parsabg•1d ago•59 comments

Show HN: Chat with 19 years of HN

https://app.camelai.com/log-in?next=/hn/
134•vercantez•1d ago•103 comments

Show HN: Model2vec-Rs – Fast Static Text Embeddings in Rust

https://github.com/MinishLab/model2vec-rs
57•Tananon•21h ago•13 comments

Show HN: Turn any workflow diagram into compilable, running and stateful code

https://workflows.diagrid.io/
98•yaronsc•4d ago•31 comments

Show HN: A Wolfenstein3D-like raycaster made in Windows Batch

https://github.com/nTh0rn/batch-raycaster
12•nthornton•14h ago•3 comments

Show HN: Stack Error – ergonomic error handling for Rust

https://github.com/gmcgoldr/stackerror
25•garrinm•17h ago•11 comments

Show HN: Racketmeter – Measure Badminton String Tension Using Sound Frequency

https://www.racketmeter.com/
38•zhacker•18h ago•12 comments

Show HN: Datetime.app – open-source alternative to time.is

https://datetime.app
2•Airyisland•8h ago•3 comments

Show HN: I built a knife steel comparison tool

https://new.knife.day/blog/knife-steel-comparisons/all
139•p-s-v•1d ago•83 comments

Show HN: Grace – Orchestrate Hybrid Mainframe and Cloud Workflows with YAML

https://graceinfra.org
2•arnavsurve•10h ago•0 comments

Show HN: Merliot – plugging physical devices into LLMs

https://github.com/merliot/hub
79•sfeldma•2d ago•23 comments

Show HN: Pixelagent – Build your Stateful Agent Framework in 200 lines of code

https://github.com/pixeltable/pixelagent
28•pierrebrunelle•3d ago•14 comments

Show HN: Commander – AI-Powered Browser Automation

https://www.commander-ai.com/
5•kadarla•13h ago•0 comments

Show HN: AI web scraper (no selectors, $2/1k pages, built by 1 dev)

https://web.instantapi.ai/
2•zeeb0t•13h ago•0 comments

Show HN: Muscle-Mem, a behavior cache for AI agents

https://github.com/pig-dot-dev/muscle-mem
223•edunteman•4d ago•51 comments

Show HN: Visual flow-based programming for Erlang, inspired by Node-RED

https://github.com/gorenje/erlang-red
243•Towaway69•2d ago•101 comments

Show HN: Solidis – Tiny TS Redis client, no deps, for serverless

https://github.com/vcms-io/solidis
69•jayl-e-e•2d ago•8 comments

Show HN: Kameo – a toolkit for creating interactive web forms in rich text

https://github.com/kameojs/kameo
2•nistuley•14h ago•0 comments