# Computer Science

**URL:** https://forum.snap.berkeley.edu/c/compsci/9.md

[Latest](https://forum.snap.berkeley.edu/latest.md) · [Categories](https://forum.snap.berkeley.edu/categories.md) · [Tags](https://forum.snap.berkeley.edu/tags.md)

---

## [About the Computer Science category](https://forum.snap.berkeley.edu/t/about-the-computer-science-category/24)

<div class="topic-metadata">

**Author:** [@tjvr](https://forum.snap.berkeley.edu/u/tjvr)\
**Replies:** 0\
**Last updated:** [August 16, 2016, 11:16am UTC](https://forum.snap.berkeley.edu/t/about-the-computer-science-category/24 "2016-08-16T11:16:54Z")

</div>

Discuss computer science more generally. Share exciting algorithms, formulas, and puzzles.

---

## [Coming soon: MicroBlocks 3.0 pilot (using morphic!)](https://forum.snap.berkeley.edu/t/coming-soon-microblocks-3-0-pilot-using-morphic/22733)

<div class="topic-metadata">

**Author:** [@petermathijssen](https://forum.snap.berkeley.edu/u/petermathijssen)\
**Replies:** 14\
**Last updated:** [October 28, 2026, 1:05pm UTC](https://forum.snap.berkeley.edu/t/coming-soon-microblocks-3-0-pilot-using-morphic/22733 "2026-10-28T13:05:43Z")

</div>

Coming Soon: MicroBlocks 3.0 Pilot Release For the past six months, the MicroBlocks team has been working on a major rewrite of the MicroBlocks editor – and it is almost ready to be released as a pilot release! For a sn…

---

## [Self studying computer science like a top-tier college student](https://forum.snap.berkeley.edu/t/self-studying-computer-science-like-a-top-tier-college-student/22607)

<div class="topic-metadata">

**Author:** [@radioactivebinary](https://forum.snap.berkeley.edu/u/radioactivebinary)\
**Replies:** 5\
**Last updated:** [October 23, 2026, 2:50pm UTC](https://forum.snap.berkeley.edu/t/self-studying-computer-science-like-a-top-tier-college-student/22607 "2026-10-23T14:50:29Z")

</div>

Hello everybody, this is my first post here. I’m sorry if anyone has made something similar here. I’m doing a undergrad in Software Engineering in a University here. However it’s pretty crap, there aren’t important topi…

---

## [Origin story of bh and Jens?](https://forum.snap.berkeley.edu/t/origin-story-of-bh-and-jens/22570)

<div class="topic-metadata">

**Author:** [@pppdud](https://forum.snap.berkeley.edu/u/pppdud)\
**Replies:** 39\
**Last updated:** [October 15, 2026, 12:02pm UTC](https://forum.snap.berkeley.edu/t/origin-story-of-bh-and-jens/22570 "2026-10-15T12:02:28Z")

</div>

@bh and @jens seem to be fairly good friends and from my understanding, they work together on Snap!, but how did they meet? Was there a time when Snap! (or perhaps BYOB) was being built by one but not the other? (@bh If…

---

## [openKernel: A kernel from the future](https://forum.snap.berkeley.edu/t/openkernel-a-kernel-from-the-future/22343)

<div class="topic-metadata">

**Author:** [@openkodysoftware](https://forum.snap.berkeley.edu/u/openkodysoftware)\
**Replies:** 9\
**Last updated:** [August 25, 2026, 3:13pm UTC](https://forum.snap.berkeley.edu/t/openkernel-a-kernel-from-the-future/22343 "2026-08-25T15:13:55Z")

</div>

Hello everyone. I am posting this because I am designing a kernel, that, should emulate in Snap! 12.1-dev and higher. Features: Talk Translator Module (or TTM) Emulated TTY Uses kernel modules

---

## [OEIS Streams (get an idea of what streams are)](https://forum.snap.berkeley.edu/t/oeis-streams-get-an-idea-of-what-streams-are/22263)

<div class="topic-metadata">

**Author:** [@mobility212](https://forum.snap.berkeley.edu/u/mobility212)\
**Replies:** 83\
**Last updated:** [August 22, 2026, 11:58am UTC](https://forum.snap.berkeley.edu/t/oeis-streams-get-an-idea-of-what-streams-are/22263 "2026-08-22T11:58:05Z")

</div>

Mere lists and functions are boring! Instead, I bring up something the vast majority of the community (my intuition) doesn't pay much attention to: streams! I find streams to be a splendid data type, and it has only so m…

---

## [Problems in a far away place](https://forum.snap.berkeley.edu/t/problems-in-a-far-away-place/21437)

<div class="topic-metadata">

**Author:** [@cymplecy](https://forum.snap.berkeley.edu/u/cymplecy)\
**Replies:** 1\
**Last updated:** [February 24, 2026, 4:01am UTC](https://forum.snap.berkeley.edu/t/problems-in-a-far-away-place/21437 "2026-02-24T04:01:08Z")

</div>

Not having a good time with debugging on MicroBlocks at the moment :rofl:

---

## [Collatz Conjecture Replicated in Snap!](https://forum.snap.berkeley.edu/t/collatz-conjecture-replicated-in-snap/9470)

<div class="topic-metadata">

**Author:** [@348663451y](https://forum.snap.berkeley.edu/u/348663451y)\
**Replies:** 21\
**Last updated:** [December 21, 2025, 10:05am UTC](https://forum.snap.berkeley.edu/t/collatz-conjecture-replicated-in-snap/9470 "2025-12-21T10:05:55Z")

</div>

I was watching a video about the Collatz Conjecture on YouTube: https://www.youtube.com/watch?v=094y1Z2wpJg I found it pretty interesting and wanted to replicate it into Snap!. I would have done this in Python or some o…

---

## [How to make a proper “if, else if” statement in Swift?](https://forum.snap.berkeley.edu/t/how-to-make-a-proper-if-else-if-statement-in-swift/12193)

<div class="topic-metadata">

**Author:** [@earthrulerr](https://forum.snap.berkeley.edu/u/earthrulerr)\
**Replies:** 7\
**Last updated:** [November 20, 2025, 1:27am UTC](https://forum.snap.berkeley.edu/t/how-to-make-a-proper-if-else-if-statement-in-swift/12193 "2025-11-20T01:27:30Z")

</div>

What I’ve been doing (since I don’t know the proper way): if condition { (code) } if condition { (code) } How do you make an if-else statement? What I’ve tried: if condition { (code) } else if conditio…

---

## [How to use a Mistral AI API key?](https://forum.snap.berkeley.edu/t/how-to-use-a-mistral-ai-api-key/19905)

<div class="topic-metadata">

**Author:** [@connochaetes](https://forum.snap.berkeley.edu/u/connochaetes)\
**Replies:** 0\
**Last updated:** [September 15, 2025, 5:14pm UTC](https://forum.snap.berkeley.edu/t/how-to-use-a-mistral-ai-api-key/19905 "2025-09-15T17:14:07Z")

</div>

Hello, I am wondering how to use a Mistral AI API key with “Snap!”. I am aware that there is this project: A guide to AI blocks in Snap! But I can’t find a Mistral support. Feel free to ask for further details. Any help…

---

## [Animated Helicopter & Game Controller](https://forum.snap.berkeley.edu/t/animated-helicopter-game-controller/19533)

<div class="topic-metadata">

**Author:** [@glenbull](https://forum.snap.berkeley.edu/u/glenbull)\
**Replies:** 12\
**Last updated:** [September 15, 2025, 2:38pm UTC](https://forum.snap.berkeley.edu/t/animated-helicopter-game-controller/19533 "2025-09-15T14:38:17Z")

</div>

Here's a one-minute video illustrating use of Snap! in combination with MicroBlocks to create a game controller: Here's the Snap! program: Here's the corresponding MicroBlocks code (attached): MakerPor…

---

## [Broadcast after choosing a color (MicroBlocks)](https://forum.snap.berkeley.edu/t/broadcast-after-choosing-a-color-microblocks/19631)

<div class="topic-metadata">

**Author:** [@petermathijssen](https://forum.snap.berkeley.edu/u/petermathijssen)\
**Replies:** 8\
**Last updated:** [June 30, 2025, 12:47am UTC](https://forum.snap.berkeley.edu/t/broadcast-after-choosing-a-color-microblocks/19631 "2025-06-30T00:47:19Z")

</div>

I made a block that will send the 25 values of all the color choosers to a micro:STEAMakers board. The board will then display the colors. Every time I click the block all 25 values are send. Would it be possible…

---

## [USB Camera?](https://forum.snap.berkeley.edu/t/usb-camera/19591)

<div class="topic-metadata">

**Author:** [@glenbull](https://forum.snap.berkeley.edu/u/glenbull)\
**Replies:** 3\
**Last updated:** [June 13, 2025, 7:11pm UTC](https://forum.snap.berkeley.edu/t/usb-camera/19591 "2025-06-13T19:11:51Z")

</div>

We would like to be able to control the white balance of a webcam directly from Snap! We're currently using the Windows Camera App to do this. We would like to control it directly from Snap! Can anyone recommend a USB w…

---

## [Left-handed Microwriter Keyboard](https://forum.snap.berkeley.edu/t/left-handed-microwriter-keyboard/19147)

<div class="topic-metadata">

**Author:** [@cymplecy](https://forum.snap.berkeley.edu/u/cymplecy)\
**Replies:** 36\
**Last updated:** [March 24, 2025, 7:13am UTC](https://forum.snap.berkeley.edu/t/left-handed-microwriter-keyboard/19147 "2025-03-24T07:13:48Z")

</div>

I've made a Microwriter kbd so I can keep one hand on my mouse and one hand on it. I'm still quite slow but getting quicker the more I use it :slight\_smile: Programmed it up on a micro-controller using MicroBlocks …

---

## [SAM2965 Music Synthesizer](https://forum.snap.berkeley.edu/t/sam2965-music-synthesizer/18014)

<div class="topic-metadata">

**Author:** [@glenbull](https://forum.snap.berkeley.edu/u/glenbull)\
**Replies:** 12\
**Last updated:** [October 23, 2024, 6:00pm UTC](https://forum.snap.berkeley.edu/t/sam2965-music-synthesizer/18014 "2024-10-23T18:00:05Z")

</div>

This strand is for discussion of the SAM2695 music synthesizer chip. John Maloney has developed a MicroBlocks library that can be used with this synthesizer: The music synthesizer chip is currently about $15 and is re…

---

## [Snap! and MicroBlocks using BLE](https://forum.snap.berkeley.edu/t/snap-and-microblocks-using-ble/16706)

<div class="topic-metadata">

**Author:** [@petermathijssen](https://forum.snap.berkeley.edu/u/petermathijssen)\
**Replies:** 11\
**Last updated:** [October 18, 2024, 7:36pm UTC](https://forum.snap.berkeley.edu/t/snap-and-microblocks-using-ble/16706 "2024-10-18T19:36:18Z")

</div>

A test of the upcoming Snap! blocks making it possible to work with microcontrollers programmed with MicroBlocks.

---

## [Logic programming library development log](https://forum.snap.berkeley.edu/t/logic-programming-library-development-log/13828)

<div class="topic-metadata">

**Author:** [@qw23](https://forum.snap.berkeley.edu/u/qw23)\
**Replies:** 184\
**Last updated:** [October 11, 2024, 8:30pm UTC](https://forum.snap.berkeley.edu/t/logic-programming-library-development-log/13828 "2024-10-11T20:30:17Z")

</div>

From a different topic Sounds interesting. Any specific ideas yet? Would it support optimization through integer linear programming?

---

## [Is there a projection matrix for the equirectangular projection](https://forum.snap.berkeley.edu/t/is-there-a-projection-matrix-for-the-equirectangular-projection/17949)

<div class="topic-metadata">

**Author:** [@warpedwartwars](https://forum.snap.berkeley.edu/u/warpedwartwars)\
**Replies:** 48\
**Last updated:** [October 7, 2024, 5:02pm UTC](https://forum.snap.berkeley.edu/t/is-there-a-projection-matrix-for-the-equirectangular-projection/17949 "2024-10-07T17:02:55Z")

</div>

so i was doing some stuff (modding minecraft rd-132211) and i decided i wanted to use a projection matrix for equirectangular projection. only problem is my f(x,y,z) function is $$P\_x = atan({y\\over x})\\\\P\_y = atan({z\\o…

---

## [What does "with continuation" mean?](https://forum.snap.berkeley.edu/t/what-does-with-continuation-mean/1518)

<div class="topic-metadata">

**Author:** [@keheck](https://forum.snap.berkeley.edu/u/keheck)\
**Replies:** 18\
**Last updated:** [September 13, 2024, 4:04am UTC](https://forum.snap.berkeley.edu/t/what-does-with-continuation-mean/1518 "2024-09-13T04:04:58Z")

</div>

The help for the run and call with continuation blocks just say that it's too complicated. I want to know what a continuation is. Reading the manual left me still a little confused as to what continuations are.

---

## [Lox in Python](https://forum.snap.berkeley.edu/t/lox-in-python/17750)

<div class="topic-metadata">

**Author:** [@warpedwartwars](https://forum.snap.berkeley.edu/u/warpedwartwars)\
**Replies:** 0\
**Last updated:** [August 23, 2024, 7:44pm UTC](https://forum.snap.berkeley.edu/t/lox-in-python/17750 "2024-08-23T19:44:45Z")

</div>

i was bored and without internet so i decided to port clox (from https://craftinginterpreters.com) to python (the repo is super unpolished, e.g., i haven't even touched the readme file so that still talks about jlox and …

---

## [It's a small world (and debate about indexing arrays for some reason)](https://forum.snap.berkeley.edu/t/its-a-small-world-and-debate-about-indexing-arrays-for-some-reason/17332)

<div class="topic-metadata">

**Author:** [@sir\_kitten2](https://forum.snap.berkeley.edu/u/sir_kitten2)\
**Replies:** 22\
**Last updated:** [August 18, 2024, 1:18am UTC](https://forum.snap.berkeley.edu/t/its-a-small-world-and-debate-about-indexing-arrays-for-some-reason/17332 "2024-08-18T01:18:54Z")

</div>

Well, I was reading this guide to the FAIL assembly language, and found this: Acknowledgements The original version of FAIL and the original manual (SAILON-26) were written by Phil Petit in 1976. Various additions and…

---

## [Beetle Blocks](https://forum.snap.berkeley.edu/t/beetle-blocks/17282)

<div class="topic-metadata">

**Author:** [@glenbull](https://forum.snap.berkeley.edu/u/glenbull)\
**Replies:** 6\
**Last updated:** [August 14, 2024, 5:53am UTC](https://forum.snap.berkeley.edu/t/beetle-blocks/17282 "2024-08-14T05:53:49Z")

</div>

We were able to used the new BeetleBlocks library in Snap 10 to create and 3D-print a cylinder using PLA (shown in black in the image): Is there a parameter that can be used to control the density of infill material? …

---

## [Sorting images](https://forum.snap.berkeley.edu/t/sorting-images/17233)

<div class="topic-metadata">

**Author:** [@mehone](https://forum.snap.berkeley.edu/u/mehone)\
**Replies:** 1\
**Last updated:** [July 29, 2024, 4:57pm UTC](https://forum.snap.berkeley.edu/t/sorting-images/17233 "2024-07-29T16:57:52Z")

</div>

i watched a video a long time ago about sorting images, i didnt watch all of it but in theory we could make it possible by constantly checking if its equal to the correct image, if not, we do it again, this only works w…

---

## [Micro:bit v2 bluetooth (ExCITE)](https://forum.snap.berkeley.edu/t/micro-bit-v2-bluetooth-excite/17218)

<div class="topic-metadata">

**Author:** [@connochaetes](https://forum.snap.berkeley.edu/u/connochaetes)\
**Replies:** 15\
**Last updated:** [July 27, 2024, 5:44am UTC](https://forum.snap.berkeley.edu/t/micro-bit-v2-bluetooth-excite/17218 "2024-07-27T05:44:27Z")

</div>

Hi, I am successfully using the ExCITE software with a micro:bit v1.3B connected via bluetooth: The institution, I am working at, purchased many micro:bits v2 for the students. It would be helpful, if this model woul…

---

## [Snap! to MicroBlocks using BLE](https://forum.snap.berkeley.edu/t/snap-to-microblocks-using-ble/17024)

<div class="topic-metadata">

**Author:** [@cymplecy](https://forum.snap.berkeley.edu/u/cymplecy)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 4:00pm UTC](https://forum.snap.berkeley.edu/t/snap-to-microblocks-using-ble/17024 "2024-06-13T16:00:39Z")

</div>

Snap! dev version using MicroBlocks library to send broadcasts from Snap! to and ESP32 microcontroller running MicroBlocks over BLE (Bluetooth Low Energy)

---

## [Another Experiment](https://forum.snap.berkeley.edu/t/another-experiment/16666)

<div class="topic-metadata">

**Author:** [@callietastrophic](https://forum.snap.berkeley.edu/u/callietastrophic)\
**Replies:** 4\
**Last updated:** [May 24, 2024, 4:18am UTC](https://forum.snap.berkeley.edu/t/another-experiment/16666 "2024-05-24T04:18:22Z")

</div>

Alright, after trying it a couple times, I've decided that the first experiment thread was pretty much a failure, but that's ok. So, as I said at the end of that thread, I will try again, but instead of trying to force …

---

## [Some Questions About Older Computers](https://forum.snap.berkeley.edu/t/some-questions-about-older-computers/16680)

<div class="topic-metadata">

**Author:** [@bluebaritone21](https://forum.snap.berkeley.edu/u/bluebaritone21)\
**Replies:** 20\
**Last updated:** [May 9, 2024, 9:25pm UTC](https://forum.snap.berkeley.edu/t/some-questions-about-older-computers/16680 "2024-05-09T21:25:10Z")

</div>

Hello. I have some questions about older computers, and I know that Brian has some experience with them. (I apologize if this isn't the right place to ask, but Stack Exchange is blocked for me.) Why did computers used…

---

## [Image warping](https://forum.snap.berkeley.edu/t/image-warping/16690)

<div class="topic-metadata">

**Author:** [@avi\_shor](https://forum.snap.berkeley.edu/u/avi_shor)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 8:34pm UTC](https://forum.snap.berkeley.edu/t/image-warping/16690 "2024-05-07T20:34:20Z")

</div>

In theory can we make an equation that when given 4 points can create a matrix that warps the image to the plane created by the 4 points

---

## [Digital Phonograph Stylus](https://forum.snap.berkeley.edu/t/digital-phonograph-stylus/13765)

<div class="topic-metadata">

**Author:** [@glenbull](https://forum.snap.berkeley.edu/u/glenbull)\
**Replies:** 15\
**Last updated:** [May 6, 2024, 3:33pm UTC](https://forum.snap.berkeley.edu/t/digital-phonograph-stylus/13765 "2024-05-06T15:33:37Z")

</div>

We're in the process of developing a lab that will enable students to use a phonograph recording lathe to cut a groove into a blank vinyl record, thereby creating a recording of their voice. For that reason, we were inte…

---

## [Unknown Error?](https://forum.snap.berkeley.edu/t/unknown-error/16668)

<div class="topic-metadata">

**Author:** [@avi\_shor](https://forum.snap.berkeley.edu/u/avi_shor)\
**Replies:** 11\
**Last updated:** [May 5, 2024, 10:29pm UTC](https://forum.snap.berkeley.edu/t/unknown-error/16668 "2024-05-05T22:29:26Z")

</div>

go into sprite 2 and click makeAIMove

[Next page](https://forum.snap.berkeley.edu/c/compsci/9.md?page=1)
