Of all the strengths that Java and C have, I would not call syntax one of them. :) So this title seems quite strange. Not the sales pitch I would make. It is understandable though, considering this language is 30+ years old. Probably not the decision you would make if you were to design it today: Switch statement with labels+fallthrough instead of a switch/match expression (even Java replaced that one with a switch e…
Pike – a dynamic programming language with a syntax similar to Java and C
21–30 of 75 posts
Re: Pike – a dynamic programming language with a syntax similar to Java and C
#22Re: Pike – a dynamic programming language with a syntax similar to Java and C
#23https://en.wikipedia.org/wiki/Roxen_(web_server)
EDIT: Github repo https://github.com/pikelang/Roxen
Re: Pike – a dynamic programming language with a syntax similar to Java and C
#24It claims to be one of the fastest “scripting” languages, where can I see the numbers? Does it perform close to DaScript? Also, is it only an interpreted language or can I compile it too if I want? Is it like Ruby in the sense that I have to share the whole runtime with the ruby script or can I somehow share a standalone cross-platform executable? I’ll be honest, the design decision at first hand sight did not look t…
"string name = Stdio.stdin->gets();" It did say it was like C so the design decision you don't like is C
I'm fine with C. Keep the focus on Pike.
Re: Pike – a dynamic programming language with a syntax similar to Java and C
#25what does pike look like https://pike.lysator.liu.se/docs/tut/introduction/first_glan... (saving you some clicks...)
Re: Pike – a dynamic programming language with a syntax similar to Java and C
#26I remember coming across Pike about two decades ago (or more), as a young amateur developer... I couldn't understand why anyone would choose Pike. And today I still can't. Legacy projects?
It always seemed like a MUD language project that tried to recycle its efforts by taking on Python, Ruby, etc. There’s literally no reason to use this language unless you want to make MUD games or are just purely curious about the project.
Being an offshoot of an existing MUD language it was quite usable even a young language, comparably good performance and a compelling C embedding. History could very well have been different. The 90s was a really good decade for dynamic languages.
Re: Pike – a dynamic programming language with a syntax similar to Java and C
#27Re: Pike – a dynamic programming language with a syntax similar to Java and C
#28Re: Pike – a dynamic programming language with a syntax similar to Java and C
#29It seems that these are (unsound) type hints, years before TypeScript made them cool:
> "If your program tries to put one type of value in a variable which was designed to hold another type of value, Pike may detect this" [emphasis mine]
https://pike.lysator.liu.se/docs/tut/fundamentals/index.md#t...