JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
588 stars 72 forks source link

code samples in k5/k6 #64

Closed wizzard0 closed 7 years ago

wizzard0 commented 7 years ago

where can one find code in k5/k6 as opposed to k4? and maybe some comparison too

JohnEarnest commented 7 years ago

The only canonical source online for this type of thing is kparc. Some of the examples here work properly in oK and some depend on features which have not been implemented properly yet. (I also suspect one or two did work in k5/k6 but have been broken by subsequent changes...)

I get my information primarily from experimenting with a copy of the current k6 interpreter provided to me by Arthur Whitney. My manual is generally a good description of the features I've discovered/implemented so far. The short version is that k5 and k6 are more like k3 than they are like k4. Simpler type system, many features trimmed down or removed. K6 does, however, include vastly improved support for dictionaries relative to k3 with many useful overloads and generalizations of operators for them.

wizzard0 commented 7 years ago

Just curious: how does performance of K6 compare to K4?

JohnEarnest commented 7 years ago

If there's a specific program you'd like me to try in k6, I'd be happy to run it for you.

If you want to do your own experimentation, you can contact Arthur at arthur.whitney@gmail.com and ask him nicely for a copy of k6.

JohnEarnest commented 7 years ago

Since there are no further requests, I think it's safe to close this now. Feel free to reopen if you deem it necessary.