Menu

#Struct

35 posts

Feed·
20 of 35 posts
How Glass recovers the unmanaged constraint
📰
0Read More

How Glass recovers the unmanaged constraint

DEV Community: csharp·Zero Heartbeat·1 day ago
#cjwBTsiH
#devtocsharp#devto#dev#struct#type

C# where T : unmanaged has no metadata flag of its own. The compiler lowers it to the value-type constraint bit plus a modreq(UnmanagedType) and an [IsUnmanaged] marker.…

15s
Simulating Madness: How We Forced a C++ Parser to Lie for Backward Compatibility
🖼️
0Read More

Simulating Madness: How We Forced a C++ Parser to Lie for Backward Compatibility

DEV Community: cpp·Flude team·2 days ago
#xs5V3D7R
#devtocpp#devto#dev#anonymous#struct

In C++, entities without a name legally exist—anonymous namespaces and structs. For example, a nested...

15s
Structs Inside Structs in C: Nesting, Memory and container_of (Linux Kernel Examples)
📰
0Read More

Structs Inside Structs in C: Nesting, Memory and container_of (Linux Kernel Examples)

DEV Community: beginners·Vadher Nikunj·9 days ago
#PJem0lZ7
#devtobeginners#devto#dev#include#struct

Nest one C struct inside another, see how the inner struct sits in memory with padding, and how the Linux kernel uses container_of to get the outer struct back.

15s
@State vs @StateObject vs @ObservedObject: The Definitive SwiftUI Comparison
🖼️
0Read More

@State vs @StateObject vs @ObservedObject: The Definitive SwiftUI Comparison

DEV Community: swift·Tech Stack·10 days ago
#kjZ7KNnB
#devtoswift#devto#dev#view#state

SwiftUI gives you several property wrappers for holding state, and picking the wrong one is one of...

15s
Stop regex-ing the LLM's prose
🖼️
0Read More

Stop regex-ing the LLM's prose

DEV Community: go·Matt Cockayne·15 days ago
#t8pG5RbP
#devtogo#devto#dev#schema#model

Stop parsing an LLM's prose with regular expressions. Derive a JSON schema from your Go or Rust type so the schema and the type cannot drift.

15s
Decompiling allows ref struct: the whole feature is one metadata bit, and dropping it silently narrows your contract
📰
0Read More

Decompiling allows ref struct: the whole feature is one metadata bit, and dropping it silently narrows your contract

DEV Community: dotnet·Zero Heartbeat·21 days ago
#tPyWPyjc
#devtodotnet#devto#dev#struct#constraint

The C# 13 allows ref struct anti-constraint produces no method-body IL. It lives entirely in one GenericParameterAttributes bit (AllowByRefLike, 0x20) on a generic parameter — see how Glass.NET reads it back.

15s
My Struct Key Boxed Itself Two Million Times
📰
0Read More

My Struct Key Boxed Itself Two Million Times

DEV Community: dotnet·Sukhpinder Singh·about 1 month ago
#4I0cP0ve
#devtodotnet#devto#dev#struct#fastkey

A dictionary lookup shouldn't allocate, so why was mine showing up in the profiler? The culprit was a struct key missing one interface, boxing itself on every call.

15s
0Read More

When to Prefer `any` over Interfaces?

#golang#redditgolang#metadata#type#fields
Long article (301 words) — no AI summary yet.

Hello, I'm unfamiliar on how I should solve this in go. I receive what I am calling Metadata over http in my handler. I receive the body and decode / unmarshal it into a request DTO something like type MetadataRequest struct { // generic metadata fields…

15s
Go Struct Copying and Pointer Semantics Cause Unexpected `true false` Output for Java/Rust Developers
📰
0Read More

Go Struct Copying and Pointer Semantics Cause Unexpected `true false` Output for Java/Rust Developers

DEV Community: go·Viktor Logvinov·about 1 month ago
#K6RCx8WY
#devtogo#devto#dev#struct#self

Introduction Developers transitioning from Java or Rust to Go often encounter puzzling...

15s
Unix GC Remastered – Moe's VR blog
📰
41Read More

Unix GC Remastered – Moe's VR blog

Hacker News·6 months ago
#HBtTdcoc
#mohandacherir#define#include#vertex#struct

A walkthrough of the rewritten AF_UNIX garbage collector, the CVE-2025-40214 scc_index uninitialised-field bug, and two reproducers.

15s
Golang Design Patterns: Creational Patterns
📰
0Read More

Golang Design Patterns: Creational Patterns

DEV Community: go·Cem AKAN·6 months ago
#AOep0xTM
#dev#return#struct#pizza#func

Hello, Go enthusiasts. Welcome to the first installment of our deep dive into Golang Design...

15s