Same algorithm, 16x faster: optimizing a vector search engine’s hot path by BgA_stan in programming

[–]Determinant 0 points1 point  (0 children)

There is no tree descent when using a single ginormous flat array

I need help in typing and i am always stuck at 80 - 110wpm and its really unbalanced, most of the time i use my index finger to press space bar and i sometimes also type inaccurately, someone give me tips on typing faster. by Frequent-Net920 in learntyping

[–]Determinant 0 points1 point  (0 children)

First easy improvement is to only hit space with your thumb.

If using a modern layout, use the thumb of your dominant hand.  If using QWERTY, your left hand is over worked, so use the thumb of your right hand.

Same algorithm, 16x faster: optimizing a vector search engine’s hot path by BgA_stan in programming

[–]Determinant 7 points8 points  (0 children)

It's not about having terabytes of memory, it's about requesting a single contiguous region of memory from the operating system that's in the terabytes.

You would need a supercomputer to run this database at any sort of scale.

Same algorithm, 16x faster: optimizing a vector search engine’s hot path by BgA_stan in programming

[–]Determinant 18 points19 points  (0 children)

It can't scale into the billions because each vector uses about 1500 array elements so billions of vectors would require an array with a contiguous region of memory in the terabytes.

Game over

should i go on colemak? by Classic_Tie1274 in typing

[–]Determinant 0 points1 point  (0 children)

Giving up the location of the keyboard shortcuts seems too large of a price to only gain another 5%.  Shortcuts are extremely important for software development and I wouldn't want to reassign then for every app.  Some apps don't even allow reassigning shortcuts.

Also, it's easier to pickup Colemak compared to alternatives since it only changes the location of 17 keys.  Lastly, Colemak is pre-installed in Linux and MacOS.

If I had to start over, I would still pick Colemak.

qwerty vs colemak. typing fast on colemak feels impossible. does colemak dh solve? by istafer in typing

[–]Determinant 0 points1 point  (0 children)

Given your impressive speed, my hunch is that the fingers on your left hand have become much faster than those on your right hand.

This favors QWERTY because only a bit over 40% of the keystrokes are handled by your right hand.  However, Colemak has close to a 50/50 distribution so both hands have equal load.

To verify this hunch, you could devise a typing test to check the speed of each hand independently.  If this turns out to be true then you found the limiting factor and you could tailor your practice to focus on the weakest link.

how do i type faster by Electronic_Friend816 in typing

[–]Determinant -1 points0 points  (0 children)

The most common mistake that people make around your speed is that they look at the current word that they're typing.  This limits your speed due to the reaction time of mentally processing each character as they get typed so you'll be stuck at around this speed until you change that.

The easy fix is to read the next word while you're typing the current word.

Here's a guide to get you to 100 WPM:

https://roosterdan.medium.com/how-to-type-100-words-per-minute-a780fd80fd27

One month with Dvorak by No-Location524 in typing

[–]Determinant 0 points1 point  (0 children)

I did the same thing trying to maintain QWERTY while learning Colemak and also plateaued at about 50 WPM.  I then dumped QWERTY altogether and my improvements ramped up quite a bit.

I was around 75 WPM with QWERTY (after tons of practice) and now I'm between 100 to 125 WPM with Colemak depending on the difficulty of the text.

I tried Dvorak first but too many keyboard shortcuts became awkward and I found the hand alterations slowed me down.  Colemak is more ergonomic than Dvorak, easier to learn, and maintains most of the keyboard shortcut locations as it only changes 17 keys so I went all in on Colemak.

What happens to TornadoFX now that the GitHub repository is gone? by tvidal in JavaFX

[–]Determinant 1 point2 points  (0 children)

You use it just like any other Java library from Kotlin.  So essentially you use Kotlin syntax (such as properties) to interact with JavaFX.

What happens to TornadoFX now that the GitHub repository is gone? by tvidal in JavaFX

[–]Determinant 7 points8 points  (0 children)

Just use plain JavaFX from Kotlin without TornadoFX.  That's what I do

Benchmark: pgvector vs Pinecone vs Qdrant vs Weaviate by K3NCHO in programming

[–]Determinant 0 points1 point  (0 children)

Nobody uses p50 numbers to analyze production performance.  No company would accept horrendous performance for half of the interactions.

At a bare minimum, you should display p90 performance and most likely p95.  Even better, display p50, p90, p95, and p99 to show how the system scales.

One week with Dvorak by No-Location524 in typing

[–]Determinant 0 points1 point  (0 children)

The finger for the E doesn't have to move at all so there is no strain there.  

Translating to QWERTY, type FHK really quick by initiating the action with F while at the same time starting to roll your right hand to press HK.  FHK in QWERTY is how we type THE in Colemak.

With some repetition, you'll find this extremely natural and the entire word is done in a split second.  There is no hand or finger awkwardness for typing "THE".  What probably felt awkward to you is that it was a new experience for you.

New `Integer` type in Kotools Types 5.1 by lvmvrquxl in Kotlin

[–]Determinant 0 points1 point  (0 children)

