@anathema@girlcock.club
@anathema@girlcock.club avatar

anathema

@anathema@girlcock.club

As beautiful and terrible as the dawn.

Trans. Functional-first full-stack programmer. I have approximate knowledge of many things.

Boosts welcome. Don't be a creep.

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

anathema, to random
@anathema@girlcock.club avatar

I don’t like how difficult it is to wake up and get out of bed

18+ anathema, to random
@anathema@girlcock.club avatar

My life feels like a hopeless waste. Transition feels like a mistake. In return for less disassociation I’m more depressed, more self-conscious, more anxious, often too scared to leave the house, just deciding what to wear can break me, mirrors are more upsetting than before. I feel like shit, I look like shit, and I’m tired of fighting against it.

I should have listened to the voice that told me I was too bald to do this.

anathema,
@anathema@girlcock.club avatar

It's probably just depression. I need to touch grass more.

anathema,
@anathema@girlcock.club avatar

The cycle time between "I should give up transitioning and live as a man again" to "damn I need my own pussy" might concern a lesser woman.

anathema, to random
@anathema@girlcock.club avatar

If I must suffer can I at least suffer beautifully?

anathema, to random
@anathema@girlcock.club avatar

Going through another period of having The Thoughts it seems.

Where the thoughts are "actually I was happier and more confident before I transitioned"

My memory says this is true, external observers say it isn't.

Maybe I just wish my life was easy / simple again. Maybe if I wasn't still bald and hairy in wrong places The Thoughts wouldn't come back?

Maybe I just miss being physically strong and the confidence that allowed me to take up physical space?

eniko, to random
@eniko@peoplemaking.games avatar

"Wow eni you sure are posting a lot about covid lately"

Thanks I'm mourning the life I used to have

anathema,
@anathema@girlcock.club avatar

@eniko it was nice at the start of lockdown when it felt like yeah, people do actually care about each other and are willing to mildly inconvenience themselves if it results in less harm to others.

Now I'm just more depressed than ever when I think about the state of things.

whitequark, to random
@whitequark@mastodon.social avatar

inspired by @stargirl, a "no stupid questions" thread!

ask me any question about embedded development, FPGAs, programming languages, life, angel girls, or anything else you think I know about, and I'll do my best to answer them

anathema,
@anathema@girlcock.club avatar

@whitequark @stargirl why are Renesas that way? I have only dealt with a handful of embedded chips but theirs was the most awkward (even more so than the one with different endianness on the i2c and memory)

anathema, to random
@anathema@girlcock.club avatar

Have the start of a migraine and getting sad about the gulf between the cis and trans experiences of womanhood

anathema, to random
@anathema@girlcock.club avatar

Sometimes my girlfriend concerns me

anathema,
@anathema@girlcock.club avatar

@aphistic people outside of America can be into guns :p

eniko, to random
@eniko@peoplemaking.games avatar

i finally found a reason to use ConditionalWeakTable :D

anathema,
@anathema@girlcock.club avatar

@eniko please post the source if you can, that’s something I’ve toyed with in the past but could never quite justify

eniko, to random
@eniko@peoplemaking.games avatar

its kinda weird C# doesn't have an IString interface. i know ReadOnlySpan<char> kinda functions as that interface now, but it's still a little weird to me

anathema,
@anathema@girlcock.club avatar

@deshipu @eniko strings in dotnet are immutable outside of extremely bad idea do not use hacks

anathema,
@anathema@girlcock.club avatar

@eniko at a guess, a bad design decision from 1.0 we are stuck with aside from treating it as IEnumerable<char> etc

anathema, to random
@anathema@girlcock.club avatar

My housemate has “a cold plus sore throat” she contracted after travelling and is coughing dozens of times an hour yet says it’s “unlikely” it’s COVID :bowsette_blonde_angry:

She knows my girlfriend is immunocompromised yet I still had to ask her to wear a mask when she isn’t in her room :/

eniko, to random
@eniko@peoplemaking.games avatar

realizing that almost anything you can do in C# with reflection can be done with a source generator almost as easily

anathema,
@anathema@girlcock.club avatar

@eniko the biggest mistake of source generators was not including a nice API and just telling people “string concat I guess lol”

Like, Expression Trees are right there!

anathema, to random
@anathema@girlcock.club avatar

Guess I’m trying advent of code this year. New job has a leaderboard and I need people to think I can actually write code

eniko, to random
@eniko@peoplemaking.games avatar

Okay so now that I have multiple people who have affirmed my managed arenas idea is a good idea, how do i fork the .NET runtime so I can add them? >_>

anathema,
@anathema@girlcock.club avatar
anathema,
@anathema@girlcock.club avatar

