@hyc@mastodon.social
@hyc@mastodon.social avatar

hyc

@hyc@mastodon.social

CTO Symas Corp., Chief Architect OpenLDAP Project, Musician

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

hyc, to firefox
@hyc@mastodon.social avatar

"Architecture

The scripts in this self-hosting guide will create 9 containers: one TLS-offloading proxy, 6 services which run on various ports, and two supporting ones, which are not publically accessible:" Geeze, all I want is to setup my own #Firefox account server, what is this 9 service containers nonsense? https://github.com/michielbdejong/fxa-self-hosting

And no, I'm not installing node.js natively on any of my machines. https://mozilla-services.readthedocs.io/en/latest/howtos/run-fxa.html

ElleGray, to random
@ElleGray@mstdn.social avatar

Saw this and immediately wondered if the sound a parent made stepping on it in the dark in ancient times is the same noise we'd make today

hyc, (edited )
@hyc@mastodon.social avatar

@ElleGray hmm. Curse words wear out with usage, but I wonder if they recover their potency after a long enough dormancy. https://www.wired.com/story/the-science-of-why-swearing-physically-reduces-pain/

https://pubmed.ncbi.nlm.nih.gov/22078790/

waldoj, to random
@waldoj@mastodon.social avatar

Heat pumps and induction ranges are two strong examples of products that are better environmentally and better products than their gas/oil competitors, for almost everybody. (EVs will get there, but they’re not there yet.)

Because carbon emissions are free, it’s important that low-emission new products be clearly better than the polluting status quo. It’s a high bar, it’s not fair, but I’m glad we have heat pumps and induction ranges as a model.

hyc,
@hyc@mastodon.social avatar

@virtuous_sloth @glennf @timbray @waldoj @nlpbot one step at a time. You can't fix everything overnight. Replacing ICE vehicles with EVs is still an improvement in terms of air and noise pollution, CO2 emissions, and energy efficiency.

hyc,
@hyc@mastodon.social avatar
hyc,
@hyc@mastodon.social avatar
hyc, (edited )
@hyc@mastodon.social avatar

