What if every variable would have to use a pointer that points to a reference of the data in a central array. In normal languages you’d need a variable to store said array, but what if it too has to reference itself in itself, so we get some funky recursion.
I realized a while ago that there’s nothing stopping me from writing rust like this
;println!("This is great")
;println!("I think everyone should write rust like this")
;println!("Probably works in most languages that use semicolons")
;
Welcome to the world of abusing the shit out of Ant. My first full time job was developing Ant in unholy ways. Tens of thousands of lines of Ant at least, doing significant logic. If-then-else, for loops, math, procedures, date-time math. I stuck it out for a year. It was a year too long.
I like it, this is clearly very enterprisey and solution focused, but I would like to suggest a couple of amendments if I may?
Namespaces
We should make full use of namespaces. Make the structural tags be in a language specific namespace (to be referenced in every function spec, obviously) but change the in an out params to use the parameter name as the tag, namespaced to the function they’re for, with a type attribute.
In memory message queues
Have all function invocations be marshaled as xml documents posted to an in memory message queue. Said documents should use a schema that validates the structure and a function specific schema to validate the types of arguments being passed. Namespace everything.
I reckon we could power a medium sided country if we could generate energy from the programmers despair.
Screw it. Let’s actually make python script an ISA that gets run on physical hardware with no higher level tooling. Then we can have the python virtual environment which runs this for fools who don’t have the right hardware. Finally, when people start complaining about naming we make Python Script 2.1, which is a JIT language built on top of IL that looks nothing like either of them but can emulate both python and python script with the performance cost of being a quarter as fast as both.
Honestly if someone irons out the edge cases, python probably could JIT compile to machine code via cython. It would take a fair bit of memory and probably a bit slow on low powered systems but it would be so much faster if cached.
Technically I think python already has an intermediate step that it uses before it starts running a script that compiles it into a lower-ish language (at least the cpython interpreter does this, it probably isn’t a part of the language specification though)
The actual line between JIT languages and interpreted languages is pretty thin since I think most interpreted languages do something similar to minimize the amount that needs to be done at runtime
Just today I heard someone whining about how in LinkedIn and other recruitment sites there’s like five bazillion profile tag options for RDMBSes and various dialects of SQL… when in actuality the recruiters are probably only concerned if the developer can do a bloody SELECT and stuff.
I think white space should be used to represent basic functions too. For example 3 spaces can be used to sum two values while 4 spaces can be used to subtract.
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
And its syntax is nothing like python haha
deleted by creator
I think you can already with web assembly?
What if every variable would have to use a pointer that points to a reference of the data in a central array. In normal languages you’d need a variable to store said array, but what if it too has to reference itself in itself, so we get some funky recursion.
all lines not terminated by a single space are comments
Also each line starts with a semicolon and you have to escape spaces in strings using a double forward slash
I realized a while ago that there’s nothing stopping me from writing rust like this
Also a spicial place in hell for you
Can we add the comefrom function too?
hope you don’t forget the semicolon on a line by itself at the end (except in functions where you want to return the value of the last expression)
Nasm programmers probably think that is old code that you commented out.
There’s a special place in hell for you
Pure evil, I love it.
It uses XML-like syntax:
This deserves to be added to the list of human rights violations
Make sure to make ample use of mixed content elements.
God I hate it
Lol, I’m sorry
Don’t apologize, it’s beautiful in its horribleness
The tag indentation is a required part of the syntax and don’t forget colons at the end of the tag
How did you come up with such a ****ingly stupid syntax?!
They probably have experience with Spring
I imagined what an Elasticsearch query style Python XML syntax would look like.You must share my pain.
That’s grotesque and you have my condolences
It haunts me in my dreams
Thanks, I hate it.
Welcome to the world of abusing the shit out of Ant. My first full time job was developing Ant in unholy ways. Tens of thousands of lines of Ant at least, doing significant logic. If-then-else, for loops, math, procedures, date-time math. I stuck it out for a year. It was a year too long.
Thankfully we have Gradle now.
Can you please link to a medium article on how this will help utilize AI blockchain so i can show it to management on Monday?
I like it, this is clearly very enterprisey and solution focused, but I would like to suggest a couple of amendments if I may?
Namespaces We should make full use of namespaces. Make the structural tags be in a language specific namespace (to be referenced in every function spec, obviously) but change the in an out params to use the parameter name as the tag, namespaced to the function they’re for, with a
type
attribute.In memory message queues Have all function invocations be marshaled as xml documents posted to an in memory message queue. Said documents should use a schema that validates the structure and a function specific schema to validate the types of arguments being passed. Namespace everything.
I reckon we could power a medium sided country if we could generate energy from the programmers despair.
I took every coding class my highschool offered, and the only thing that drove me more crazy than this syntax was trying to use CSS.
That’s because you didn’t try our lord and savior SASS. Vanilla CSS should be illegal at this stage.
I almost did similar with SDLang as I was very desperate for a scripting language, but now I have a wasmtime API for D.
Who hurt you :(
You monster
The whitespace is not only required, but it must be tabs and spaces.
Compiler rolls the dice if your only required indentation is accepted as space or tab. Per line.
But stores this information as a metadata file, which gets invalidated when a new file is added/removed from the program muhahaha!
Calm down, Satan
That’s basically how the Android app Tasker works. You do the programming through its UI, but when you export/share your tasks, they’re saved as xml
Oh my, I feel woozy …
Make sure it’s not whitespace sensitive and requires explicit typing, just to mess with everyone.
Screw it. Let’s actually make python script an ISA that gets run on physical hardware with no higher level tooling. Then we can have the python virtual environment which runs this for fools who don’t have the right hardware. Finally, when people start complaining about naming we make Python Script 2.1, which is a JIT language built on top of IL that looks nothing like either of them but can emulate both python and python script with the performance cost of being a quarter as fast as both.
Honestly if someone irons out the edge cases, python probably could JIT compile to machine code via cython. It would take a fair bit of memory and probably a bit slow on low powered systems but it would be so much faster if cached.
Technically I think python already has an intermediate step that it uses before it starts running a script that compiles it into a lower-ish language (at least the cpython interpreter does this, it probably isn’t a part of the language specification though)
The actual line between JIT languages and interpreted languages is pretty thin since I think most interpreted languages do something similar to minimize the amount that needs to be done at runtime
I think at this point in time it JIT compiles into byte code and cached which is more efficiently interpreted the next time that function is called.
Make CScript, an interpreted, duck-typed language
There is a Tiger Jyhton version for the web https://www.tigerjython.ch/en
But at least just for educational purposes😅
Just today I heard someone whining about how in LinkedIn and other recruitment sites there’s like five bazillion profile tag options for RDMBSes and various dialects of SQL… when in actuality the recruiters are probably only concerned if the developer can do a bloody
SELECT
and stuff.Oh boy, make Pythonscript a dialect of SQL but for frontend
PythonSharp Script Java Edition
Make it completely untyped. Everything’s just a string.
I think white space should be used to represent basic functions too. For example 3 spaces can be used to sum two values while 4 spaces can be used to subtract.
Yes, however indentation still defines block and the operator (white space in same cases) has to come right after the white space for the indent
Just call it Script.
That’s an awful idea and you are an awful person for suggesting it.
…and I am an awful person for considering the idea