TE
테크에코
홈24시간 인기최신베스트질문쇼채용
GitHubTwitter
홈

테크에코

Next.js로 구축된 기술 뉴스 플랫폼으로 글로벌 기술 뉴스와 토론을 제공합니다.

GitHubTwitter

홈

홈최신베스트질문쇼채용

리소스

HackerNews API원본 HackerNewsNext.js

© 2025 테크에코. 모든 권리 보유.

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

161 포인트작성자: aspizu6일 전
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.<p>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.<p>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.<p>goboscript has a powerful macro system - similar to Rust&#x27;s macro system. This allows you to write macros to generate code.<p>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).<p>goboscript also performs optimizations, detects problems and unused code.

14 comments

AlexanderDhoore6일 전
I love teaching Scratch to kids. Some years ago, I used to do &quot;CoderDojo&quot;, 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.<p>However, most kids get stuck after they master Scratch. Especially kids around the age of 8–10. They learn Scratch. It&#x27;s awesome. They make some advanced games and really get the hang of it.<p>Then they ask to do something more — some “real programming.” And that&#x27;s where the hurdles start to pop up. First problem: my kids don&#x27;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&#x27;t type on a keyboard properly. Text is also much less fun than visual programming.<p>What I&#x27;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.<p>GoboScript introduces &quot;text-based programming&quot; 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 &quot;real programming&quot; step by step.<p>The next step would be: introduce other computer concepts like file systems or networking.<p>I would love to build this myself. Alas, no time. Maybe one day.
评论 #44028010 未加载
评论 #44029577 未加载
评论 #44027436 未加载
评论 #44027245 未加载
评论 #44027185 未加载
评论 #44028653 未加载
评论 #44027086 未加载
评论 #44027459 未加载
评论 #44028005 未加载
评论 #44028459 未加载
评论 #44027270 未加载
评论 #44027786 未加载
评论 #44027603 未加载
评论 #44027878 未加载
评论 #44028808 未加载
评论 #44027866 未加载
japanuspus6일 전
Thank you for making this!<p>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.<p>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.<p>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.<p>[0]: <a href="https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;cargo&#x2F;commands&#x2F;cargo-install.html" rel="nofollow">https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;cargo&#x2F;commands&#x2F;cargo-install.html</a>
评论 #44029058 未加载
varun_ch6일 전
I got into coding through Scratch, and I&#x27;ve been involved with Scratch for over a decade now (I&#x27;m 18). I think an often overlooked aspect of Scratch is that it&#x27;s more than just a drag and drop coding editor; there&#x27;s an entire community site to share projects on too. And the site is super &#x27;hackable&#x27;, the APIs are fairly open and all of the client side code is open source too. There&#x27;s a whole ecosystem of other kids building stuff for&#x2F;around Scratch (like the Scratch Addons browser extension [0]), as well as projects like this.<p>To be honest, I learnt more from hacking Scratch than using it as intended. I thought this was just a &#x27;me thing&#x27;, but last summer I was an intern on the Scratch Foundation&#x27;s engineering team, and my mentor explained that they&#x27;re totally aware of this effect, and that they take it into account when designing the platform. I like Scratch.<p>[0] <a href="https:&#x2F;&#x2F;scratchaddons.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;scratchaddons.com&#x2F;</a>
falcor846일 전
This is great! I&#x27;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&#x27;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&#x27;t possible in Scratch.<p>Thinking of it now, I wonder if the two approaches could be combined?
nis2514136일 전
Next step: create a visual programming language that compiles to goboscript.
评论 #44029128 未加载
TrnsltLife5일 전
This is cool. Also check out Pico-8. I just learned about it and started showing it to my kids, ages 8 - 13. They all liked it and engaged with it to varying degrees.<p>It has a code editor with 8 tabs for organization and uses Lua with some extra functions for the game loop and sprites.<p>It has a built in sprite and map editor, plus sfx and music editor.<p>It reminds me of the integration and experimentation I had with TI Logo and Amiga Basic.<p>There is a free education edition available online.
ninetyninenine6일 전
Why is text preferable to scratch? What is fundamentally wrong with scratch to make this transition desirable?
评论 #44030617 未加载
评论 #44030038 未加载
评论 #44030034 未加载
ferriswil6일 전
Looks fantastic! Now it simply needs a non-Scratch runtime and a Scratch-like frontend, and we&#x27;ll finally be able to teach bootstrapping to the 5-10 year old demographic.
评论 #44029150 未加载
arnavsurve6일 전
This is hilarious yet awe inspiring at the same time. Great work
arjvik6일 전
This is beautiful, and brings back so much nostalgia!
jony12664일 전
where was this when i was making scratch games in elementary school?? would&#x27;ve been exponentially more efficient to write text instead of dragging blocks around.
sriram_malhar6일 전
I love it! It has features that I&#x27;d have liked Scratch to have, like return values from functions, local vars, structs etc.
_vicky_6일 전
In Not in<p>These two are enough to build a programming language
web3aj6일 전
This is hilarious because it defeats the purpose of scratch.
评论 #44027136 未加载
评论 #44027673 未加载