Live data from Hacker News

Show HN: Ki Programming Language

github.com

21–30 of 80 posts

Re: Show HN: Ki Programming Language

#21

I say this every other programming language thread: Please, get some code examples up front and center, simple Hello World, and anything that shows whatever strong features your language has for organizing code like classes and so on. 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 an…

I think it’s fine. It’s one link away, on the website.

Using the readme as a landing page kitchensink is a GitHubism.

Re: Show HN: Ki Programming Language

#22
Reference counting is garbage collection. I mention this because the site claims no GC nut you claim I'm this thread that ref counting is sometimes used, which makes sense because borrowing sometimes isn't enough.

Re: Show HN: Ki Programming Language

#23

Earlier quoted context omitted.

V-lang doesn't have GC, and how it compares to it?

V-lang is vaporware, designed to get Patreon bux off of gullible enthusiasts. See this post [0] from 2019. Things don't seem to have got much better in recent years [1] [2] [3]. [0] https://xeiaso.net/blog/v-vaporware-2019-06-23 [1] https://news.ycombinator.com/item?id=20230351 [2] https://news.ycombinator.com/item?id=20229632 [3] https://news.ycombinator.com/item?id=31793554

Vaporwave, or vaporware?

Re: Show HN: Ki Programming Language

#24
post #18

Not knocking Ki or any new language but what does it offer over existing systems? I see the criticism of a few languages on the website but they all boil down in reasoning to things like: garbage collection = bad, makefiles = bad. It also doesn't mention or demonstrate how Ki addresses the complaints. For example: if Ki doesn't do garbage collection or manual memory management, what does it do? Smart pointers/referen…

"It does not have any garbage collection and instead uses ownership combined with minimal ref counting to manage memory"

Because we only allow you to store values with ownership inside other objects, you cannot have a circular reference. It uses reference counting to know if something needs to be freed or not. But because we keep track of ownership and moved values we are able to run an algorithm that removes most of these counts.

Re: Show HN: Ki Programming Language

#25

Earlier quoted context omitted.

V-lang is vaporware, designed to get Patreon bux off of gullible enthusiasts. See this post [0] from 2019. Things don't seem to have got much better in recent years [1] [2] [3]. [0] https://xeiaso.net/blog/v-vaporware-2019-06-23 [1] https://news.ycombinator.com/item?id=20230351 [2] https://news.ycombinator.com/item?id=20229632 [3] https://news.ycombinator.com/item?id=31793554

Vaporwave, or vaporware?

Good catch, thanks. Fixed.

Seems like I've been listening to Crystal Castles too much these days.

Re: Show HN: Ki Programming Language

#26

I say this every other programming language thread: Please, get some code examples up front and center, simple Hello World, and anything that shows whatever strong features your language has for organizing code like classes and so on. 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 an…

[deleted]

Re: Show HN: Ki Programming Language

#27

Reference counting is garbage collection. I mention this because the site claims no GC nut you claim I'm this thread that ref counting is sometimes used, which makes sense because borrowing sometimes isn't enough.

While reference counting is technically a method of collecting garbage, in modern parlance the phrase "garbage collector" is mainly used for systems capable of collecting garbage of an arbitrary reference graphs, which reference counting by itself cannot do (cyclic references).

Re: Show HN: Ki Programming Language

#28

> Go: Go is amazing. But it does have garbage collection, which can cause lag spikes in some cases. The creators were also very late on implementing common sense features, such as package versioning and generics. There are some other small mistakes, but the point is that we lack trust in their descission making. > Rust: Rust right now might be the best language out there right now. It's hard for us to criticize them…

I removed this section from the website. As others said, the text is not good and not really helpful.

Re: Show HN: Ki Programming Language

#29

Good effort. It feels like there is still a lot of improvement space for languages with a soundness+productivity focus. 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.

! ignores the function error (only possible with void return types)

!? provides an alternative value when the function errors

!! exits the current scope on an error, e.g. return,continue,exit,...

It doesnt seem that complex. Ofcourse, there is also '??' and '?!'. That might make it more difficult. It's not vague actually. if it starts with '!', it's a function error handler. if it starts with '?', it's a null-check.

Re: Show HN: Ki Programming Language

#30
post #8

I say this every other programming language thread: Please, get some code examples up front and center, simple Hello World, and anything that shows whatever strong features your language has for organizing code like classes and so on. 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 an…

I could add an example to the git README. Currently there is an example on: https://ki-lang.dev/ https://ki-lang.dev/docs/dev/intro For a more indept view of the language you will have to see the docs. An overview might not be bad indeed.

Thanks! I didn't see the link, the thread links to GitHub, I think it doesn't hurt to have it on the README even if its just a small amount of code. I now see the language looks somewhat like Go, do you cover differences anywhere between Ki and other languages?
Post reply on HN