@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, (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 , 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.

RustyBertrand, to random
@RustyBertrand@vivaldi.net avatar

Biden announces 100% tariff on Chinese-made electric vehicles

“Ironically, the United States is a country that touts open economy and free trade, but its actions are against its words. It also promises that it does not seek to decouple from China and hinder China’s development, but its practices tell another story,” it said.

https://www.theguardian.com/business/article/2024/may/14/joe-biden-tariff-chinese-made-electric-vehicles

hyc,
@hyc@mastodon.social avatar

@RustyBertrand anyone with half a brain can see that the US's trade bans against China only harm the US. Restricting sales of CPUs and such has only spurred China to invest more in their home-grown designs. Eventually China will not only have no need for any US tech, it will leapfrog far ahead.

It's such an obvious pattern one can only suspect the relevant US policymakers are intentionally sabotaging the US.

jpmens, to random
@jpmens@mastodon.social avatar

I'm the chap who only uses two protocols in curl.

hyc,
@hyc@mastodon.social avatar

@jpmens looks like a typo, RTMPS should follow RTMP

clarissadelune, to random
@clarissadelune@c.im avatar

So I'm watching Invincible season 2 & I'm sadly not live-tweeting because stuff happened & I lost my notes 🤧but as someone who hasn't read the comic... am I crazy to think they might write something romantic between Mark & Eve?

I don't even know if I actually, like, indeed ship them (like I ship Amanda & Rudy) because I liked that the romantic interest for the protagonist was a woman of colour but. idk. It feels like they're going that way

In one way I stopped ignoring my gut "they're gonna romance these characters" feeling just to end up Pikachu shocked it was right but otoh I always fear I'm Seeing Things 😅

hyc,
@hyc@mastodon.social avatar

@clarissadelune can only say "keep watching, you'll see"

ElleGray, to random
@ElleGray@mstdn.social avatar

deleted_by_author

  • Loading...
  • hyc,
    @hyc@mastodon.social avatar

    @ElleGray I'm sorry but that doesn't sound like she's an idiot...

    regehr, to random
    @regehr@mastodon.social avatar

    my parents have some beekeeper neighbors and a colony escaped and found a home at my folks’ mailbox!!!

    hyc,
    @hyc@mastodon.social avatar

    @regehr ^ the above is an excellent quote to take out of context

    hyc, to StarTrek
    @hyc@mastodon.social avatar

    I was recently reminded of this #StarTrek TNG episode that aired April 1 1991 https://en.m.wikipedia.org/wiki/The_Nth_Degree_(Star_Trek:_The_Next_Generation)

    that was the last show before their summer break, and in my boredom over the summer I wrote this story immediately following it. http://highlandsun.com/hyc/TheReturn.txt

    I posted it in parts to Usenet and later it was published in some Trek fanzines...

    ElleGray, to random
    @ElleGray@mstdn.social avatar

    deleted_by_author

  • Loading...
  • hyc,
    @hyc@mastodon.social avatar

    @ElleGray you're welcome, I hope you got to enjoy a few moments today

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