by ki_ on 5/22/23, 11:50 AM with 70 comments
by giancarlostoro on 5/22/23, 1:47 PM
Python, Racket and a few others do this really well. Even on the GitHub a simple short but significant enough code snippet would do wonders.
Maybe the syntax is exactly what I expect and I'll have more interest, or maybe its way off and I don't want to bother. Whatever the case, put some sample code up front and center.
by lagniappe on 5/22/23, 1:44 PM
> Rust: Rust right now might be the best language out there right now. It's hard for us to criticize them because we lack the experience of building big rust projects. We do however think rust has a really slow compiler. We also think that rust might be too idealistic where it restricts the developer too much.
> C: C is obviously the best but... we dont always want to manage our own memory. Also their std-lib lacks alot of basic functions. You are forced to work with makefiles or similar build tools and most of those tools are very badly designed.
> C++: C++ is like a worse version of c. They do have the most features of any language, which allows the developers to write the greatest code and also the worst code. You let a developer work on a project for a year and suddenly you are looking at a codebase full of OOP, templates and the most hacky preprocessor logic you've ever seen. That developer says it's built using todays greatest standards, yet no one is able to understand the code at all. Sometimes you have to limit bad practices.
> Other: All other languages use garbage collection which makes them hard to use for millisecond realtime applications. Secondly, most languages allow you to have undefined behaviour.
I'm not sure if this section is really making the case you wanted to make. Either this needs to be rephrased or scrapped all together, it doesn't present the best foot forward because ideally you are recruiting people from these languages, and in your descriptions of them you make some very facile comparisons.
by bheadmaster on 5/22/23, 2:07 PM
Skimmed through the docs. On the first look, the syntax seems to be a blend of Go and Rust.
Was confused by this sentence [0], perhaps some additional explanation/code example could help:
When a value has ownership, it can be stored and used anywhere. But you can only store it in one place.
Aside from that, I'd really like to know about1) concurrency support
2) memory management techniques
As those are the most interesting aspects of any C-like language to me.
Good luck!
by theolivenbaum on 5/22/23, 1:33 PM
by naasking on 5/22/23, 2:31 PM
by Atlas22 on 5/22/23, 2:16 PM
Would recommend removing the "Other" comparison as pretty much anything that can be said there is wildly inaccurate. Would also like to see comparison with Zig as it seems to have similar goals.
by janalsncm on 5/22/23, 4:17 PM
Can we please knock it off with reinventing different ways to declare a variable? This also irritates me about Rust. There’s nothing wrong with having syntax that looks like languages that have existed before. How about
[modifiers] [type] [variable name] = [initial value];
What I want in a programming language is not arbitrary new grammars, I want drop-in improvements to languages that already exist. C++ but with better dependency management. Python but statically typed (Mojo where you at?). PHP but standardize all the weirdness.
(Some or all of these rants could be out of date as my knowledge cutoff for languages ends at various times in the last 15 years.)
by wiz21c on 5/22/23, 3:08 PM
So compilation times are dominated by llvm so there won't be any significant improvement on compilation speed.
> Ki is a statically typed language. It's advantage over most languages is that you cannot have any undefined behaviour.
Java, C, C++ are statically typed. I understand it's not many languages, but they do represent a pretty large share of coders...
by ModernMech on 5/22/23, 1:58 PM
by chomp on 5/22/23, 1:54 PM
by pxeger1 on 5/22/23, 3:38 PM
by frodowtf on 5/22/23, 2:10 PM
Docs need some polishing tough. The comparison to other languages doesn't make the point of Ki clear to me.
Also, error handling feels like black-box magic with all those exclamation and question marks sprinkled everywhere. Those symbols seem vaguely chosen.
by fridental on 5/22/23, 1:51 PM
by return_to_monke on 5/22/23, 4:07 PM
by haspok on 5/22/23, 3:44 PM