News for hackers. Stuff that matters.
Re:VectorDB: Vector Database Built by Kagi Search by stavros on Sunday November 26, 2023 @08:55AM (#38421594)
> Python programmer for 15 years [...] [Python] has no typing

Ok, I have to call this statement out. Mypy was released 15 years ago, so Python has had optional static typing for as long as you've been programming in it, and you don't know about it?

I guess it's going to take another fifteen years for this 2008 trope to die.

Re:VectorDB: Vector Database Built by Kagi Search by aerhardt on Sunday November 26, 2023 @09:02AM (#38421650)
I'm primarily a Python programmer, I love mypy and the general typing experience in Python (I think it's better than TypeScript - fight me), but are you seriously comparing it to something - anything - with proper types like Rust?
Re:VectorDB: Vector Database Built by Kagi Search by kamov on Sunday November 26, 2023 @09:29AM (#38421828)
> I think it's better than TypeScript - fight me

I used Python type hints and MyPy since long before I used TypeScript, and I have to say that TypeScript's take on types is just plain better (that doesn't mean it's good though).

1. More TypeScript packages are properly typed thanks to DefinitelyTyped. Some Python packages such as Numpy could not be properly typed last I checked, I think it might change with 3.11 though. Packages such as OpenCV didn't have any types last I checked.

2. TypeScript's type system is more complete, with better support for generics, this might change with 3.11/3.12 though.

3. TypeScript has more powerful type system than most languages, as it is Turing-complete and similar in functionality to a purely functional language (this could also be a con)

Re:VectorDB: Vector Database Built by Kagi Search by stavros on Sunday November 26, 2023 @09:04AM (#38421662)
> but are you seriously comparing it to something - anything - with proper types like Rust?

Re-reading my comment, no, I did not. I said it has static typing.

Re:VectorDB: Vector Database Built by Kagi Search by Gracana on Sunday November 26, 2023 @09:09AM (#38421698)
> I have to call this statement out.

Why? That was just mean for no reason!

Re:VectorDB: Vector Database Built by Kagi Search by stavros on Sunday November 26, 2023 @09:14AM (#38421733)
Is that mean? Sorry, English is not my native language. I just meant that I have to express my doubt of the veracity of the statement.
Re:VectorDB: Vector Database Built by Kagi Search by Gracana on Sunday November 26, 2023 @11:13AM (#38422679)
Your language is fine (I’ve enjoyed your blog posts too, never gave it a thought that English wasn’t your first language), I just thought it was unnecessarily hurtful to say they must be a phony because they didn’t know something.

But, everybody else seems to agree so maybe I’ve been had.

Re:VectorDB: Vector Database Built by Kagi Search by stavros on Sunday November 26, 2023 @11:22AM (#38422763)
I didn't mean to say they are a phony, just that that statement is inaccurate/poorly thought out.
Re:VectorDB: Vector Database Built by Kagi Search by djbusby on Sunday November 26, 2023 @10:54AM (#38422506)
English is my native language. "I have to call out" is a perfectly fine (and polite) way to express doubt of veracity.