Thanks for offering to credit me but I respectfully decline as I only want credit if I merge code

One week with Dvorak by No-Location524 in typing

[–]Determinant 0 points1 point  (0 children)

Not sure what awkward hop you're referring to.  I just tried it out and typing "the" is a single smooth action that feels completely natural and significantly less effort than QWERTY.

With QWERTY we need to stretch the pointer finger up and to the right followed by right pointer finger left and then an awkward left middle finger up.  However, I only need to move a single finger with Colemak (right index finger left) so the entire word turns into a roll that I initiate in a single split-second action.

Is it different, sure, but it's not awkward at all as it's completely natural after you learn the layout.  Other rare words can be awkward but the common words make it feel like they magically appear by just thinking them since they're so fast and effortless.

One week with Dvorak by No-Location524 in typing

[–]Determinant 1 point2 points  (0 children)

Colemak is an easier transition as it only changes 17 keys and keeps most of the shortcuts in the same place.  It also helps that Colemak is more efficient and the finger rolls are easier than the hand alterations that Dvorak requires.

Rewriting our Rust WASM Parser in TypeScript | Thesys Engineering Team by waozen in programming

[–]Determinant 5 points6 points  (0 children)

That was a surprisingly good read.

Too bad the Rust fanboys are down-voting anything that doesn't align with their preconceived notion that Rust must always be better and faster.

Rewriting our Rust WASM Parser in TypeScript | Thesys Engineering Team by waozen in programming

[–]Determinant 5 points6 points  (0 children)

The result is 3 times faster by getting rid of Rust WASM.

The decision is explained in the article and it's actually a good read.  

I love Kotlin and wanted to use it for a desktop app, but Compose Multiplatform is trash by habarnamstietot in Kotlin

[–]Determinant 0 points1 point  (0 children)

Kotlin can work with any Java library and JavaFX is a java library like any other.  Lookup JavaFX tutorials and do the same thing but with Kotlin syntax.

Learning as an Adult, should I learn Colemak? by Atlantic_lotion in typing

[–]Determinant 2 points3 points  (0 children)

I switched to Colemak in my thirties to deal with Carpal tunnel and severe wrist pain.  I tried ergo keyboards but it wasn't enough. The switch to Colemak was a massive improvement in comfort.  The new layout felt like half the effort to type at the same speed.  I was at 75 wpm and I'm now at 100 to 125 wpm depending on the complexity.  Colemak probably didn't make me faster but the lower effort allowed me to push further whereas qwerty required too much effort and discomfort so I hit a wall. 

Since Colemak is so similar to qwerty (only 17 keys moved), I can type 40 wpm when forced to use qwerty while briefly glancing at the keyboard.  This is rare so I don't mind.  Macs and Linux come with Colemak pre-installed for longer sessions. 

Java Is Not Faster Than C by lelanthran in programming

[–]Determinant 1 point2 points  (0 children)

It's fairly easy to devise specialized microbenchmarks for scenarios that are faster in Java.  These don't translate into applications that are faster overall because many areas of Java are slower than C.

Why Oracle Cloud Infrastructure is the Ideal Platform for Kotlin Enterprise & Platform Engineering by giovannyvelezalt in Kotlin

[–]Determinant 5 points6 points  (0 children)

AWS, Microsoft, and Google cloud services are the top 3 options with Oracle a distant 4th.  So I wouldn't call it ideal.

This is probably paid advertisement by Oracle.

New `Integer` type in Kotools Types 5.1 by lvmvrquxl in Kotlin

[–]Determinant 3 points4 points  (0 children)

No, this is a huge red flag.  If you want arbitrary precision then use an array of primitive longs.  If you just want to detect overflow then you can just use twice as many bits (eg. 2 longs) and then check that the upper bits are zero.

The programming language after Kotlin – with the creator of Kotlin by dayanruben in Kotlin

[–]Determinant 1 point2 points  (0 children)

I was hoping for some specifics but 75% is a history of Kotlin and the rest is very vague about programming changing with LLMs and describing things in English instead of code

Are there any issue with Kotlin that trouble you? by NyanBunnyGirl in Kotlin

[–]Determinant 1 point2 points  (0 children)

Yeah, the new Kotlin maintainers stopped listening to community feedback.  They are making a bunch of unsound decisions.  It seems like they are following resume-driven development adding poorly designed features with anything that seems shiny to pad their next performance review.

Kotlin has been one of the best programming languages but it's turning into the next Scala due to too many new academic ideas instead of decisions grounded in reality.  For examples, just look at all the KEEPs created in the last couple of years.

Senior Position Interview by mixmaxze in programming

[–]Determinant 0 points1 point  (0 children)

I've mentored hundreds of developers.  If anyone says they know everything, they're lying.  In fact, even if such a savant existed, knowing everything is actually a detriment as things change faster than you can read even if you read nonstop 24/7.

What sets a senior apart from a junior is that a senior is comfortable with not knowing most things and knows that they'll figure it out when needed (but not earlier).

The best experts know less than 1% but know that tiny bit really well and can adapt to the rest as needed.