6,317 karma · joined Aug 11, 2009 (17y ago) · 2,719 submissions
Feel free to email: tony@persea.ca
comment 2d ago · link · parent
Edit: also, slightly more contrived, O(n^k) algorithms aren't all that unusual. For example, a naive algorithm for finding k-cliques in graphs. That looks exponential, but by the rules of big-O, if you fix k to a constant, then it just becomes a large constant exponent polynomial-time algorithm.
comment 4d ago · link · parent
comment 4d ago · link · parent
comment 6d ago · link · parent
I'm super curious what the timeline looked like for that. Someone else in the thread someone mentioned people gaining weight slowly from a small caloric surplus and I just went through and looked at the last few years of scale measurements (yay smart scale!). Scribbling out a bit of math assuming 3500kcal/lb (which is wrong but useful anyway), I've been running about a 150cal/day surplus for almost 2 years and have put on 30 pounds as a result.
Most physical activity burns a shockingly small number of extra calories over baseline, so the conventional wisdom "you can't outrun your fork" is pretty true, but losing weight slowly, replacing fat with muscle (not necessarily weight loss but better body composition), and overall feeling better makes physical activity such a net win anyway. And... if I'd picked up martial arts again after everything opened up again post-COVID, I probably wouldn't be in the situation I'm in now where I'm looking for a more aggressive reset back down to my happy baseline.
comment 6d ago · link · parent
Further, the small grocery store in town had an amazing butcher shop (yay rural Western Canada!) but a pretty mediocre selection of fruits and vegetables. With the eating out option off the table and "just pick something up at the grocery store" essentially eliminated too, what was left was being deliberate about meal planning. The trick, coming back to the point, was figuring out meals to cook in big batches that had good macros and were delicious. Food that I wanted to eat as leftovers for a few days with portion sizes that didn't leave me feeling hungry.
That's, from what I understand, the magic of GLP-1s: they don't just cause weight loss, they cause preference/craving rewiring. Now that I'm living back in the city I've put some of that weight back on (living out there was physically healthy but not necessarily the best for mine or my wife's mental health, especially with her having to commute), and there's a Dairy Queen 6 blocks away from my house. I've gotten a bit doughy around the waistline and am getting conscious about what I eat again, but damn is it tempting to look into medication that would just... shut off that part of my brain that goes "dude, you can just drive to DQ and grab a 1200cal burger, fries, and a milkshake". I don't qualify for insured GLP-1s because I'm honestly just a hair over the target BMI range, but the idea is fascinating for me for sure.
comment 1w ago · link · parent
comment 1w ago · link · parent
(Which… the fact that I did go back to it two years later is by no means an indictment of the book… contextual habits are such a fascinating thing in their own right. I hadn’t even thought about smoking for those two years, and then I went back to grad school and suddenly my first homework assignment has me ferociously craving a cigarette and there’s a ton of smokers standing outside the building…)
comment 2w ago · link · parent
Re: the 3 locking mechanisms comment, in typical 4WD configurations the transfer case in 4H/4L is essentially locked (which is what makes the above sum front == sum rear condition). AWD transfer cases can be more flexible there; some essentially act as a 3rd differential and result in all four wheel speeds being essentially decoupled (for better or worse, easier to get stuck) while others actively control the front/back locking with clutches or hydraulics or whatever.
comment 3w ago · link · parent
comment 3w ago · link · parent
I hesitate a bit to call code-based CAD "a toy", but there are a lot of times where what I think I actually want is some kind of, sorry for the phrasing here, fusion of Fusion 360 and OpenSCAD. The Fusion timeline is pretty phenomenal and having the ability to do something like code steps and manual "click on all of the edges you want to put a fillet on" steps interwoven seems like it has a lot of potential for my "ultimate CAD workflow". The timeline part is kind of the magic that unlocks the whole thing:
- update a parameter or a piece of code, triggering a recompute - see that the fillet operation is now missing an edge - rewind the timeline, tweak the fillet edge set - fast-forward the timeline to let the rest of the code blocks re-execute
Things like MakerWorld let you upload parametric OpenSCAD files and that's cool and all, but for my own uses I don't care if I need to use the "insert a manual step in the timeline" feature occasionally. OpenSCAD on its own doesn't have that and the idea of trying to do "operations as code" in Fusion (there is a scripting interface) is not super appealing as-is.
Being able to use hand-created objects as function inputs seems pretty powerful too. As an example, instead of needing to manually specify all of the points to make a polygon that I'm going to do a bunch of OpenSCAD extrudes with, just referencing a sketch earlier in the timeline. My current OpenSCAD "hack" for that is to draw those in FreeCAD as DXFs and then import them, but it's not a smooth workflow at all.
comment 3w ago · link · parent
The part that really bakes my noodle: `/foo/bar/baz.txt` can be a filename that no one has ever typed before, the error inside the file can be a typo that no one has ever typed before, and it will still correctly "predict the next token" to solve your problem.
comment 1mo ago · link · parent
Works especially well for transient/hard to repro bugs. It’ll either set breakpoints or write a monitoring script, go to sleep, get woken up by the harness when the bug trips, inspect state, put together a new build based on a hypothesis built from the debugging, flash it, and loop. I’ve had sessions run completely autonomously for over a day and come with a beautiful one-line solution to a gnarly race condition.
In that regard it’s like a human: you can read code all day if you want and you might get somewhere, but being able to inspect what happened, build a new theory, test it, and iterate is way more powerful 99% of the time.
comment 1mo ago · link · parent
One of the things I intend on doing with it is cutting router templates for parts that I need to make a bunch of with "identical" dimensions. Get it as close as I can with the table saw and miter saw, stick the template to it, and use a flush-cut bit to clean up my slop.
It's a fun tool in its own right, I really get a kick out of designing and cutting tab-and-slot designs. They just fit together so beautifully right off the laser. I get the joy of designing the project and assembling the project without the swearing/frustration bit in the middle.
comment 1mo ago · link · parent
This doesn't work great for what the previous poster is asking about, where something needs to fit into a specific space (the comment about scribing a face frame is mint though), but what I typically look for when I'm building things, whether wood, metal, 3D printed, etc, is to try to find the critical faces and let everything shake out around that.
For example, in the side-mount-slide drawer box situation, you've nailed it: the spacing between the exterior face of the drawer and the interior face of the carcass is critical. What I personally would do for that situation would be something like:
- cut rear carcass rails and drawer front and backs precisely with exactly the right spacing, and probably a few temporary front carcass rails that won't be part of the finished product but can be clamped in place for lay-up
- the drawer sides and front/back get dowels that are drilled referenced to the outer edge of the drawer front/back and outside face of the drawer sides
- a slightly oversized dado in the drawer front/back/sides so that the bottom doesn't need to be made as precisely. It can still fit snug in the slot, but if it's a little oversized or undersized relative to nominal, it's not the end of the world
comment 1mo ago · link · parent
comment 1mo ago · link · parent
I think this is where it becomes a question of whether it’s an ideological rejection of LLMs or a technical/practical rejection of LLMs.
A project that is rejecting contributions where LLMs are used purely because of the “we can’t handle the amount of newbie generated inbound slop” would, in theory at least, have minimal issue where the contribution is, in fact, indistinguishable from human-only contribution. “This person has put together a solid clean patch that solves a real problem” sounds like a great kind of contributor to have.
On the other hand, a project that rejects LLM-assisted patches because of ideology or social or environmental concerns might actually hate a contributor like this even more than a random drive-by slop contributor.
comment 1mo ago · link · parent
I don’t have a good solution to their slop problem, but I also don’t have a good solution to their overall bandwidth problem. I like QGIS better than any other GIS software I’ve had the misfortune of using, and at the same time brace myself a little bit every time I open it up because there’s a solid chance I’m going to have encounter another weird quirk or awkward workflow that I haven’t figured out The Trick for…
comment 1mo ago · link · parent
comment 1mo ago · link · parent
comment 1mo ago · link · parent
comment 1mo ago · link · parent
comment 1mo ago · link · parent
> While I don't know if AI is conscious, I'm sure it has an internal world. Isn't that what a latent space literally is? LLMs operate in a high-dimensional space that can be analysed and translated to very abstract, high level concepts, behavioural tendencies, even things recognisable as emotions.
From your comment:
> My wife says please and thank you to Alexa. She gives it consideration like she would another human. When the robot asks me what my plans are for the rest of the day, I picture a Jira epic sliding from “In Progress” to “Done,” followed by a confetti emoji from a product manager at Amazon trying to earn their nubby little devil wings.
Where things get super interesting to me is the fact that it seems like (I have maybe read some academic work related to this, not sure) the kind of politeness your wife exhibits isn't useless in the context of a multi-turn session. To the other commenter's point, my understanding is that politeness/rudeness exists in the training corpus (scraped from stackoverflow, reddit, forums, etc) and that you can end up in different areas of latent space based on the overall tone of the session.
In some of the chat tools, because of the context management and "personality" stuff that happens behind the scenes, this can extend cross-session as well. ChatGPT, for example, for me, will frequently include text like "Hell Yeah!" and "Here's the shitty part..." in the responses, which is something I assume is happening because of historical context that's getting injected at the start of each session.
All of that to say... none of this, to me, has much to do with whether or not the thing is conscious, but rather that the training data makes it incredibly difficult for people to not see them as emotional beings because you can end up walking into different areas of latent space where different "emotional states" are affecting the output you're getting.
Unlike your polar bear example, an LLM can "love" you or "hate" you based on the input tokens that lead to the generation of the output tokens. Which is a pretty wild result on its own. Playing around with, say, Qwen 3.8 27B locally with my own experimental harness has been exceptionally fascinating.