EEVblog Electronics Community Forum

Products => Computers => Programming => Topic started by: SiliconWizard on June 06, 2023, 01:37:51 am

Title: Zinc
Post 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!
Title: Re: Zinc
Post by: DimitriP on June 06, 2023, 02:08:54 am
Oh crap! 


https://tibleiz.net/zinc/
Quote
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.
Title: Re: Zinc
Post by: JPortici on June 06, 2023, 06:01:09 am
Oh crap! 


https://tibleiz.net/zinc/
Quote
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)
Title: Re: Zinc
Post by: SiliconWizard on June 06, 2023, 06:05:50 am
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.
Title: Re: Zinc
Post by: Ed.Kloonk on June 06, 2023, 06:26:22 am
Is it re-inventing the wheel or perhaps just trying to build better spokes?
Title: Re: Zinc
Post by: Siwastaja on June 06, 2023, 06:33:37 am
Quote
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
Title: Re: Zinc
Post by: AndyBeez on June 06, 2023, 08:25:19 am
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?
Title: Re: Zinc
Post by: DimitriP on June 06, 2023, 08:33:22 am
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 :)




 



Title: Re: Zinc
Post by: DimitriP on June 06, 2023, 08:46:04 am
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 !


Title: Re: Zinc
Post by: DiTBho on June 06, 2023, 12:40:29 pm
Imagine the possibilities when combined with Sherlock Holmes' multilingual keyword feature!  :-DD

lol  :-DD
Title: Re: Zinc
Post by: newbrain on June 07, 2023, 07:18:18 am
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).
Title: Re: Zinc
Post by: Ed.Kloonk on June 07, 2023, 07:26:55 am
Kids these days...

Sometimes I wonder if these spawn langs are simply the work of student thesis. Or begin life that way.
Title: Re: Zinc
Post by: DiTBho on June 07, 2023, 09:15:45 am
think whitespace in identifiers is no longer possible in Fortran 90 free form code

yup, removed.
Title: Re: Zinc
Post by: SiliconWizard on June 07, 2023, 07:29:02 pm
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.


Title: Re: Zinc
Post by: DiTBho on June 08, 2023, 07:36:52 pm
repurposing my-c for education?  :o :o :o
Title: Re: Zinc
Post by: DiTBho on June 08, 2023, 07:39:09 pm
kidding, but in 2001 Dalsemi tried to repurpose Java-v1 for education with microcontrollers.
Yes, they did, and for five years, it worked!