Silphendio
> A given branch of the Freedesktop runtime has a 2 year support period after which they are declared EOL.
I guess floats are still mostly deterministic if you use the exact same machine code on every PC.
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.
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.
Overfitting is the problem of having too little training data for your network size.
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.
- 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.
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.
I found this: https://github.com/nanochess/RayTracer
$..book[[email protected]<10]
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) $.store.book[[email protected] < 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)That simple demo took me way too long and all that time is wasted because word2vec simply sucks for this use-case.
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.
If it's about 3D scenery or physics, I would recommend Godot. Just import some 3D models, place them into a scene, add lights and physics, and you need very little coding to have a simple 3D game. You can add complex logic and UI later on.
If the focus lies on UI, NPCs, combat, or inventory, I would recommend GameMaker instead. It's 2D, but it's made for that kind of stuff.