this post was submitted on 30 Apr 2023
5 points (100.0% liked)

Technology

34870 readers
6 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS
 

I've been playing with SudoLang a lot lately and I finally got around to trying to write a simple example of what an actual codebase written in SudoLang could look like.

  • Automatically builds codebase in JavaScript based on SudoLang
  • Imports interfaces into files using the @interfaces directive to ensure compatibility between generated files

It could be extended to:

  • Automatically generate unit tests
  • Use these unit tests for self-refinement to make sure that the generated code works as expected
  • Automatically look up optimizations
  • Automatically rewrite the SudoLang itself to be more deterministic
  • Progressive compilation (only recompile code changes)
  • Automatically produce documentation

There's so much power in writing my codebase like this. It makes it much faster to write, I don't need to know a lot of the low level technical details of each language (though it helps), I don't need to know the best implementations of algorithms I just need to name and/or explain their outcome, and so much more!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here