News for hackers. Stuff that matters.

ki_

I dont know why they make it that difficult. I just do it like: https://pastebin.com/duN0cGJY
Re:Why the M2 is more advanced that it seemed on Monday January 15, 2024 @04:01AM (#38998734)
I have an M2 for my work. MacOS still gives me random lag spikes sometimes. But it's probably because the OS is bad and not the hardware. This is never an issue on win/linux. idk. im not a fan. but.. im just saying.. if the hardware is so superior, why does it feel so inferior? Like.. my $500 linux laptop feels smoother and faster (GUI wise)
Re:Server-Side Rendering Is a Thiel Truth (2020) on Wednesday August 23, 2023 @02:21PM (#37240110)
1. You can share templates between front & back-end using any language. (im not talking about WASM)

2. CSS has NOTHING to do with js/ts.

3. Most single page js applications require SSR anyway, otherwise you have a blank screen or spinner until the browser has downloaded & intialized everything.

Personally, i dont care if it's SSR or SPA. But the js/ts community tends to use things like webpack in combination with ~20 packages which themselfs rely on ~20 packages, resulting in index.js files that are +2MB... That's bad programming.

Re:Scientists Say Recycling Has Backfired Spectacularly on Wednesday July 26, 2023 @03:43AM (#36874288)
horrible article, title is super clickbait and totally not what the article represents. There is no backfire and all it says is that some people dont know what can or cannot be recycled...
Re:Show HN: Ki Programming Language on Thursday May 25, 2023 @04:24AM (#36068292)
I thought v was older, hmm, ok. But still, all these languages should have reached 1.0 by now. Except for jai, because jblow has other things todo. Wasnt c created in 2 weeks?
Re:Show HN: Ki Programming Language on Monday May 22, 2023 @01:22PM (#36034141)
at the moment, if you want a non gc language with automatic memory management, rust is your only choice. ki is an alternative, but my goal is to make it a much simpler than rust. I need to spend some more time writing rust & ki in order to answer your question with full certainty.
Re:Show HN: Ki Programming Language on Monday May 22, 2023 @12:10PM (#36033252)
in v? i have no idea, never used it.
Re:Show HN: Ki Programming Language on Monday May 22, 2023 @10:51AM (#36032186)
! 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 on Monday May 22, 2023 @10:40AM (#36032059)
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 on Monday May 22, 2023 @10:35AM (#36031989)
"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 on Monday May 22, 2023 @10:20AM (#36031793)
I think v-lang is faster than ki, rust, go. But their memory management isnt waterproof. Also, they have been in development for a really long time and there isnt much progress. They should have reached 1.0 by now, but they havent and i think it's because the language might have problems.

oh and, v-lang does have GC. they use boehm gc.

Re:Show HN: Ki Programming Language on Monday May 22, 2023 @10:08AM (#36031653)
yeah, that might be a good idea.
Re:Show HN: Ki Programming Language on Monday May 22, 2023 @09:52AM (#36031483)
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.

Re:Show HN: Ki Programming Language on Monday May 22, 2023 @09:47AM (#36031429)
Someone is spamming requests to the server. Im putting a rate limit on it.
Re:Show HN: Ki Programming Language on Monday May 22, 2023 @09:39AM (#36031330)
i'll remove it ^_^ it seemed like they want you to use Visual studio and for me it was like 10GB+ for a minimal setup. idk.
Re:Go with PHP on Thursday May 11, 2023 @07:14AM (#35900568)
All i see is that the php fpm based frameworks (e.g. laravel) are 100x - 300x slower. And this is the best case scenario. When projects grow, php-fpm gets slower and slower. Which is not the case for go. Im not a go-fanboy, my entire carreer has been in PHP. Im just saying, PHP is one of the most terrible languages for web servers. And it's all php-fpm's fault. On top of that, the PHP community seems to promote OOP and SOLID which are the last design patterns you want to combine with php-fpm. There's a reason why facebook created their own PHP transpiler.
Re:An Introduction to Lockless Algorithms on Monday April 24, 2023 @03:59AM (#35684833)
Ringbuffers are one of my favorite things to use. Thanks for the article.
Re:Astral on Wednesday April 19, 2023 @03:18AM (#35625283)
If both run under 500ms. I guess it's your choice. Just pick the one that's most productive for you. If flake8 takes longer than 1 second, i'd replace it with ruff. 1 second is a really really long time for a linter, even if your codebase is 1 million lines of code.
Re:Why you should use io_uring for network I/O on Thursday April 13, 2023 @05:30AM (#35553021)
Thanks for changing it, i dont know why people are giving you such a pushback, personally, i think the internet could use a bit less hype titles.

Side note, i'd pick "Using" instead of "Use"

Re:The Determinate Nix Installer on Monday February 27, 2023 @03:22PM (#34961394)
I like nix because it seems like an alternative to docker. Yet. Im never going to use it, because it has complexity and i dont understand why. Which is why i dont use docker nor nix. I can work with both, i just dont want to waste my time on them unless i have no other option.
Re:Rust: A Unique Perspective on Friday February 10, 2023 @01:50PM (#34743951)
That's distributed ownership. Basically you get ownership of certain objects for no reason. And if you question the Goverment Class about this behaviour, you get freed from memory. Not a good strategy in my opinion.
Re:Rust: A Unique Perspective on Friday February 10, 2023 @11:42AM (#34742070)
True. But doing this yourself can result in bugs. It would be nice if we didnt have to think about it.
Re:Rust: A Unique Perspective on Friday February 10, 2023 @11:34AM (#34741944)
I just meant that 99% of software was written without the idea of ownership. Sure, we had objects containing other objects, but i dont see that as "ownership".

Interesting arguments. Thanks.

Re:Rust: A Unique Perspective on Friday February 10, 2023 @09:12AM (#34739770)
as a language designer.. im still stuck wether ownership is a good or bad idea. I like ownership because that's how we handle things in the real world. Eg. 2 people grabbing potato chips out of a bag at the same time is a bad idea. We pass the bag along. wait turns. But for some reason, we dont do this with computer programs. So.. should we do this with computers or not? Feel free to reply.

My instinct says 'yes'. But i also have a feeling that im going to run into problems that current languages dont have. Such as being forced to copy data or have complex systems like in rust to make the compiler happy.

Re:FOSDEM 2023: Glad to Be Back on Tuesday February 07, 2023 @12:47PM (#34696108)
You cant balance it. In order to balance it, you already have to put these people into certain boxes, which is already pretty offensive. Then you'll have to descriminate against people in certain boxes in order to balance it. ITS WRONG. Stop grouping people up based on their skin color or sex or whatever. stop it.
Re:FOSDEM 2023: Glad to Be Back on Tuesday February 07, 2023 @09:36AM (#34693274)
Well, there is nothing to fix. As long as the speakers are picked based on their content, everything is fine. But OP suggests we pick speakers based on their skin color... that's fucked up.
Re:FOSDEM 2023: Glad to Be Back on Tuesday February 07, 2023 @09:22AM (#34693098)
> FOSDEM is dominated by a very telling lack of diversity

No one cares about a persons gender or skin color. We care about the information that's being shared. Only racists and sexists care about the gender and skin color of the speakers.

ugliest car i have ever seen. people wont buy it. simple.
Re:Show HN: Python framework is faster than Golang Fiber on Tuesday January 10, 2023 @08:38AM (#34324669)
huh? waw. strange. there are 2 fibers on the benchmarks. 1 slow and 1 really fast. Same for socketify. 1 fast, 1 slow. Why is this?

Older ยป