Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:49
    jan-johansson-mr commented #38650
  • 06:46
    jan-johansson-mr commented #38650
  • 06:46
    jan-johansson-mr commented #38650
  • 06:45
    jan-johansson-mr commented #38650
  • 06:44
    jan-johansson-mr commented #38650
  • 05:23
    JoeHz commented #23542
  • Jan 17 22:18
    stephentoub reopened #9071
  • Jan 17 22:18
    stephentoub commented #9071
  • Jan 17 22:17
    Anipik closed #42831
  • Jan 17 22:17
    Anipik synchronize #42831
  • Jan 17 21:42
    danmosemsft commented #41445
  • Jan 17 21:30
    Dotnet-GitSync-Bot labeled #42836
  • Jan 17 21:30
    ahedreville opened #42836
  • Jan 17 21:03
    davidfowl commented #21472
  • Jan 17 21:00
    JeremyKuhne closed #22384
  • Jan 17 21:00
    JeremyKuhne commented #22384
  • Jan 17 20:59
    karelz labeled #22384
  • Jan 17 20:56
    JeremyKuhne commented #21472
  • Jan 17 20:54
    JeremyKuhne labeled #20755
  • Jan 17 20:54
    JeremyKuhne unlabeled #20755
masonwheeler
@masonwheeler
Instead of all those repeated calls to FirstOrDefault(), could you use Attributes.ToDictionary(a=>a.GetType())?
Joseph Musser
@jnm2
Not sure that would look any better and it's gotta be slower?
Don't you need 10-20 items to make dictionary lookups faster, plus building the dictionary?
masonwheeler
@masonwheeler
I've heard several different versions of that. Never seen actual benchmarks to give a solid value.
Joseph Musser
@jnm2
I have, but it was ints and strings IIRC. That's where I first noticed ten seemed a handy number.
Dim Attributes = GetType(AboutBox1).Assembly.GetCustomAttributes().ToDictionary(Function (a) a.GetType())
Dim Company = DirectCast(Attributes.GetValueOrDefault(GetType(AssemblyCompanyAttribute)), AssemblyCompanyAttribute)?.Company
^ think that's what it would look like
it's been 9 years since I phased out of VB, probably syntax blunders
Also, it wasn't FirstOrDefault, but it was doing the same thing.
Joseph Musser
@jnm2
This has been running for 11 days. Has two missing blocks still. Need to decrease the block size and make it more adaptive when it detects that everything is black (hitting max iters, 2^25)
image.png
it was basically done for the last four days but is no longer parallelizing much :(
good thing I don't care how long it takes :D
It got ~3x faster by switching from framework to core
supersampling is 1024x, tiled 16x MSAA
I wanted to see https://en.wikipedia.org/wiki/Burning_Ship_fractal but with higher iterations because in most renders the top is all fuzzy
Paul M Cohen
@paul1956
This is for the About and SplashScreen which runs almost never and I actually only need 5 values. I created my own version of AssemblyInfo.vb that does not duplicate values the Framework one does and cache the values, either when SplashScreen starts or if someone every wants the values. I will see if I can get PR in WinForms if no one else does it.
Paul M Cohen
@paul1956
I looked at the current WinForm Source all the code I needed in already in Master with an interesting implementation.
Dim Attribute As AssemblyDescriptionAttribute =
                        CType(GetAttribute(GetType(AssemblyDescriptionAttribute)), AssemblyDescriptionAttribute)
If Attribute Is Nothing Then
  m_Description = ""
Else
  m_Description = Attribute.Description
End If
Joseph Musser
@jnm2

Yay, completed!

image.png

masonwheeler
@masonwheeler
That... really looks the same as the last one.
Joseph Musser
@jnm2
The last one was missing two blocks
Joseph Musser
@jnm2
Rendering for a different desktop resolution now
The nice part is that now my CPU looks like this
image.png
@CyrusNajmabadi you have extra cores you aren't using, right?
CyrusNajmabadi
@CyrusNajmabadi
they are currently enabled :)
for some perf-testing multi-core scenarios
specifically around lock-contention
low cores not good for that
Cory Nelson
@scalablecory
amdahl's law can be depressing :(
Joseph Musser
@jnm2
I think some version of it applies to the software development process.
Paul M Cohen
@paul1956

Does anyone know the "magic" that WinForms uses to start a (VB) application. There is the code fragment

Namespace Microsoft.VisualBasic.ApplicationServices
    ''' <summary>
    ''' Abstract class that defines the application Startup/Shutdown model for VB 
    ''' Windows Applications such as console, winforms, dll, service.
    ''' </summary>
    Public Class ConsoleApplicationBase : Inherits ApplicationBase

        ''' <summary>
        ''' Constructs the application Shutdown/Startup model object
        ''' </summary>
        ''' <remarks>We have to have a parameterless constructor because the platform specific Application 
        ''' object derives from this one and it doesn't define a constructor.  The partial class generated by the
        ''' designer defines the constructor in order to configure the application.</remarks>

Specifically where is the partial class the designer creates? Is the source available?

Tom Needham
@06needhamt
Is it not in a file called ClassName.Designer.vb?
That’s where it is for C# projects.
Paul M Cohen
@paul1956
There is a ClassName.Form1.Designer.VB which matches the <StartupObject>ClassName.Form1</StartupObject>
in project file but I don't see how it matches up to the comment above.
Paul M Cohen
@paul1956
I am trying to do something before my Startup Form InitializeComponent is called because according to the comment any manual changes I make to Form1.Designer.vb will be lost when I edit Form1.
Paul M Cohen
@paul1956
Just figured it out there is an invisible Sub New in Form1, if I add it explicitly it can add code that is not overwritten.
    Sub New()
        ' This call is required by the designer.
        InitializeComponent()
        ' Add any initialization after the InitializeComponent() call.
    End Sub
HaloFour
@HaloFour
Shame the designer doesn't stick some partial methods in there
Paul M Cohen
@paul1956
@HaloFour yes, I was trying to find how to set the timeout for SplashScreen which the runtime supports (in Framework and Core 5) but there is no longer a UI that I can find.
Vitaliy D
@actorius
Hello
I don't sure, is it right room... but anybody use Workflow Core library?
Markus Schaber
@markusschaber
Is there a public CRC32 implementation somewhere in .NET Core 3.1? (There must be internal ones e. G. for Zip file handling...)
HaloFour
@HaloFour
Requests for new APIs go to the new runtime repository, right?
Wraith2
@Wraith2
@HaloFour yes
@markusschaber there are implementations but nothing public or useful last time i looked for one. I ended up writing on that derived from HashAlgorithm so i could use it in using chains etc.
Markus Schaber
@markusschaber
@HaloFour Maybe you could also request a public CRC32 API while you're at it. :-)
@Wraith2 Is your implementation publicly available?
There are dozens of NuGet packages with CRC32, but it's hard to say which of them are reliable...
Wraith2
@Wraith2
it's pretty simple and all my own so consider it available for your use https://gist.github.com/Wraith2/61e3e3fcc6810d3f74b677d57229057e
Ganbarukamo41
@Gnbrkm41
S.R.Intrinsics.X86.Sse42.Crc32 :wink:
无限风灵
@WuLex
国外.net 流行吗?
.net 和JAVA 哪个工作多?