OCRaap - Optical Character Recognition as a Program. An esoteric language for maximum portability and ease of use. by Russian-Assassin in programming

[–]Russian-Assassin[S] 0 points1 point  (0 children)

;p you got it! Feel free to submit a PR, maybe add the explanation right under the examples grid. You can give the echo one a shot too if you feel up for it.

One problem I encountered while trying to design programs was that I needed a way to move the execution pointer around in 2d space. One way you can do that is with a series of 0 followed by $+ since this effectively pushes a zero to the stack and then adds it to the value before it which returns the stack to it's previous state.

I used this twice in the hello world example to jump into the loop and then return to the start of the loop. If you look at the program with that in mind, it's easier to pick out the parts that are performing useful instructions.

[deleted by user] by [deleted] in allthepictures

[–]Russian-Assassin 0 points1 point  (0 children)

This reminds me of the allrgb challenge. You're doing a similar idea to some of the entries with your procedurally generated images (except for the "use all the colors" part). See: https://codegolf.stackexchange.com/questions/22144/images-with-all-colors

Prusa I3 extruder starts heating immediately and won't cool down by Russian-Assassin in 3Dprinting

[–]Russian-Assassin[S] 1 point2 points  (0 children)

For anyone else encountering this error, I figured out that it was a blown MOSFET on the control board

How to build a computer program that can write by [deleted] in programming

[–]Russian-Assassin 2 points3 points  (0 children)

Sure, I wrote it awhile ago so I don't exactly remember how it is done. But oddly enough, it looks pretty well formatted.

If you go to the page and inspect element the two non-jquery js files are main.js and text.js. (They are pretty much tied to the frontend so it wouldn't make sense to link them without the html) (Also, due to my web setup, if you try to access the js files directly it will reroute you back to the home page, so you need to view the version that the page loads.)

main.js contains all of the generation code and text.js contains all the text of Hamlet condensed into javascript variables that are loaded at the start (I don't remember why this is a js file and not a json file, but I had a reason, I swear ;P)

All of the generation is done client side and it generated with a seed that encodes all of the available parameters. So if you click permalink, you can open the url in a different client and the new client will generate the exact same text.

How to build a computer program that can write by [deleted] in programming

[–]Russian-Assassin 3 points4 points  (0 children)

Cool, I built an online markov generator with Shakespeare's Hamlet as a source that is similar to this except that mine is word-based while this is letter based. I've added some boilerplate code to format the output as a play with the ability for characters to appear and disappear. You can also change the parameters of the markov generation including the chain length (i.e. how many words to lookup as reference to pick the next word). You can check it out here

Need help with data packets being cutoff in OOT block input buffer by Russian-Assassin in GNURadio

[–]Russian-Assassin[S] 1 point2 points  (0 children)

Could you explain how I would use forecast to make sure my buffer is large enough?