Email or username:

Password:

Forgot your password?
277 posts total
Joshua Barretto

I realised that I'd bought 4 pairs of cheap-ish shoes in 2 years and all of them had fallen to bits within a matter of months, despite repair attempts.

I decided it was probably better for me and the planet to invest a little bit more in a decent pair that will last a few years or more.

What I didn't expect was how comfortable they are and how comparatively uncomfortable the old ones were. I used to think that getting blisters after spending a day walking was normal.

Look after your feet.

nadja

@jsbarretto people claim I spend excessive amounts of money on shoes but they don't realize that I can wear the same shoes 5 years later still and that will look good after that time too! Buying cheap just means you buy twice, and with shoes we *know* we need them.

Joshua Barretto

Is there a way to mute interactions but not replies for a specific post? When something gets popular, it's kind of a pain.

[DATA EXPUNGED]
Joshua Barretto

I always find it funny when getting into arguments with libertarians and they're like "The profit motive is great. See? Look at my phone" and my response is "Dude... I've written some of the code that's running on your phone, and I did it for free. It's a device built on open standards and the unpaid labour of 100,000 unpaid nerds. You are not making the argument that you think you're making".

Show previous comments
DELETED

@jsbarretto @cygnathreadbare profit is a secondary idea, the main idea is having the right incentive structures so that you can have a nice shot at a nicer society by trying to channel individuals towards building it instead of giving all the power to a centrallized superstate/hierarchy. It's about a decentralized algorithm vs a centralized one. Also about giving more value to individual rights over collective rights. But you can implement that in many different ways, trade freedom is just one.

U.Lancier

@jsbarretto
...and almost all that is used to make these things work and was not done by unpaid nerds is based on knowledge gained by science done in institutions financed by the state or by tax cuts.

Profit is thinly veiled theft from the whole of society.
@cakeisnotalie

DELETED

@jsbarretto @stevegrunwell I’m torn between defending libertarians and pointing out that this specific point that they’re making is legitimate and that you’re is parochial and silly.

Joshua Barretto

People always sneer at software rendering. It's definitely true that not only are GPUs faster, but the *gulf* between CPUs and GPUs is proportionally bigger nowadays. But CPUs have still been getting a lot faster, and real-time software rendering of even relatively complex scenes is still viable!

Joshua Barretto

*giggling laughter*

My teapot army is almost assembled.

Pretty happy with this, 45 fps with software rendering. Before the last hour of optimising, it was closer to 20 fps.

Joshua Barretto

This is, should anybody care, one of the rendering demos for my software rendering crate that makes low-level graphics programming fun again: github.com/zesterer/euc

Joshua Barretto

Hmm... This runs faster when I *don't* parallelise it. More work to be done.

Joshua Barretto

Taz didn't know what to think of the train on Sunday. Had the time of his life at the beach when we got there though. #dogsofmastodon

Joshua Barretto

The Covid Inquiry ongoing in the UK is just insane.

It's not just the very obvious malice and disregard for vulnerable people that was present in No10 during 2020: it's also the sheer idiocy displayed by those present, even in pursuing their own maligned goals.

It's not The Thick Of It: it's worse. At least Malcolm Tucker acted with an air of wherewithal.

It's appalling that such anti-social, cripplingly incompetent, and demonstrably ignorant people could find their way to such high office.

Joshua Barretto

(If you're one of these "well acktually neoliberal politics is about promoting awful people to begin with, all power is corrupting" people thinking of replying to this, as if under the belief that this is new and interesting news to me, please don't. This is something entirely different to the norm, so far outside even the neoliberal status quo)

Jan :rust: :ferris:

@jsbarretto You are just doing so much type trickery that even Rust can't keep up! 😉

Joshua Barretto

Honestly, I'm shocked that mastodon.social *only* receives about 20% of new users. It's easy to forget that an even distribution of users is a very unstable equilibrium, and that there will always be factors that push users toward a small number of servers. Given this, the fact that almost 80% chose *not* to go with the 'default' choice is remarkable and demonstrates, I think, a lot of genuine curiosity on the part of new users about decentralisation. Not at all something to be concerned about.

