Better HN
topnewbestaskshowjobs
Log inSign up

Silphendio

33 karma · joined Jul 24, 2023 (3y ago) · 38 submissions

Submissions

comment 5mo ago · link · parent

It's a 3 bit quant of Llama3-8B. I'm sure there are use-cases for that, but it's useless when it comes to tool calls or coding and I wouldn't trust it's factual accuracy either.

comment 6mo ago · link · parent

From the flatpak docs:

> A given branch of the Freedesktop runtime has a 2 year support period after which they are declared EOL.

comment 7mo ago · link · parent

You're right, I must have gotten that mixed up. Sorry.

I guess floats are still mostly deterministic if you use the exact same machine code on every PC.

comment 7mo ago · link · parent

You don't need to tun the whole game at a fixed framerate, only the physics. That's actually common practice.

The bigger problem is that floating point math isn't deterministic. So replays need to save key frames to avoid drift.

Quake used fixed point math.

comment 9mo ago · link · parent

Nim compiles to C, and it has a compiler iotion that does this.

comment 10mo ago · link · parent

Both of those flavors are based on the CommonMark spec. There's just some extra features and some forbidden html.

comment 1y ago · link · parent

Choosing names like `App`, `ok` or `get` in a language without namespaces is a bold choice.

comment 1y ago · link · parent

JSON 5 is pretty good. It just needs to make the top-level brace and all commas optional, and add proper support for multi-line strings (writing '/n/' at the end of every line doesn't count).

Allowing only valid JavaScript identifiers to be unescaped keys is also a bit quirky (You have to quote reserved keywords).

But they will never change any of that because it would break JavaScript compatibility.

comment 1y ago · link · parent

I think the problems with big network were diminishing gradients, which is why we now use the ReLU activation function, and training stability, which were solved with residual connections.

Overfitting is the problem of having too little training data for your network size.

comment 1y ago · link · parent

There's a German Wikipedia page: https://de.m.wikipedia.org/wiki/Coinhive

comment 1y ago · link · parent

It does work on mobile,but the instructions are cut off.

And it doesn't play like normal solitaire. You can move any card, no matter what's on top of it. That makes it much easier.

comment 1y ago · link · parent

I find json5 much better than json, but it has still many of the same annoyances.

- instead of trailing commas, how about making them completely optional? It's not like they are needed in the first place.

- curly braces for top-level objects could be optional too.

- For a data exchange format, there should really be a standard size for numbers, like i32 for integers and f64 for floats.

- parsing an object with duplicate keys is still undefined behavior.

comment 2y ago · link · parent

At the very least, division by zero should not be undefined for floats.

comment 2y ago · link · parent

Shouldn't it be `round(x/5)*5` ?

comment 2y ago · link · parent

JSON??

I don't want to programm anything without comments.

I guess you can easily convert from use yaml or json5, but all the examples are still in json.

comment 2y ago · link · parent

AFAIK a steam ban in this case just means that you can't buy stuff or activate keys anymore. You should still be able to play previously purchased games.

comment 2y ago · link · parent

You can still make stuff that runs from the boot sector. You just won't have access to fancy graphics drivers.

I found this: https://github.com/nanochess/RayTracer

comment 2y ago · link · parent

Child porn is already heavily "regulated". Producing the stuff is illegal and AI service providers must take steps to prevent it.

comment 2y ago · link · parent

How useful is such a feature in reality? On smaller devices, the web brower almost always covers the whole screen, and even on big monitors, it usually touches at least one corner.

comment 2y ago · link · parent

You mean searching for keys?

  $..book[?@.price<10].title
Yeah, I don't think javascript has that function in the standard library. Writing one is not super complicated, but having to put that into every file (or importing it) is not ideal.

  find_key = (data, key) => {
    if(data instanceof Array){
     return data.map(x=>find_key(x, key)).flat()
    }
    if(data instanceof Object){
     let res = Object.keys(data).map(x=>find_key(data[x], key))
     if(data.hasOwnProperty(key)){
      res.push(data[key])
     }
     return res.flat()
    }
     return []
   }

  find_key(data, "book").filter(x=>x.price < 10).map(x=>x.title)

comment 2y ago · link · parent

JSON Path:

  $.store.book[?@.price < 10].title
Python:

  [x['title'] for x in data['store']['book'] if x['price'] < 10]
Javascript:

  data.store.book.filter(x=>x.price < 10).map(x=>x.title)

comment 2y ago · link · parent

Someone did actually create a scripting language specifically designed to work with rust: https://rhai.rs/

comment 2y ago · link · parent

I use the binary package because Ubuntu only provides a Snap, and that lacked some permissions I wanted (reading installed html docs).

comment 2y ago · link · parent

It's worth noting that Stable Diffusion XL uses the OpenRAIL++-M License, which removed the update obligation.

comment 2y ago · link · parent

If the schema allows union types, I don't want to deal with unquoted strings.

comment 2y ago · link · parent

I thought this would be very simple to do, so I tried it. https://silphendio.github.io/word2vec_alchemy/

That simple demo took me way too long and all that time is wasted because word2vec simply sucks for this use-case.

comment 2y ago · link · parent

Matplotlib isn't very friendly to casual users.

For even the simplest possible plot, I have to create a subplot and axis.

Sometimes I'd like to just plot a function. I don't want to initialize arrays for that.

It's easy to forget that I have to `import matplotlib.pyplot`

I don't need to plot things often, but whenever I use matplotlib, I always have to spend a few minutes to look up how to use it.

12