Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

renedudfield, to Kubernetes
@renedudfield@fosstodon.org avatar

Energy use of when it's not doing anything is off the charts. There's about 4 processes that just sit there doing 'something' even when there's zero happening on the cluster. Initialize k8s, start it up and do nothing. Energy being burnt. So if you have less than 8 cores on that box, then it's spamming the scheduler making everything else laggy.

renedudfield, to rust
@renedudfield@fosstodon.org avatar

Lovely sunny day here today. Yesterday it felt like all the gnomes came out of their winter caves. Today pure joy.

Got back from park, and played around a bit with #direct3d and #rust. Got a window up! Found people who have done X11, Wayland and MacOS too. Glad to not be blazing any trails, but didn’t try any of that out.

Decided instead to hack on an old game called Zanthor. Giant castle powered by steam. Want to finish off a few issues with it running on #Python the Third.

renedudfield,
@renedudfield@fosstodon.org avatar

Sound track: Wild Marmalade, core duo.

Mood: all peasants must die. (I did mention it's an evil castle right?)

renedudfield,
@renedudfield@fosstodon.org avatar

Uploaded a quick little video for #Zanthor.

https://youtu.be/vhgqkVwV3_o?si=hjaIg4Ll8F1zaUdk

It was made in a week with #python and #pygame for a game jam in 2006. Was pretty fun! Two of us in Melbourne, and two in Colorado.

renedudfield, to rust
@renedudfield@fosstodon.org avatar

Was crate digging for no_std goodies, because miserable outside today. Morning was great but 🌞

Some cool stuff in there.
And then I saw a yak.
That needed shaving.
And where did the day go?

TehPenguin,
@TehPenguin@hachyderm.io avatar

@renedudfield any fun crates to shout out?

renedudfield, to python
@renedudfield@fosstodon.org avatar

In is there a standard for custom commands? (development scripts/tasks)

Like scripts in package.json with JavaScript or Makefile targets, or custom commands in rust (and alias in rust). For development tasks like format, test, make check... and custom dev scripts.

In python with setup.py you could define custom commands. But now?

Doesn't seem to be a standard for this, just a bunch of separate tools. But I would love to know if I'm missing something for custom commands/scripts.

renedudfield,
@renedudfield@fosstodon.org avatar

For things like format, lint, and such... pre-commit is fine I guess. Not a "standard", but fine.

Which covers a lot of needs. But that still leaves out dev scripts which need to be run occasionally, not after every commit.

Anyway. A combination of pre-commit, scripts and tox covers my needs.

bk1e,
@bk1e@mastodon.social avatar

@renedudfield “poethepoet” is another tool for running development-time tasks.

renedudfield, to python
@renedudfield@fosstodon.org avatar

Reminded that packages don't support patch number pins for dependencies, so things break as time progresses MUCH more because packages are upgraded to breaking new major/minor versions.

You can't specify a major version to rely on. Additionally, because this isn't supported few packages actually even care.

A 1.0.0 depends on B>=1.0.0. Now several months pass. You had pinned A=1.0.0.

Now, B releases 1.0.1 1.0.2, 1.1.0, and 2.0.0.
Which means A==1.0.0 is broken.

Work arounds? /1

renedudfield, to random
@renedudfield@fosstodon.org avatar

Liking Slow Productivity by Cal Newport. Especially the part on defining what even is productivity? A well timed book.

> Pseudo productivity, the use of visible activity as the primary means of approximating actual productive effort.

Which is a measure being used for much of the generative AI research… 1/

renedudfield,
@renedudfield@fosstodon.org avatar

When quality is measured then you have a very different result. The consultant study, and the art student study come to mind. Consultants made more errors, and art students made worse results. By common measures of productivity was up! But the end result was damaging or bad.

Using quantity as a proxy measure for productivity at point of production is a bad idea. As is self reporting on quality (acceptance/thumbs up). All our standard quality techniques should be used.

renedudfield,
@renedudfield@fosstodon.org avatar

@deshipu Sure. “than required” is a good point. It’s also that higher quality can be cheaper. And that working at a higher quality can eventually be quicker. I don’t think old school generic management measurements work. Just simply measuring bums on seats, or activity is not a good proxy really. Knowing that a piece of code meets a goal or not is needed. Using self reported likes, tab completes accepted or even if code churn / defect counts are measured later doesn’t see if a goal is reached.

renedudfield, to random
@renedudfield@fosstodon.org avatar

What is this? I wonder.

renedudfield, to random
@renedudfield@fosstodon.org avatar

"AI" images are autotune for the eyes?

renedudfield, to rust
@renedudfield@fosstodon.org avatar

Error handling in - "it depends".

renedudfield,
@renedudfield@fosstodon.org avatar

Data structures in - "it depends"

renedudfield, to linux
@renedudfield@fosstodon.org avatar

It's really cool, but also a bit weird to me doing a kernel training using at microsoft. 90s me probably wouldn't believe C was still being used. I can see some good ergonomic improvements and statically checking things like reference counting. I have used static checkers for reference counting in C with the CPython API via a compiler plugin, but I'm not sure it is as "sound" as the rust for kernel abstractions. The linux driver future seems joyful.

renedudfield, to python
@renedudfield@fosstodon.org avatar

With so many breaking changes in python 3.12 it should be called 4. Breaking 90% of published code (no distutils) is certainly grounds for a major version change.

nedbat,
@nedbat@hachyderm.io avatar

@renedudfield So maybe the number is 10%?

renedudfield,
@renedudfield@fosstodon.org avatar

@nedbat 100%.

renedudfield, to typescript
@renedudfield@fosstodon.org avatar

I like these two compiler videos by some folks. First https://learn.microsoft.com/en-us/shows/Seth-Juarez/Anders-Hejlsberg-on-Modern-Compiler-Construction "Anders Hejlsberg on Modern Compiler Construction". With some stories going back to turbo pascal style (stop on first error, everything all together) to dragon book style, to C# style with separate IDE services and compiler. To finally one where the compiler is an API... ones that provide modern language services with all the bells and whistles (as of 2016 anyway).

renedudfield,
@renedudfield@fosstodon.org avatar

The main difference with older style compilers were they would often be top down (top down precedence) using mutable data structures (either oo or data oriented). But these ones are using functional techniques like lazy evaluation and immutable data structures. is also mainly about the tooling (user experience) aspects of programming and not the code generation parts. Research and uni courses today are often very heavy on the code optimization phase, which doesn't even exist in TS.

renedudfield,
@renedudfield@fosstodon.org avatar

The next one is https://www.youtube.com/watch?v=X8k_4tZ16qU
"How the TypeScript Compiler Compiles - understanding the compiler internal"

An architecture walk through for in about 45 minutes. So, quite fast. There's a version in 20 minutes as well... but that one is maybe toooo quick.

The interesting thing for me was how it shows that it combines different stages together. Reducing the number of passes over the code, and how to reduce the amount of work that pipelines of processing happens.

renedudfield, to random
@renedudfield@fosstodon.org avatar

Long ago I wrote a piece called: "How to make lasagna out of spaghetti".

This last week it's been on my mind a lot.

Graycot,

@renedudfield This reminds me that I have some lasagna in the freezer. Thanks!

renedudfield,
@renedudfield@fosstodon.org avatar

@janriemer @Graycot that rust-bakery library makes me hungry. Will have to invent some reason to use it. haha

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines