Better HN
topnewbestaskshowjobs
Log inSign up

mkristiansen

87 karma · joined Aug 26, 2022 (4y ago) · 45 submissions

Software Linkedin: www.linkedin.com/in/martinskristiansen
Submissions

comment 3mo ago · link · parent

Notes for whomever might find it interesting :)

2.

Optimizing a GPT-2-Class Transformer on a GPU(martinkristiansen.com ↗)

3 points · by mkristiansen · 3mo ago · 1 comment

3.

Mskql – AI driven adversarial development(martinsk.github.io ↗)

2 points · by mkristiansen · 9mo ago · discuss

comment 1y ago · link · parent

I started wondering what what behind those chatbots that you see on all kinds of websites.

comment 1y ago · link · parent

My favorite part of this is the fact that the Haskell solution is considered "too clever".

6.

Haskell vs. Ada vs. C++ vs. an Experiment in Prototyping Productivity (1994) [pdf](cs.yale.edu ↗)

73 points · by mkristiansen · 1y ago · 95 comments

7.

Freshql Rendering a Website (In C)(freshql.ai ↗)

2 points · by mkristiansen · 2y ago · discuss

comment 2y ago · link · parent

I think doing things like this in a language like C can serve as a reminder that it is, very much posible, to do actual work with minimal tools - In my case emacs and a clang.

comment 2y ago · link · parent

On the first part, yes there are pleanty of wire-compatable redis clones. And while those are interesting, its your second part that I find interesting as well.

The idea of having a strong templating engine with a fast storage backend able to use dynamic content to deliver efficiently renderes websites with minimal hardware.

comment 2y ago · link · parent

I like that idea.

comment 2y ago · link · parent

I'm considering open sourcing parts of the system -- at its core this is a hashtable with wrapped in a tcp server. At its core a system like this is fairly simple :)

comment 2y ago · link · parent

I went over the guidelines and cannot figure out which rule I broke?

"You write that it would be more useful to re-post something else" -- Is your critique just that you didnt like the quality of what I wrote? or is there something more tangable?

comment 2y ago · link · parent

I'm sorry to hear that it read like that to you. I was "slightly" inspired by reading "The Tale of Despereaux" to my kid and was trying to capture the tone of the book. :)

14.

Ultra fast key value store (in C btw)(freshql.ai ↗)

19 points · by mkristiansen · 2y ago · 23 comments

comment 2y ago · link · parent

Fast Math basically means "who cares about standards just add in whatever order you want" :)

comment 2y ago · link · parent

This is really interesting. I have a couple of questions, mainly from the fact that the code is c++ code is about 2x slower than then Numpy.

I had a look at the assembly generated, both in your repo, and from https://godbolt.org/z/76K1eacsG

if you look at the assembly generated:

        vmovups ymm3, ymmword ptr [rdi + 4*rcx]

        vmovups ymm4, ymmword ptr [rsi + 4*rcx]

        add     rcx, 8

        vfmadd231ps     ymm2, ymm3, ymm4

        vfmadd231ps     ymm1, ymm3, ymm3

        vfmadd231ps     ymm0, ymm4, ymm4

        cmp     rcx, rax

        jb      .LBB0_10

        jmp     .LBB0_2
you are only using 5 of the sse2 registers(ymm0 -- ymm4) before creating a dependency on one of the (ymm0 -- ymm2) being used for the results.

I Wonder if widening your step size to contain more than one 256bit register might get you the speed up. Something like this (https://godbolt.org/z/GKExaoqcf) to get more of the sse2 registers in your CPU doing working.

        vmovups ymm6, ymmword ptr [rdi + 4*rcx]

        vmovups ymm8, ymmword ptr [rsi + 4*rcx]

        vmovups ymm7, ymmword ptr [rdi + 4*rcx + 32]

        vmovups ymm9, ymmword ptr [rsi + 4*rcx + 32]

        add     rcx, 16

        vfmadd231ps     ymm5, ymm6, ymm8

        vfmadd231ps     ymm4, ymm7, ymm9

        vfmadd231ps     ymm3, ymm6, ymm6

        vfmadd231ps     ymm2, ymm7, ymm7

        vfmadd231ps     ymm1, ymm8, ymm8

        vfmadd231ps     ymm0, ymm9, ymm9

        cmp     rcx, rax

        jb      .LBB0_10

        jmp     .LBB0_2

which ends up using 10 of the registers, allowing for 6 fused multiplies, rather than 3, before creating a dependency on a previous result -- you might be able to create a longer list.

Again -- This was a really interesting writeup :)

comment 2y ago · link · parent

"Error establishing a database connection" ... Have you considered caching?

comment 2y ago · link · parent

Yes, scientific progress is awesome, when taking a long view -- but it requires that we keep being critical if we want the progress to continue.

19.

New scientific fraud cases worry me: Now also in material science [video](youtube.com ↗)

5 points · by mkristiansen · 2y ago · 2 comments

20.

1.7M requests/second Fast, Blazingly, Webserver(freshql.ai ↗)

4 points · by mkristiansen · 2y ago · 1 comment

21.

FreshQL, a 220k qps single threaded HTTP server(freshql.ai ↗)

1 points · by mkristiansen · 2y ago · discuss

22.

FreshQl, 20x Redis Speeds, single theaded KV store(freshql.ai ↗)

2 points · by mkristiansen · 2y ago · discuss

comment 2y ago · link · parent

This is such a wonderful explanation.

comment 2y ago · link · parent

Casey Muratori's talk about how the mess we find ourselves i. And his suggestions for how we get out of it.

25.

The Thirty Million Line Problem(Casey Muratori) [video](youtube.com ↗)

3 points · by mkristiansen · 2y ago · 1 comment

comment 2y ago · link · parent

A new project to build out a platform for building simple systems. Enabling building without writing code.

27.

Freshql - a System for building systems, almost no code(blog.ajour.io ↗)

2 points · by mkristiansen · 2y ago · 2 comments

12