dgpy
dgpy on Hacker News
"Priorities" quote:
Mark Zuckerberg said that he wouldn’t say that child safety was his top concern “when I have a number of other areas I’m more focused on like building the metaverse.”
I watched it week ago. Mrs Applebaum explains political situation very clearly. Recommended
It's Kremlin, I wouldn't be surprised if actual goal was to produce semiconductors for military purposes (while trying to convince everyone that entertainment/education/fostering local IT is official goal).
General usage is as in this short video:
https://streamable.com/3oqxhf`QueryGeneratorTestUtil.GenerateCompileAndAssert` internally uses
`Microsoft.CodeAnalysis.CSharp.CSharpCompilation.Create()` and `Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.Create()`. I get an interactive, debuggable source generator development environment this way.
Same as you, initially I used "comments as debugging" hacks but above way is way more efficient.
Thanks. Personally, I found that most efficient way to develop source generators was by utilizing in memory compilation in unit tests. That way, I was able to use debugger to understand AST provided by Roslyn and quickly iterate. Not sure how it works within VSCode but in Rider it was really fine. Also, sometimes Visual Studio and Rider doesn't regenerate code (likely because internally msbuild decides that dlls are up-to-date). Unit test + in memory compilation way described above assured that latest code was really used in test.
Posted by
dgpy on Friday March 08, 2024 @08:20AM
from the show-hn dept.
https://github.com/d-p-y/SogePoco
I wanted to evaluate C# source generators to see whether "compile time PetaPoco like" project can be built with it.
Kremlin's information warfare is a real thing. I highly recommend Jessikka Aro book "Putin's Trolls: On the Frontlines of Russia's Information War Against the World". Kremlin does it on multiple fronts and had significant negative influence.
Posted by
dgpy on Thursday October 29, 2020 @04:55AM
from the github.com dept.
Hi, I'm d-p-y, one of the authors. Hope you find it interesting. If you have any questions please ask.
Posted by
dgpy on Tuesday May 07, 2019 @03:25AM
from the show-hn dept.
Hello fellow hackers,
This is my first comment since I started reading HN around 4y ago. This comment thread mostly summarizes why I'm a lurker: most of the time when I read an article someone already made a point that I would like to make. Most of the time it would be superfluous ( objectively speaking this comment can be treated as such...). To make it slightly worthwhile let me share why I keep on consuming HN and lurking here: What I really like about HN in comparison to reddit is that HN is way less negative/aggressive. Many years ago I once tried there to discuss something - wanted to share my joy about some feature in some library on proggit. Instead of arguments I've received bunch of profanities and name calling. That effectively 'cured' me from participating in comments there. I really really enjoy that such negativity is missing here. That trait plus curated links makes my time spent here much better spent in comparison to alternatives. Thank you guys!