@virtuous_sloth @glennf @timbray @waldoj @nlpbot the same happened in Ireland as well (animation created by https://twitter.com/Conor435_ )

hyc, (edited ) to random
@hyc@mastodon.social avatar

Isn't it wonderful how IDEs like VSCode are so intuitive and make developers more productive... https://mastodon.social/@mcc/112457365765555161

/me exits shell, back into vim ...

snickerbockers, to StarTrek
@snickerbockers@freeradical.zone avatar

the breen primarch from discovery's new season sounds way too similar to Lord Zedd from Mighty Morphin' Power Rangers. Although somehow he's an even shallower and more one-dimensional villain than anything the power rangers have ever faced.

hyc,
@hyc@mastodon.social avatar

@snickerbockers hey, not all villains have depth. Some of them really just want power.

tedu, to random

Rust is clearly superior to go based on the most obviously objective scientific measure: the number of blog posts about how strings work. Nobody writes blog posts about strings in go, pathetic, but a vast literature has been developed to explain the greatness of rust strings.

hyc,
@hyc@mastodon.social avatar

@tedu either go strings are so self-intuitive that nobody bothers to write about them, or they're so incomprehensible that nobody tries to write about them?

hyc, to random
@hyc@mastodon.social avatar

Apparently, writing efficient and portable C code is elitist.

hyc,
@hyc@mastodon.social avatar
pervognsen, to random
@pervognsen@mastodon.social avatar

PSA: If you construct a B-tree with splitting-based inserts then constructing the tree from items in key-sorted order is actually the worst case for packing efficiency. Every node/leaf ends up exactly 50% full except for the right spine. When you bulk-construct a tree from scratch from sorted items, you want to do the construction bottom up and you don't want to use splits. That's linear time and yields an optimally packed tree (everything full excerpt for a partially packed right spine).

hyc,
@hyc@mastodon.social avatar

@pervognsen you don't need to change the build order for in-order inserts. You only need to change the page-split strategy. This is what LMDB's MDB_APPEND mode does for in-order loading. When a page is full we just start filling a new page instead of splitting the current page. It gives effectively linear construction speed without having to introduce a completely new code path.

hyc,
@hyc@mastodon.social avatar

@pervognsen but optimal packing isn't necessarily ideal, particularly if the data is non-consecutive and will have inserts interspersed in the future. LMDB addresses this too.

hyc,
@hyc@mastodon.social avatar

@pervognsen if we see that new records are coming in-order, but MDB_APPEND wasn't specified, we bias the split 70/30 instead of 50/50. So the new page has more room, and the old page can still accept inserts in the future.

hyc,
@hyc@mastodon.social avatar

@pervognsen yeah, the textbook description of B+tree behavior leaves a lot to be desired (and discovered, for a new implementor!) when tossed into the real world. I touched on this in the "Dark Underside" section of my Databaseology talk. https://www.youtube.com/watch?v=tEa5sAh-kVk

jwildeboer, (edited ) to random
@jwildeboer@social.wildeboer.net avatar

With #renewables, even just domestic solar panels and privately installed batteries we can get domestic electricity mostly for free in a few years in many developed regions of the world. The electricity companies will do everything to make that impossible. But their claims of a grid that can't cope only shows their centralised approach that favours big consumers is failing ;)

hyc,
@hyc@mastodon.social avatar

@jwildeboer things are looking pretty good here in Ireland. The govt gave a €2400 grant last year for domestic PV installs (it's reduced to €2100 this year). A single company owns the grid, while other providers use it, and they've been rolling out smart meters to accomodate microgeneration.

With a smart meter you can switch to day/night tariff: 0.36/kWh day, 0.18/kWh night, and sell back surplus for 0.24/kWh. https://mastodon.social/@hyc/111999264556461772

hyc, (edited )
@hyc@mastodon.social avatar

@jwildeboer on a sunny day I produce and sell back 3x what my house uses. This includes an energy diverter that heats my hot water supply with the excess power before sending power back to the grid.

hyc, (edited ) to random
@hyc@mastodon.social avatar

Gag, puke, retch... This sample code for communicating with is abominable. https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html

From gratuitous use of superfluous language features (a cleanup handler, for a single fd, srsly?) to inappropriate use of standard POSIX APIs (using connect+write on a socket that only sends one message and then gets closed, really?) Older compilers don't even support a cleanup attribute, and this code is used as a model of portability??

's version is better.

hyc,
@hyc@mastodon.social avatar

The code we adopted is cleaner, simpler, more portable, and more efficient. https://git.openldap.org/openldap/openldap/-/merge_requests/703/diffs#diff-content-36a775c78596e0a216eae9bc91be74f644d418a5

systemd, blech.

hyc,
@hyc@mastodon.social avatar

@wednesday it's utterly stupid.

hyc,
@hyc@mastodon.social avatar

@wednesday Yeah it's ridiculous.

Anyway, the sample code is highly non-portable as given on their website. They need to either fix it or document which version of C compiler and which revision of C spec they require.

hyc, (edited )
@hyc@mastodon.social avatar

@pid_eins @wednesday Never mind the fact that using it is totally unnecessary?

Read the code we used https://mastodon.social/@hyc/112451470052965728

There was absolutely no need to write such non-portable code.

hyc,
@hyc@mastodon.social avatar

@bluca If you want to write C++, write C++. A competent C programmer doesn't need that bloat.

I haven't touched gitlab in years.

The only reason we're even looking at this garbage is because libsystemd is a security vulnerability that we had to remove.

hyc,
@hyc@mastodon.social avatar

@bluca the idiomatic C code is ~10 lines shorter and doesn't require any non-standard compiler features, so yeah, your version is bloated garbage.

sue, to random
@sue@glasgow.social avatar

The hardest problem in computer science is being born into generational wealth

hyc,
@hyc@mastodon.social avatar

@sue I have a couple non-computer-related hobbies, so it's at most 33% of my personality.

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