Posts: 4,653
Threads: 1,496
Joined: Sep 2016
Oct-23-2016, 09:05 AM
(This post was last modified: Oct-23-2016, 09:12 AM by Skaperen.)
if you were to make your own language similar to python, but not necessarily compatible, how would yours differ?
i had been thinking of writing one for a very very long time. on big difference is mine would have no "def" statement. functions would be defined like this:
1 2 |
foobar = fun(a,b):
return a + b
|
back then i was thinking in just C syntax, so it was literally like this:
1 2 3 |
foobar = fun(a,b) {
return a + b
}
|
the idea being that it was an assignment, you could assign it other ways, too:
1 2 |
list_of_functions + = fun(a,b):
return a + b
|
or:
1 2 |
dict_of functions[ 'add' ] = fun(a,b):
return a + b
|
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,220
Threads: 97
Joined: Sep 2016
I always thought that if I ever designed a programming language, it would have all the standard data structures as built-in data types.
Posts: 7,324
Threads: 123
Joined: Sep 2016
(Oct-23-2016, 12:57 PM)ichabod801 Wrote: I always thought that if I ever designed a programming language, it would have all the standard data structures as built-in data types. Like PHP Sucks, But It Doesn't Matter
Posts: 12,038
Threads: 487
Joined: Sep 2016
Throughout my Career, I have no idea how many 'Languages to beat all languages' were introduced,
embraced by every non technical CIO, and then abandoned for something better.
That is however how the truly great ones survive.
They're fun to write.
We'll see a lot of new and bad ones, then a shining star will emerge and everyone will do their best make something better.
My new rule, if it survives the first five years, and if there is still a lot of interest, learn it!
As far as the rule on making a new one: Whenever it strikes your fancy!
Posts: 4,220
Threads: 97
Joined: Sep 2016
(Oct-23-2016, 02:28 PM)snippsat Wrote: Like PHP Sucks, But It Doesn't Matter LOL
I would use proper object oriented name spaces to avoid that mess. I've already designed my programming language that would be a mess. It's called #@+$&!+. Writing an interpreter for it is on my bucket list.
Posts: 4,653
Threads: 1,496
Joined: Sep 2016
Oct-24-2016, 03:12 AM
(This post was last modified: Oct-24-2016, 03:14 AM by Skaperen.)
long ago i liked this one. more recently, i liked this one and used it a lot, thinking it was my final choice. then i encountered these two and ended up using
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 12,038
Threads: 487
Joined: Sep 2016
I did a stint at Bell Labs (where C was written) back in the 80's.
There was always something interesting going on there.
Sometimes you even found out about it there before the book came out.
That was a great place to work, I was a consultant, so my stay was only a few months.
Even so, I learned a lot.
We had access to several cray X-MP/24 computers.
(You can find Dennis Ritchie's paper on this here)
Posts: 1,150
Threads: 42
Joined: Sep 2016
@ Larz60+
Did you get to meet or even work with the Ritchie?
Posts: 12,038
Threads: 487
Joined: Sep 2016
Oct-24-2016, 10:44 AM
(This post was last modified: Oct-24-2016, 11:30 AM by Larz60+.)
Both Dennis Ritchie and Brian Kernighan where there at the time. I may have met them in the cafeteria, without knowing it. That building in Morristown was huge.
it was a quarter mile wide, at least a half mile long, 7 stories above ground and several (unknown how many because some you needed an elevator key to get to), below
Each work area was self contained with one access point and no windows. I was doing work on a CAD/CAM system, and the only time I went out of our 'pod' was
when arriving, leaving, or going to lunch. I did like to take a walk through the inside corridor which spanned the entire seven floors, with glass ceiling, so brightly
lit from the outside, and full of yuppie ferns and other growing things. It also had a couple of cray's glassed in large glass cylindrical rooms.
By the way, the cafe was subsidized by Bell, and to die for.
The building was shaped like an IC (from the air) with water towers representing discrete transistors.
http://aianj.files.wordpress.com/2011/12...olmdel.jpg
Posts: 1,298
Threads: 38
Joined: Sep 2016
It should also be noted that Dennis Ritchie and Ken Thompson created the Unix language in 1969.
It amazes me what came out of Bell Labs back in the day when AT&T poured tons of money into R&D.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
|