Been working on a cryptography library in rust that supports/is mostly historical ciphers like the Caesar cipher.
Programming Languages
Hello!
This is the current Lemmy equivalent of https://www.reddit.com/r/ProgrammingLanguages/.
The content and rules are the same here as they are over there. Taken directly from the /r/ProgrammingLanguages overview:
This community is dedicated to the theory, design and implementation of programming languages.
Be nice to each other. Flame wars and rants are not welcomed. Please also put some effort into your post.
This isn't the right place to ask questions such as "What language should I use for X", "what language should I learn", and "what's your favorite language". Such questions should be posted in /c/learn_programming or /c/programming.
This is the right place for posts like the following:
- "Check out this new language I've been working on!"
- "Here's a blog post on how I implemented static type checking into this compiler"
- "I want to write a compiler, where do I start?"
- "How does the Java compiler work? How does it handle forward declarations/imports/targeting multiple platforms/?"
- "How should I test my compiler? How are other compilers and interpreters like gcc, Java, and python tested?"
- "What are the pros/cons of ?"
- "Compare and contrast vs. "
- "Confused about the semantics of this language"
- "Proceedings from PLDI / OOPSLA / ICFP / "
See /r/ProgrammingLanguages for specific examples
Related online communities
- ProgLangDesign.net
- /r/ProgrammingLanguages Discord
- Lamdda the Ultimate
- Language Design Stack Exchange
Does that include the Playfair cipher? If not, it totally should, even as a novelty
It does now
Awesome
i'm working on a series of powershell scripts to prepare our VDI images for compose operations - i have some ideas for automating the manual stuff we're doing.
i'm also going to learn how to use github finally so i can finally version control my shit
I'm making an engineering language where just about everything is an expression. Lately the most interesting thing to me is the juxtapose operator, i.e. if you stick two expressions next to each other without whitespace, they are considered juxtaposed. Initially juxtapose was just going to be for math/multiplication, but I've also decided to make function calling handled via juxtapose as well (since it lets me get rid of several types of syntax and replace them with pure expression handling)
Some interesting examples:
-
since the quotes delimit the string, you don't need the parenthesis
printl'Hello, World!'
-
though sometimes you need to disambiguate with parenthesis
s = "Hello, World!" printl(s)
-
technically you can wrap either operand, so long as they touch
(printl)s // though this is bad style for function calls
-
this has a neat consequence that string prefixes are just functions, and work pretty seamlessly
mypath = p"this/is/some/path/object" myregex = re"[^i*&2@]" myphonetics = ipa"ɛt vɔkavit dɛus aɾidam tɛɾam kɔngɾɛgatsiɔnɛskwɛ"
p
,re
, andipa
are all just ordinary functions -
some basic math examples
x = 3 y = 2x z = (2+3y)(x*2)
-
complex numbers/quaternions are pretty seamless
1 + 2i 1 + 2i + 3j + 4k
-
also physical units will be first class citizens, and fit in pretty nicely with juxtapose
15kg 7(kg) * 10(m/s/s) 25(N/m^2) + 15(Pa) 1500(W) / 10(A) 5(A) * 2(Ω) 8(m*s^-1) / 2(s) 40(N*m) * 10(rad) 1000(m^3) * 2(kg/m^3)
-
Where it gets really wacky/hard to parse is something like this
sin(x)^2 + cos(x)^2 // => (sin(x))^2 + (cos(x))^2
depending on the types of
sin
andcos
different things can happen. By defaultsin
/cos
are functions, so the function call happens first, but if the user redefined them or constructed an identically formatted expression where they are numeric, then the exponent should happen firsts = 10 c = 20 s(x)^2 + c(x)^2 // => s(x^2) + c(x^2)
but that's all just a problem for the compiler
Been working on and off on an interpreter/compiler written in python. Pretty slow going though.
I'm making an esolang which is themed after magic, is built around the KPN model of computing, and will eventually be used in a Minecraft mod.
Trying to package openstack on nixos
https://moonpiedumplings.github.io/projects/openstack-on-nixos/