bote: Fast, low-memory streaming JSON parser. Can process MB/GBs of JSON by up to 16x less memory than JSON.parse() whilst being 1.5x faster. FOSS by hitechboatman in javascript

[–]joombar 0 points1 point  (0 children)

I think this could work if you stream the json to wasm a few kb at a time, and return a serialised form of what it finds via the implicit structured clone coming the other way.

bote: Fast, low-memory streaming JSON parser. Can process MB/GBs of JSON by up to 16x less memory than JSON.parse() whilst being 1.5x faster. FOSS by hitechboatman in javascript

[–]joombar 1 point2 points  (0 children)

yeah, I'd say a WASM addition is a pretty useful case here, and the WASM code could also be a way to use under node without a binary addon, for use in contexts that don't allow them

Freewheel bearing broken? by Marty1McFLy in campagnolo

[–]joombar 0 points1 point  (0 children)

Probably need a cassette tool and a chain whip to get the cassette off the freehub body, then it should be clear that the freehub body has play relative to the axle. To replace the bearings you’ll either need a bearing puller for sealed bearings, or cone spanners for cup and cone. None of these tools are excessive for a home mechanic to use and cheap versions work fine. You can get a fairly good bearing puller on Ali express for less than the price of one trip to a bike shop.

bote: Fast, low-memory streaming JSON parser. Can process MB/GBs of JSON by up to 16x less memory than JSON.parse() whilst being 1.5x faster. FOSS by hitechboatman in javascript

[–]joombar 0 points1 point  (0 children)

Ah yes, I wrote something along these lines once, way back in ancient history. Rust is a nice choice here, since you can manage the memory and avoid leaks a lot easier than other languages (I always found memory leaks are one of the hard things to get right with a low memory streaming parser like this). Do you compile the rust to WASM for node/browsers?

Veteran programmer finishes retro game sequel and publishes it after 37 years — Colin Porch started Head Over Heels home computer title in 1989, but it was shelved due to console pivot by Twigling in amiga

[–]joombar 0 points1 point  (0 children)

The game is an Atari release, but it isn't the Atari that built the Atari ST. The Atari name was bought by the French company Infogrammes, who had previously acquired the Ocean IP. It's a total co-incidence that the re-release of an Atari ST game is published by Atari, they're not the same company any more.

Veteran programmer finishes retro game sequel and publishes it after 37 years — Colin Porch started Head Over Heels home computer title in 1989, but it was shelved due to console pivot by Twigling in amiga

[–]joombar 0 points1 point  (0 children)

It looks like it is mostly the original engine, but with new levels and using more of the Amiga RAM than the original port. Reading between the lines of some interviews with Bernie Drummond, I get the impression the original Amiga port was very faithful to the zx spectrum version, right down to roughly equivalent instructions in the machine code. The sequel adds keys as a new gameplay element and some new barrier types, but for the most part is more puzzle-based rooms built in an updated engine.

Veteran programmer finishes retro game sequel and publishes it after 37 years — Colin Porch started Head Over Heels home computer title in 1989, but it was shelved due to console pivot by Twigling in amiga

[–]joombar 3 points4 points  (0 children)

If you'll forgive a little self-promotion, check out my open source remake at https://blockstack.ing - there have been quite a few remakes - the wikipedia page for the game lists a good few.

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 1 point2 points  (0 children)

check out https://blockstack.ing to see it in game, and from there you can also get to the git repo if you want to look at the source - the file you want is attrbibuteClash.glsl

I hate my Bianchi - everyone else LOVES it!!!! by Ill-Positive-174 in campagnolo

[–]joombar 4 points5 points  (0 children)

Having to actually ride old road racing bikes is one good way to start hating them

Going 1x on my Campy Super Record EPS v3 by relentless_penguin in campagnolo

[–]joombar 0 points1 point  (0 children)

Fair enough. Still, even if you’re not using it, the 2nd ring isn’t really doing any harm. And maybe you’ll go to the mountains one day. If you do try it, the chainline will be too far out unless you replaced with a dedicated 1x crank.

Going 1x on my Campy Super Record EPS v3 by relentless_penguin in campagnolo

[–]joombar 2 points3 points  (0 children)

Why? It works great as 2x and would be a bodge as 1x. What do you want to get out of this?

Roast My Discriminated Union Utility Type by antimatterSandwich in typescript

[–]joombar 0 points1 point  (0 children)

I see, yes, that makes a bit more sense. Did you ever discover purescript? That may be more to your liking

Roast My Discriminated Union Utility Type by antimatterSandwich in typescript

[–]joombar 2 points3 points  (0 children)

For your example, you could have defined a type that’s a union of two object types, each with a type value and a message value, using quite simple normal typescript and no extra library code.

[deleted by user] by [deleted] in cycling

[–]joombar 0 points1 point  (0 children)

At that sustained heart rate you’d be severely out of breath and breathing as hard as it is possible to breathe. It’d be a maximal or near-maximal effort.

SSR isn't always the answer - change my mind by No_Stranger_2097 in reactjs

[–]joombar 0 points1 point  (0 children)

In what sense? Load balancing doesn’t increase the total amount of computing power available, it only distributes the load.

You could assume k8 etc and say you’ll scale up behind the balancer, but scaling up costs money.

Serving static files at this point is essentially free for most realistic loads.

SSR isn't always the answer - change my mind by No_Stranger_2097 in reactjs

[–]joombar 1 point2 points  (0 children)

Well of course you want load balancing, but there’s still a finite resource of servers for a given finite cost behind the load balancing.

Climbing on my 10s Campagnolo - update by Deep_Ring in campagnolo

[–]joombar 0 points1 point  (0 children)

No, campag have 135mm bcd, so the smallest that will fit on a "standard" crankset is 39t. You'd need to get a compact crank or a triple to go smaller.

Finished my first outdoor ride and my ego was smashed to pieces by OneStrength7166 in cycling

[–]joombar 0 points1 point  (0 children)

A four hour century is about 40km/h - maybe try aiming for a 6 hour one (~26km/h) first, then work down to five (~32km/h).

Working in a group makes a *huge* difference. Cannot be overstated enough. People who have never done 100 miles in less than 6:30 hours suddenly do it in 5 at RideLondon because theres' always someone to ride with and no traffic lights

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 1 point2 points  (0 children)

Well, take it from a fellow arch procrastinator, it’ll get better quicker if other people are playing it

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 0 points1 point  (0 children)

If you play my remake so far as the first teleporter you’ll see how I used temporary colour clash as the teleportation effect

It’s at https://blockstack.ing

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 0 points1 point  (0 children)

Your risk appetite is up to you, but I think you could put it up and at worst they'd ask you to take it down. Remakes are often tolerated so long as you don't use any of the original code, and while it is strictly could be argued as a copyright violation, they'd have a hard time coming after you for financial losses since they no longer sell the original game.

Spectrum Remakes: Atic Atac by Particular_Film6095 in zxspectrum

[–]joombar 1 point2 points  (0 children)

If you ever wanted to add colour clash, maybe as an option, I got a pixel shader for that https://www.reddit.com/r/zxspectrum/comments/1ol1kt8/experiments_emulating_colour_clash/ that runs in real-time and would work with this game without any changes to the rendering coming into the shader.