frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Why Custom Attributes in .NET Give Me Nightmares

https://blog.washi.dev/posts/custom-attributes-and-why-they-suck/
16•jandeboevrie•2d ago

Comments

pjc50•1h ago
.. if you're trying to parse the assemblies by hand for some reason. If you're just trying to handle them with reflection none of this is an issue.
jve•1h ago
> If you're just trying to handle them with reflection none of this is an issue

But maybe indicates on how expensive that reflection call can be? Reading multiple .dlls ?

pjc50•8m ago
I would expect DLL parsing to be a one-off cost at assembly load time. Certainly that handles all the stuff detailed under "Assembly resolution". Assembly resolution is also recursive, so I would expect that to simplify "type tree traversal" by pre-stuffing all the types into a Dictionary.

That also necessarily has the parser for all the "System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" machinery.

>> "While C# does not support types with weird symbols, it is possible to have type names with spaces, commas, brackets, unprintable characters, and more. This is also heavily (ab)used by code obfuscators."

.. hmm. I didn't know that.

I will note that there is a milder version of this problem which you might encounter if you're trying to write a dotnet source generator, which is run inside the Roslyn compiler. You then need to remember that the types in the code being compiled are not directly visible from reflection, you have to ask the compiler to look them up for you in the parsed data.

These cases are easy:

    - types in the netstandard2.0 standard library
    - types in the assembly currently being compiled
This case is not:

    - types in assemblies in the same project which the current assembly depends on
I ended up avoiding handling that at all. It does set some limits on what is easily done with source generators.

(by the way, someone sufficiently dedicated should be able to find the corresponding Microsoft loader code: it's all in the dotnet github)

Please don't spam people looking for employment. It's just cruel

417•IliaLitviak•1h ago•109 comments

Adafruit Receives Demand Letter from Fenwick Legal Counsel on Behalf of Flux.ai

https://blog.adafruit.com/
336•semanser•5h ago•117 comments

Why Janet? (2023)

https://ianthehenry.com/posts/why-janet/
286•yacin•5h ago•136 comments

Fidonet: Technology, Use, Tools, and History (1993)

https://www.fidonet.org/inet92_Randy_Bush.txt
28•BruceEel•1h ago•7 comments

A walking tour of surveillance infrastructure in Seattle

https://coveillance.org/a-walking-tour-of-surveillance-infrastructure-in-seattle/
40•eustoria•1h ago•6 comments

Apple rejected my dictation app for using the accessibility API

https://www.mitmllc.com/blog/apple-rejected-my-dictation-app/
164•RZelaya•3h ago•103 comments

You Don't Love Systemd Timers Enough

https://blog.tjll.net/you-dont-love-systemd-timers-enough/
130•yacin•5h ago•72 comments

CSS-Native Parallax Effect

https://dan-webnotes.com/posts/2026-06-02-css-native-parallax-effect/
75•dandep•4h ago•36 comments

The newest Instagram “exploit” is the goofiest I've seen

https://www.0xsid.com/blog/meta-account-takeover-fiasco
2013•ssiddharth•22h ago•446 comments

Muxcard, a dyi credit card size computer

https://github.com/krauseler/muxcard
161•sargstuff•2d ago•46 comments

Can the stockmarket swallow Anthropic, SpaceX and OpenAI?

https://www.economist.com/finance-and-economics/2026/06/01/can-the-stockmarket-swallow-anthropic-...
536•1vuio0pswjnm7•15h ago•917 comments

Great Question (YC W21) Is Hiring Applied AI Interns

https://www.ycombinator.com/companies/great-question/jobs/J5TNvQH-ai-engineer-intern
1•nedwin•3h ago

Reviving Teletext for Ham Radio

https://spectrum.ieee.org/reviving-teletext-for-ham-radio
11•yarapavan•3d ago•0 comments

macOS needs its grid back

https://blog.hopefullyuseful.com/blog/macos-needs-its-grid-back/
334•ranebo•13h ago•196 comments

Webcam head tracking, webcam to control in‑game FOV

https://www.openfov.com/
43•mwit2023•3d ago•28 comments

Show HN: Eyeball

https://eyeball.rory.codes/
66•mrroryflint•5h ago•31 comments

CQL: Categorical Databases

https://categoricaldata.net/
73•noworriesnate•3d ago•22 comments

Martin Scorsese Is Embracing A.I

https://www.nytimes.com/2026/06/02/business/media/martin-scorsese-artificial-intelligence.html
40•stephen37•1h ago•37 comments

Expanding Project Glasswing

https://www.anthropic.com/news/expanding-project-glasswing
50•surprisetalk•1h ago•48 comments

Stop Ruining It

https://seths.blog/2026/06/stop-ruining-it/
68•herbertl•5h ago•31 comments

OpenAI frontier models and Codex are now available on AWS

https://openai.com/index/openai-frontier-models-and-codex-are-now-available-on-aws/
327•typpo•17h ago•111 comments

Chipotlai Max

https://github.com/cyberpapiii/chipotlai-max
304•nigelgutzmann•15h ago•51 comments

Why Custom Attributes in .NET Give Me Nightmares

https://blog.washi.dev/posts/custom-attributes-and-why-they-suck/
16•jandeboevrie•2d ago•3 comments

Strace-ui, Bonsai_term, and the TUI renaissance

https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/
101•matt_d•10h ago•57 comments

Debug Project

https://debug.com/
256•Eridanus2•18h ago•100 comments

CS336: Language Modeling from Scratch

https://cs336.stanford.edu/
522•kristianpaul•1d ago•49 comments

AI Agent Guidelines for CS336 at Stanford

https://github.com/stanford-cs336/assignment1-basics/blob/main/CLAUDE.md
463•prakashqwerty•22h ago•143 comments

Should you normalize RGB values by 255 or 256?

https://30fps.net/pages/255-vs-256-division/
295•pplanu•21h ago•124 comments

How is Groq raising more money?

https://www.zach.be/p/how-the-hell-is-groq-raising-more
137•hasheddan•13h ago•59 comments

Fooling around with encrypted reasoning blobs

https://blog.cryptographyengineering.com/2026/05/29/fooling-around-with-encrypted-reasoning-blobs/
126•supermatou•4d ago•30 comments