mr-xcoder / cthulhu Goto Github PK
View Code? Open in Web Editor NEWCthulhu recreational programming language
License: MIT License
Cthulhu recreational programming language
License: MIT License
Hello there,
I'm creating my own language that in some concepts is similar to Cthulu.
I found out that both my lang and this has the same problem - multibyte characters.
Functions/constants here use characters which span 2 or 3 bytes, which just make it lose score. I realized it, when PHP var_dump("ฤ")
shown me string(2)
instead of string(1)
. I thought there might be a space or what else, but it was just 1 character saved in 2 bytes.
Sadly, to re-gain the score, you should make the parser read custom bytes (just like Jelly does). Say, in unicode all characters 0-31 are only control ones, which you don't need. Your language loses lots of score because of them (ex. char 260 uses 2 bytes, while it could use just 1).
I asked a question on PPCG meta today, now marked as duplicate, but you might find it helpful: https://codegolf.meta.stackexchange.com/questions/13745/
(sorry, if it's already here, I don't write in Python)
Thanks.
I am creating a new branch that adds a class for functions in the function dictionary.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.