Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:50
    LakshanF synchronize #28161
  • Apr 22 23:21
    ivdiazsa synchronize #28143
  • Apr 22 21:13
    ivdiazsa closed #28156
  • Apr 22 19:48
    LakshanF synchronize #28161
  • Apr 22 13:04
    LakshanF edited #28161
  • Apr 22 01:06
    agocke synchronize #28161
  • Apr 21 18:15
    LakshanF edited #28161
  • Apr 21 18:07
    LakshanF edited #28161
  • Apr 21 17:45
    LakshanF synchronize #28161
  • Apr 19 23:30
    jkoritzinsky synchronize #28162
  • Apr 19 21:26
    jeffschwMSFT commented #28162
  • Apr 19 21:08
    ivdiazsa edited #28143
  • Apr 19 21:06
    jkoritzinsky edited #28162
  • Apr 19 21:06
    jkoritzinsky review_requested #28162
  • Apr 19 21:06
    jkoritzinsky opened #28162
  • Apr 19 21:06
    jkoritzinsky labeled #28162
  • Apr 19 21:06
    jkoritzinsky review_requested #28162
  • Apr 19 19:32
    LakshanF review_requested #28161
  • Apr 19 14:56
    jeffschwMSFT commented #28161
  • Apr 19 12:46
    LakshanF edited #28161
Hugh Gleaves
@Korporal
the same cursor control code behaves identically.
Joseph Musser
@jnm2
The new Windows Terminal is my console host of choice.
Before that, ConEmu
Egil Hansen
@egil
Hey folks, I cannot figure out what version number to pass to GitHub Actions actions/setup-dotnet@v1 to get 5.0.0-rc.2 installed. Anybody knows?
Joseph Musser
@jnm2
Perhaps 5.0.100-rc.2.20479.15 ("full version" from https://dotnet.microsoft.com/download/dotnet/5.0)?
lukaepti
@lukaepti
How do I find out the path to coreclr and dotnet sdk on Linux+GNU?
John Cullen
@john-cullen
Is there a good resource for reading about how Assembly loading works?
Brent Arias
@brentarias
@john-cullen I learned originally from Jeffrey Richter when he was writing back in the .Net 3.5 days-ish. For .net core the fusion log viewer I don't think works...but I know there is an environment variable you can set that will cause .net core to start spewing out TONS of log info to console-out that tells you in nauseating detail what assemblies it is loading and where it is searching for them.
Brent Arias
@brentarias

If I have a JSON blob like this:

{
 'foo' : {'hey' : 40},
 'boo' : {'there' :50}
}

...what is the fastest way to load this into a dictionary<string,string> with entries like "foo":"{'hey' :40}". So ya, I don't want the object value de-serialized...I want it kept as a string.

Joseph Musser
@jnm2
I think the new .NET Core JSON APIs let you obtain objects as strings and UTF-8 byte spans, but I don't remember how you would do it.
Alex Yakunin
@alexyakunin
Just want to thank anyone who worked on .NET 5 - the perf. boost I see so far is beyond any expectations: https://twitter.com/alexyakunin/status/1326438626901729280
ChinnasamyM
@ChinnasamyM
Yes. Great and awesome efforts. Thanks @alexyakunin for pointing out this. Good explanatory samples
Edinei Cavalcanti
@neiesc
@alexyakunin thanks
Chris Ochs
@gamemachine
What is the idiomatic way to log by application feature? Using Microsoft.Extensions.Logging but in a very custom server setup. So we have an AppLogger class with static methods that proxy to the system wide logger. We have no good reason for separate logger instances. So I threw together a LogScoped method that takes an AppLogScope enum. That grabs a LogLevel constant defined for the scope.
DI would be nice but it's not so simple, multiple context's we would have to create injectors for. So atm DI for logging just not a good bang for buck
Chris Delpire
@Delpire
If I have a .NET Core exe referencing a .NET Framework Dependency, and that .NET framework dependency has another .NET framework dependency, is it possible to redirect that 3rd dependency. We can't use GAC/policy files, but is there some kind of file I can use to do a .NET Framework assembly binding redirect even if I am running in .NET Core 3.1?
Hugh Gleaves
@Korporal
If I install this later, will it automatically also install .Net 5? provide me with C# 9 support?
Carlo Kok
@carlokok
Does anyone know if the runtime actively will block a byref<sometype> in a struct / class or if it's working (unsafely of course)?
Joe4evr
@Joe4evr
you mean as a field?
if so, then yes it'll be blocked, because there is no way to actually express that in IL today
the runtime team has been wanting to introduce something in that space for some time now, and the lang team has just put the corresponding feature in the 10.0 Working Set (which isn't a guarantee of anything, but it does mean they're going to look into it)
Joe4evr
@Joe4evr
also, should the feature make it in next release, then it wouldn't even require unsafe, but it will be limited to use in ref structs (since the compiler needs to guarantee the wrapper object doesn't outlive the ref it points to)
Carlo Kok
@carlokok
hm? Surely you can express it?
Span uses an internal type for a hack workaround, but the runtime team wants to remove that implementation detail
Carlo Kok
@carlokok
hrmm that's nasty. I expected the typesig for byref to just work here.
And of course ByREference<T> is hidden so I can't reuse it.
Joe4evr
@Joe4evr
nor should you
Carlo Kok
@carlokok
yeah well...
Joe4evr
@Joe4evr
like I said, the moment the runtime supports ref fields, ByRef<T> is gonna be removed entirely
Carlo Kok
@carlokok
I need to support .net framework 4.* anyway. so that's not a real option to wait for
I'm trying to model rust's "ref" semantics on the clr
I don't care much if it's safe or not
Joe4evr
@Joe4evr
then I'm afraid you're out of luck
Carlo Kok
@carlokok
Obviously, pointers are a valid option.
But they would require pinning.
Joe4evr
@Joe4evr
hmmmm....
Carlo Kok
@carlokok
This is going to be an interesting project
Joe4evr
@Joe4evr
if you weren't married to 4.X, you could use the new GC APIs to allocate your objects on the Pinned Heap (so there's no need to manually pin)
Carlo Kok
@carlokok
One (other) option would be to use the regular allocation apis (marshal.alloc*) as rust doesn't do interfaces and classes, only structs.
But it would become a c++ level language pretty quickly.
Joe4evr
@Joe4evr
¯\_(ツ)_/¯
Carlo Kok
@carlokok
hahah :) sorry
It's getting a bit off topic
thanks for the help
Joe4evr
@Joe4evr
maybe build your core API in C++/CLI then? :laughing:
Carlo Kok
@carlokok
i have a compiler with vb, c#, pascal, java, go as frontends running on .net
I want to see if it's possible to map rust now
Joe4evr
@Joe4evr
yea.... I sincerely doubt it