HackerTrans
TopNewTrendsCommentsPastAskShowJobs

g0wda

no profile record

Submissions

A Liver on Ice: A liver transplant story

press.asimov.com
1 points·by g0wda·9 месяцев назад·0 comments

comments

g0wda
·в прошлом месяце·discuss
Yeah it is useful. However the problem arises when you share a notebook with someone and they just can’t get it to work either because you forgot to reorder cells or your output depended on some state from a cell you deleted thinking nothing depends on it. You need to restart the kernel and run the notebook all the way through to be sure. Pluto’s reactivity eliminates this issue altogether. It’s a readily reproducible artifact. The functionality you mention would be the default in Pluto btw. Something that reads a sensor will read it only when you run the cell and update all depenents.
g0wda
·6 месяцев назад·discuss
Store fp16 vector blobs in sqlite. Load the vectors after filter queries into memory and do a matvec multiplication for similarity scores (this part will be fast if the library (e.g. numpy/torch) uses multithreading/blas/GPU). I will migrate this to the very based https://github.com/sqliteai/sqlite-vector when it starts to become a bottleneck. In my case the filters by other features (e.g. date, location) just subset a lot. All this is behind some interface that will allow me to switch out the backend.
g0wda
·6 месяцев назад·discuss
Nice! I have my lastfm when I need a throw back. They still allow yearly views
g0wda
·7 месяцев назад·discuss
oh nice! I didn't know that you can just make it use light dom.

  protected createRenderRoot() {
    return this;
  }
And that's what it takes! I like using tailwind/utility classes so for the styles I'd need to have layers of compiled css files rather than one giant one.
g0wda
·7 месяцев назад·discuss
Something about Lit/web components that's not written clearly on the label is the hoops you have to jump through to style elements. If you're using tailwind in the whole app, you just want to pull it into your custom elements without much boilerplate. My main app compiles a single minified app.css, it felt not so modular to now include that in every single component. The alternative is create a subclass that injects tailwind into Lit components. It'd be perfect it just had a switch to inherit everything the page already has.
g0wda
·7 месяцев назад·discuss
If you now have a function where you call this one with an integer literal, you will end up with a fully inlined integer answer!