News for hackers. Stuff that matters.
Re:Any resources for designing the syntax for a programming ... by yesenadam on Saturday December 23, 2017 @08:19PM (#15997344)
Great question. On second thoughts, is there much to say except "Combine the parts you like from existing languages and the new things you want"? And, read stuff about how existing languages were designed.
Re:Any resources for designing the syntax for a programming ... by ndrewxie on Saturday December 23, 2017 @08:49PM (#15997436)
I googled about the origins of many common languages, but most of them were just based off of another language. I tried finding out how those languages were made, but it just goes on...
Re:Any resources for designing the syntax for a programming ... by PeterisP on Saturday December 23, 2017 @10:03PM (#15997649)
Well, that's still the right direction that you should pursue.

The buck stops somewhere, the history is not that long - if you trace all the ancestors and key influencers of a single language, that's generally 10 at most; and if you trace another language, half of them will overlap.

You can't really skip that step anyway, it's not like you can make an informed decision about a particular syntax feature if you haven't taken a serious look on how that feature works or doesn't work in a dozen languages; and the more obscure languages tend to be very useful in this regard because they explore a larger variety of features and their combinations. Getting a short overview of syntax of at least some 25 languages would be a reasonable prerequisite before designing another one, and that overview would still be the easy and straightforward part.

Re:Any resources for designing the syntax for a programming ... by ndrewxie on Monday December 25, 2017 @09:22AM (#16004162)
OK, I'll follow the chain to the end :)
Re:Any resources for designing the syntax for a programming ... by DonaldFisk on Saturday December 23, 2017 @09:40PM (#15997586)
I identified eleven ground breaking languages here: http://web.onetel.com/~hibou/blog/GroundBreakingLanguages.ht...

There's a family tree of languages here: http://www.digibarn.com/collections/posters/tongues/tongues....

Re:Any resources for designing the syntax for a programming ... by ndrewxie on Saturday December 23, 2017 @08:48PM (#15997432)
Yes, I've been combining features from different languages (Smalltalk and Haskell), but all I have now is this huge mess that I don't know how to fix.
Re:Any resources for designing the syntax for a programming ... by ndrewxie on Saturday December 23, 2017 @09:27PM (#15997542)
They're opposites, I know. I'm trying to put strong, static typing and laziness onto Smalltalk and clean up it's syntax a bit (it's already pretty clean, just a few things could be improved) - essentially a faster Smalltalk.
Re:Any resources for designing the syntax for a programming ... by DonaldFisk on Saturday December 23, 2017 @10:09PM (#15997667)
> I'm trying to put strong, static typing and laziness onto Smalltalk

This actually sounds quite interesting. You're starting from a good language (Smalltalk) and adding a feature absent from it but widely regarded as desirable (strong static typing).

> and clean up its syntax a bit (it's already pretty clean, just a few things could be improved)

If you go for type inference instead of having types explicitly declared, you might be able to avoid both run-time type checks and changes to Smalltalk's syntax.

> essentially a faster Smalltalk.

Bryce Kampjes (http://www.kampjes.demon.co.uk/index.html) was working on compiling Smalltalk byte code into machine code to speed it up, but that didn't involve changes to the language, so I think run-time type checks would still have been necessary. Making static type checks would result in a further speed-up.

Good luck.

Re:Any resources for designing the syntax for a programming ... by ndrewxie on Monday December 25, 2017 @06:20PM (#16006165)
Not to bother you with this REALLY long mess, but I've been working on it for a while already, so could you please review it for me? Some flaws just won't work out correctly, and I need a pair of fresh eyes to look at it. Laziness isn't added yet, and there are a lot of flaws that make it not ready for any sort of use (recreational or otherwise).

Thanks!

Report can be found at https://gist.github.com/ndrewxie/54d3299c998569c27e281d2320b...

Re:Any resources for designing the syntax for a programming ... by blt on Sunday December 24, 2017 @03:27PM (#16001173)
how can laziness be reconciled with the statefulness of Smalltalk? wouldn't it require an incredibly smart compiler to reason about the order in which different parts of the code can modify state?
Re:Any resources for designing the syntax for a programming ... by ndrewxie on Tuesday December 26, 2017 @08:22AM (#16008468)
Well, most variables are immutable in my language (took the lazy way out). The few mutable ones are "owned" by one scope, and must operate on the same thread.
Re:Any resources for designing the syntax for a programming ... by woolybully on Sunday December 24, 2017 @08:23AM (#15999406)
Have a look at StrongTalk.
Re:Any resources for designing the syntax for a programming ... by ndrewxie on Sunday December 24, 2017 @10:15AM (#15999849)
Yes, I saw that. I'm planning to make something similar, but still pretty different.