@eniko I’m not sure how useful it is for your actual use case though. I read a blog post about it years ago but I don’t recall eg any easy way to like, invoke the native GC for something you don’t want custom behaviour for. Or any easy way to add custom GC methods that would allow you to add arena management functionality.

anathema,
@anathema@girlcock.club avatar

@eniko something else that might help though is to look at the C# wrapper for OpenCV. Although it’s fully unmanaged objects it has some object for coordinating memory freeing via a disposable object, eg when I wrote some video processing code I’d use one of those for each frame and each buffer allocated via that object was tracked and only disposed at the end of the frame. It’s not the exact same use case but-

anathema,
@anathema@girlcock.club avatar

@eniko maybe some API like ‘Activator.CreateInstanceIn<T>(Guid arenaId)’ would be possible wherein that method calls some new GC function that allocates the object in the arena and marks it as pinned. Returning your Ref type

eniko, to random
@eniko@peoplemaking.games avatar

So I made my arena allocator thing and that's cool and useful, I'll inevitably use it for something because avoiding garbage allocations in C# can be so dang hard

But I'm still thinking about it as a GC optimization structure. There's nothing that says an arena can't act like a normal GCed object that acts as an opaque container for other objects within so that the GC only has to look at the arena and not all of its contents. Doing this actually solves the issue I have with the arena allocator design in that clearing the arena makes all pointers to items within it stale references, which means any such references act as weak references, which is a blemish on the design

But there's nothing saying you can't just wait to free anything in the arena until your tracing GC has determined the arena is garbage, ie nothing has a reference to it (or its contents) anymore. This would make it work exactly like any other part of a tracing GC system

anathema,
@anathema@girlcock.club avatar

@eniko @tess you can write custom garbage collectors for C# now so actually you just need to distribute your own builds of the runtime ;)

vascorsd, to programming
@vascorsd@mastodon.social avatar

Look ma, more languages are adopting the same feature we have in #scala
"_.Property shorthand for (fun x -> x.Property)"

Though everything else in Fsharp seems highly weird and complex.

--

Announcing F# 8 - .NET Blog - https://devblogs.microsoft.com/dotnet/announcing-fsharp-8/

#programming #programmingLanguages #dotnet

anathema,
@anathema@girlcock.club avatar

@vascorsd “highly weird and complex” says the Scala dev? ;)

(A bunch of them are due to C# interop 😭)

rml, to zig
@rml@functional.cafe avatar

out of the new "modern #C" or "C+" or whatever languages like (right), (left) seems to be the nicest, at the language level at least. clean block structure is hugely underrated and otherwise nice languages that take it for granted to ensure you can do

node.* = .{ .data = value, .next = null };
if (this.end) |end| end.next = node
else this.start = node;
this.end = node;

...completely ruins a block's clarity with too much syntax, which is part of what makes C code very confusing depsite being a minimal language (I also think there is something nice about the way that C does it, but its nice because you've seen it forever, not because they were great design decisions)

meanwhile I don't need to read anything about hare or even squint to read the code and understand whats happening.

pub fn Oucue(comptime Child: type) type { [ T const This = @This(); const Node = struct { data: Child, LSS [N } gpa: std.mem.Allocator, Bl el (LN end: ?*Node, pub fn init(gpa: std.mem.Allocator) This { return This{ gpa = gpa, BTN ELE VI iy b pub fn engueue(this: This, value: Child) !void { const node = try this.gpa.create(Node); node. = .{ .data = value, .next = null }; if (this.end) |end| end.next = node // else this.start = node; this.end = node; b pub fn dequeue(this: *This) ?Child { const start = this.start orelse return null; defer this.gpa.destroy(start); if (start.next) |next| this.start = next (AT this.start = null; this.end = null; b return start.data; b iy b test "queue” { var int_queue = Queue(i32).init(std.testing.allocator); try int_queue.enqueue(25); try int_queue.enqueue(50); try int_queue.enqueue(75); try int_queue.enqueue(160); try std.testing.expectEqual(int_queue.dequeue(), 25); trv std.testina.expectEaual(int aueue.deaueue(). 50):

anathema,
@anathema@girlcock.club avatar

@rml this is why I’m pro-significant white space ala fsharp

anathema,
@anathema@girlcock.club avatar

@rml supplemental linting infrastructure?

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

if you're an infrequent command line user -- what text editor do you use if you need to occasionally edit a file on the command line (other than vim/emacs)?

curious about what people use to edit a git commit message etc

if you picked 'other', I'd love to hear what you do in the replies!

anathema,
@anathema@girlcock.club avatar

@b0rk comfortable for basic navigation and editing but not much else

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