EEVblog Electronics Community Forum
Products => Computers => Programming => Topic started by: SiliconWizard on June 06, 2023, 01:37:51 am
-
This month's nugget:
https://github.com/zinc-lang/zinc
And, the compiler is written in Rust!
-
Oh crap!
https://tibleiz.net/zinc/
Identifiers Can Have Blanks
The most important feature and the most unusual.
If you consider that an identifier follows this regular expression [_A-Za-z][_A-Za-z0-9]*,then just consider that a zinc identifier can be a sequence of one or more identifiers separated by blanks. The grammar of zinc permit this.
e.g.:
OpenWindowWithAttributes(...)
or
open_window_with_attributes(...)
becomes:
open window with attributes (...)
More information here.
-
Oh crap!
https://tibleiz.net/zinc/
Identifiers Can Have Blanks
The most important feature and the most unusual.
If you consider that an identifier follows this regular expression [_A-Za-z][_A-Za-z0-9]*,then just consider that a zinc identifier can be a sequence of one or more identifiers separated by blanks. The grammar of zinc permit this.
e.g.:
OpenWindowWithAttributes(...)
or
open_window_with_attributes(...)
becomes:
open window with attributes (...)
More information here.
Featured in today's episode of "What could possibly go wrong?"
(that could be a great name for a blog)
-
Yes, this is not the same Zinc though.
So, looks like we found 2 Zincs for the same price.
To be fair, the first one is a bit less funky.
-
Is it re-inventing the wheel or perhaps just trying to build better spokes?
-
Identifiers Can Have Blanks
The most important feature and the most unusual.
If you consider that an identifier follows this regular expression [_A-Za-z][_A-Za-z0-9]*,then just consider that a zinc identifier can be a sequence of one or more identifiers separated by blanks. The grammar of zinc permit this.
e.g.:
OpenWindowWithAttributes(...)
or
open_window_with_attributes(...)
becomes:
open window with attributes (...)
More information here.
Imagine the possibilities when combined with Sherlock Holmes' multilingual keyword feature! :-DD
-
Is it re-inventing the wheel or perhaps just trying to build better spokes?
By making the spokes optional... ??? wut?
Is this an April fool joke? I am trying to think of a language where spaces in variable/object/clsss definitions are possible. I think you can use emojis in some kiddyScript, but not whitespace.
I'm sure over the next ten minutes, Zn will be the next big thing - with former C and Fe2O3 developers demanding megabuck salaries, whilst working from the home of their university dorm rooms.
It claims it's easier to write, read and understand. So find any new language that does not make this claim? From Lua to Swift, React to Rust, when you need a language to do difficult stuff then, it gets complex quickly. Under the hood Zn can be a wrapper around C++ ??? wut?
-
Yes, this is not the same Zinc though.
So, looks like we found 2 Zincs for the same price.
To be fair, the first one is a bit less funky.
There is at least one more .... "Zinc modeling language". https://link.springer.com/article/10.1007/s10601-008-9041-4
I'm kinda glad I looked up the wrong zinc, because I'm allergic to spaces in directory names/ folders , filenames and as it turns out variable names too :)
-
Is it re-inventing the wheel or perhaps just trying to build better spokes?
By making the spokes optional... ??? wut?
I'm sure over the next ten minutes, Zn will be the next big thing - with former C and Fe2O3 developers demanding megabuck salaries, whilst working from the home of their university dorm rooms.
It claims it's easier to write, read and understand. So find any new language that does not make this claim? From Lua to Swift, React to Rust, when you need a language to do difficult stuff then, it gets complex quickly. Under the hood Zn can be a wrapper around C++ ??? wut?
Hey, the "easier" it is to learn , the more people you can pay less to learn/use it and be "productive". Great for new projects or rerwiting old projects that will now be cheaper to "maintain" - until the next "easy-to-learn" language comes out !
-
Imagine the possibilities when combined with Sherlock Holmes' multilingual keyword feature! :-DD
lol :-DD
-
Is this an April fool joke? I am trying to think of a language where spaces in variable/object/clsss definitions are possible. I think you can use emojis in some kiddyScript, but not whitespace.
Kids these days...
Have you ever used FORTRAN?
(I think whitespace in identifiers is no longer possible in Fortran 90 free form code).
-
Kids these days...
Sometimes I wonder if these spawn langs are simply the work of student thesis. Or begin life that way.
-
think whitespace in identifiers is no longer possible in Fortran 90 free form code
yup, removed.
-
Is it re-inventing the wheel or perhaps just trying to build better spokes?
By making the spokes optional... ??? wut?
I'm sure over the next ten minutes, Zn will be the next big thing - with former C and Fe2O3 developers demanding megabuck salaries, whilst working from the home of their university dorm rooms.
It claims it's easier to write, read and understand. So find any new language that does not make this claim? From Lua to Swift, React to Rust, when you need a language to do difficult stuff then, it gets complex quickly. Under the hood Zn can be a wrapper around C++ ??? wut?
Hey, the "easier" it is to learn , the more people you can pay less to learn/use it and be "productive". Great for new projects or rerwiting old projects that will now be cheaper to "maintain" - until the next "easy-to-learn" language comes out !
You're right about that. One good reason those apparently "easy" languages get hyped is because they are promising to reduce development costs, which many business owners will buy without a second thought.
Oddly/funnily enough, then comes Rust, which gets almost equally hyped, but is one of the most elitist programming languages I've ever seen.
That may not be so odd after all. Dumbing down the masses gives birth to more inequalities and the raise of a more influent elite, with less and less room for anything in between.
The same can be more generally witnessed with education. Many western countries have been dumbing down their curriculums, witht the idea that would improve equality of chances. In the end, all it does is lower the value of degrees, increase competition and increase elitism.
Just a thought.
-
repurposing my-c for education? :o :o :o
-
kidding, but in 2001 Dalsemi tried to repurpose Java-v1 for education with microcontrollers.
Yes, they did, and for five years, it worked!