Joshua Barretto

Sometimes open-source work is stressful and time-consuming, and other times folks go far out of their way to help you improve things. Very thankful to this person for literally creating and publishing a brand new tool primarily for consumption by my library, and then opening a PR that integrates it.

Joshua Barretto

Fielding opinions on this because I've not yet heard a clear consensus, despite much back and forth: Do you consider #[doc(hidden)] on a trait method to be sufficient to pull aspects of the trait's implementation out of a crate's public API and hence not subject to semver concerns? I've heard several perspectives on this, and it's a decision that has practical consequences for one of my crates. #rustlang

Anonymous poll

Poll

Yes, doc(hidden) is sufficient
31
40.3%
No, techniques like trait sealing are required
22
28.6%
Don't know / see results
24
31.2%
77 people voted.
Voting ended 31 Oct 2023 at 12:12.
Show previous comments
Alonely0 🦀

@jsbarretto if your private methods leak into public traits, you're doing it wrong; you should be using sealed supertraits. However, I do like the idea of having `doc(hidden)` stuff be implementation details that you shouldn't have to use but are kinda allowed to; thus being semi-private interfaces that aren't subject to semver.

Kornel

@jsbarretto I’d say if you combine it with a scary name like “_private_unstable_dont_use” then doc(hidden) is fine. Method privacy is mainly for humans, so you just need to prevent usage by mistake.

[DATA EXPUNGED]
Joshua Barretto

Something I've been somewhat surprised at playing with building a CPU in VCB is just how fundamentally... simple a CPU is. I've grokked a lot of single components (ALU, memory cells, etc.) for a while, but always assumed there was some 'magic glue' that turned those elements into a system that could perform useful work over time, but there's really not. Once you have a clock loop and the ability to select inputs and outputs on buses, you're golden. Everything else is just tinkering on the side.

Joshua Barretto

Obviously this doesn't apply so much to modern CPUs with deep caches, atomics, superscalar stuff, speculative execution, etc. I'm more talking about low-power embedded chips or older things like the Z80 or early ARM/Acorn chips.

Marc

@jsbarretto for me the "magic glue" realization moment was the bus... (And thanks Ben Eater)

TheZoq2

@jsbarretto no other field has made me go so back and forth between "this is black magic" and "this is super simple"

Learning assembly: how the hell do you build a circuit to do this
Learning about microcode: aha, this is easy
Learning about pipelining: aaaand back to black magic
Building a pipelined CPU: oh, it really is that simple?
Learning about superscalar stuff: black magic again

Joshua Barretto

If you think about it, if statements are just a kind of multiverse geolocation device

Joshua Barretto

"Where am I?"

"Ah yes, I'm in the universe in which the user pressed the 'W' key"

Joshua Barretto

Honestly, the most fun thing about Virtual Circuit Board is figuring out how to make the most of the space you have by compressing everything as much as possible. Quite happy with how small this register bank is, although I realise in hindsight that I missed a few savings.

Joshua Barretto

Virtual Circuit Board is unreasonably fun. I've already built my first CPU and now I'm planning another.

curved-ruler

@jsbarretto
Digital Works was my playground, around 2005, but now I can't find a download link I could recommend, or who wrote it.

John Christensen

@jsbarretto I can't believe I haven't heard of this yet. This looks amazing!

Joshua Barretto

Me, a compiler developer, watching `gen` become a reserved keyword in the next Rust edition: oh no

Joshua Barretto

I'm in two minds, to be honest. New features are good and generator syntax is good, writing iterators by hand today is annoyingly finickey.

Yet, I am really sad that Rust seems to be diving head-first into the function-colouring mistakes of old though. First `?`, then `.await`, and now `yield`.

These are all the same thing, but now we have a million different incompatible concepts to account for as API designers.

Joshua Barretto

An idea arrived in my head and I needed to turn it into a thing

Joshua Barretto

Dog was asleep on me while watching TV. Dog farts, wakes himself up. Proceeds to scrunch up nose and grimace. Walks off to lie next to Sally instead, leaving me in a cloud of his ass gas.

Go Up