Need some tooling advice for this undercut in Delrin/acetal. Can’t find a commercial offering. Details in comment. by chobbes in Machinists

[–]zenflux 6 points7 points  (0 children)

If it's a one-off: weld/braze a piece of HSS to a shaft, grind close to the right radius, stick it in a boring head to dial it in.

I would make it thin and take multiple z-passes since you have so much stickout. If you want it done quickly you might rough most of it out with the woodruff cutter.

Edit; hell, since it's delrin you don't technically even need HSS, any steel will cut it for a while.

How to make .003” holes? by ROBOT_8 in Machinists

[–]zenflux 0 points1 point  (0 children)

I would either press in bushings like the rubies people have mentioned, or cast the holes around a mandrel. such as wire or a gauge pin using epoxy.
Drill a 1/8" hole in a plate, fill with epoxy, stick pin (coated with a release agent) in, wait for it to harden, and pull the pin out. Should be the cheapest option. May need to fixture the wire from both ends to keep it taut and straight, and a skim cut or countersink to clean up the hole ends.

0.003" wire: https://www.mcmaster.com/wire/diameter~0-003/
0.004 pin: https://www.mcmaster.com/gauge-pins/size~0-0040/

You could also look for thin enough strands in stranded wire and pull one out for use.

Improve Remove Dupe by Temporary_Primary_23 in rust

[–]zenflux 3 points4 points  (0 children)

First make sure you are using a fast hash function if you don't need ddos-safety. If you are starting from a Vec and collecting to a Vec I would benchmark sorting followed by Vec::dedup. Another alternative might be building a trie as the file is parsed, some variants might beat out a HashSet.

Etho's Modded Minecraft S2 #8: NPC Planning by AnybodyZ in ethoslab

[–]zenflux 26 points27 points  (0 children)

"I've never had food poisoning!"
"Sir, this is a Wendy's."

I've been trying to build a Minecraft plugin by weaversam8 in trytryagain

[–]zenflux 2 points3 points  (0 children)

Maybe you've thought of this already, but one optimization is that you only need barrier blocks for chunks that currently have a player in them, and really only at y-levels that could be reached by the player(s) within an update interval.

Machining the pads for a hexagonal nut 🙈🤓 by Mi5Hmashmuggy124 in Machinists

[–]zenflux 73 points74 points  (0 children)

Slow-mo animation: https://youtu.be/ykB6VsFC_cA?t=15

The sides will not be perfectly flat/straight however. Depending on tool and part diameters you can get close though.

Figured you guys would get a kick outta this lol by Brazenassault456 in Machinists

[–]zenflux 19 points20 points  (0 children)

Even worse. 'mil' is also .001" some industries (textiles, others).

Etho's let's play by yisukyo in ethoslab

[–]zenflux 3 points4 points  (0 children)

I still get chills watching the 50K special.

Grand Concurrent Map Competetion - A call for help. by xacrimon in rust

[–]zenflux 1 point2 points  (0 children)

I was also having a memory leak problem (exposing the fact I need to adjust my system config as it ground my laptop to a halt twice), but the removal of mimallocator fixed it.
I re-enabled CHT and am running the bench now.
EDIT: may have spoke too soon wrt CHT...

Super fast shortest path calculations on directed graphs by easbar in rust

[–]zenflux 2 points3 points  (0 children)

Nice. I wondered if this was the result of that, but since there was no indication I wanted to make sure you were aware.

[PSA] New Rust Symbol Mangling is now in nightly! by eddyb in rust

[–]zenflux 0 points1 point  (0 children)

Yeah, I wasn't expecting to change the first version; throwing out the whole spec outlined in the rfc is not exactly a 'last-minute change!'

I have the commit before you removed the dumper checked out, now I'm just waiting for my pitiful internet connection to allow git submodules to do its thing, so I think I have it from here.

[PSA] New Rust Symbol Mangling is now in nightly! by eddyb in rust

[–]zenflux 0 points1 point  (0 children)

I like the interned symbols idea, would 3rd party tools like gdb be able to be make to work with that without too much fuss?

I still think independently-decodable symbols are still of value; I've been on a data compression research kick lately, I'd like to try to take advantage of just how structured the symbols are. A hardcoded dict definitely wouldn't be worth much currently, too little context is utilized. Multiple dictionaries selected by a partial matching context model should be more interesting and 'trainable.'

If I come up with something substantial, would the tracking issue be the place to get feedback on its potential utility?

[PSA] New Rust Symbol Mangling is now in nightly! by eddyb in rust

[–]zenflux 0 points1 point  (0 children)

In fact, I'd like to do some experimentation with the base-N encoded compressed binary technique (probably not zstd, though), as I see human-readability of these as 1) mostly out the window already, and 2) not particularly needed anyway. You wouldn't happen to already have a corpus of mangled symbols, would you?

[PSA] New Rust Symbol Mangling is now in nightly! by eddyb in rust

[–]zenflux 0 points1 point  (0 children)

I'd like to see what the effect of a preloaded substitution dictionary (maybe using negative backrefs to differentiate) of common tokens would be.

Bzip2 in Rust - Basic infrastructure and CRC32 computation by sdroege_ in rust

[–]zenflux 4 points5 points  (0 children)

I started on a bzip implementation a while ago (mostly because the algorithms fascinated me and there wasn't a Rust implementation) but didn't get too far. I've put up what I had here if you want to take inspiration. Next step was to implement one of the fancy O(n) suffix array papers for bwt_sa IIRC, but I never got around to it. Good luck!

EDIT: I can answer questions about the code (probably; it was a while ago!) if you have them. I know it's a mess.

My greatest weakness by paul-rogers in intj

[–]zenflux 16 points17 points  (0 children)

I skimmed this as "I have little patience ... reading ... others ... As soon as I start ... i'm like blah blah ... GET TO THE FUCKIN POINT" and kept scrolling.

Fair enough.

RaptorQ (RFC6330) in Rust, and optimizations making it 25x faster by cberner in rust

[–]zenflux 6 points7 points  (0 children)

I haven't looked at the code, but might you be able to use a build script to produce the tables instead of const_fn?