Account
ASTU CSE & SE

ASTU CSE & SE

๐ŸŽ“ Computer Science & Engineering | ASTU The community for CSE and SE At ASTU ๐Ÿ’ป Discuss technology, share academic resources, exchange ideas, explore programming, AI, software development, and discover opportunities.

Username
@cse_astu
Subscribers1,310
Avg views per post, 7d319last 7 days
ERR24.34%last 7 days

Average views per post by day

By publication day

Show as table
DateAvg views per post
Nov 24, 2026413
Nov 25, 2026445
Nov 26, 2026388
Nov 27, 2026347
Nov 28, 2026271
Nov 29, 2026232

Advertising

Ad posts, 30 days1latest
Avg views per ad post119โˆ’64.1% vs other posts
  1. #ad https://t.me/openinc119
Advertised
  • @openinc

Most viewed this month

  1. Views499
    Forwardsโ€”
    Reactions1
    Commentsโ€”
  2. Did you know that your .NET app recompiles itself every time it starts? If you write C#, this is what happens when you run dotnet App.dll and your app shows the first line. dotnet build stops at IL (Intermediate Language), a bytecode no CPU knows how to execute. The runtime turns it into machine code one method at a time while the app runs, and keeps it only in memory. So the work repeats on every start. This is the full path: ๐Ÿญ. ๐—•๐˜‚๐—ถ๐—น๐—ฑ The C# compiler, called Roslyn, compiles Program.cs to IL and merges it, along with metadata, into App.dll. Next to it you get your NuGet .dlls, deps.json and runtimeconfig.json. ๐Ÿฎ. ๐—ฆ๐˜๐—ฎ๐—ฟ๐˜ dotnet App.dll invokes hostfxr, which picks the .NET version from runtimeconfig.json. hostpolicy then reads deps.json and builds the TPA list. TPA means trusted platform assemblies, your dependencies plus the framework. Then it starts CoreCLR, the real .NET runtime. ๐Ÿฏ. ๐—Ÿ๐—ผ๐—ฎ๐—ฑ All assemblies get loaded into an AssemblyLoadContext. The Default context holds the TPA assemblies, and your own contexts can isolate plugins and unload them. App.dll and the core library load right away. The rest loads lazily, when the JIT compiles a method that needs it. ๐Ÿฐ. ๐—ง๐˜†๐—ฝ๐—ฒ๐˜€ The type loader builds a MethodTable for each type, with its size and the v-table slots for virtual calls. Methods start as prestubs, placeholders that invoke the JIT on the first call. Static constructors run the first time a type gets used, not when it loads. ๐Ÿฑ. ๐—˜๐˜…๐—ฒ๐—ฐ๐˜‚๐˜๐—ฒ The first JIT pass is Tier 0, fast with little to no optimization. After 30 calls, the runtime re-JITs the method with instrumentation to record which code paths and types show up most. This is called Dynamic PGO, and is default since .NET 8. After 30 more calls, a background thread JITs it again as Tier 1, fully optimized. A hot loop doesn't wait for the method to return. OSR (on-stack replacement) switches it to optimized code mid-method. ๐Ÿฒ. ๐— ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜† JITed code lives in the code heap. Objects start in Gen 0 on the managed heap and get promoted to Gen 1 and Gen 2 the longer they exist. Objects of 85,000 bytes or more go to the Large Object Heap (LOH), arrays allocated as pinned to the Pinned Object Heap. The GC (garbage collector) reclaims dead objects and compacts the survivors, except on the LOH, where it normally only sweeps. Every call adds a frame to its thread's stack. ๐Ÿณ. ๐—ฅ๐˜‚๐—ป Everything now runs as good old-fashioned machine code. There's no interpreter on desktop and server CoreCLR. Native libraries (.dll, .so, .dylib) come in through P/Invoke. Two publish options change this, both opt-in. ReadyToRun ships precompiled methods, so Tier 0 code is already there, but the JIT still re-JITs hot methods to Tier 1. Native AOT publishes one native executable with no JIT at all. Credit Dr Milan Milanovic

    Photo
    Views460
    Forwardsโ€”
    Reactionsโ€”
    Commentsโ€”
  3. Views450
    Forwardsโ€”
    Reactions3
    Commentsโ€”
  4. Views444
    Forwardsโ€”
    Reactionsโ€”
    Commentsโ€”

Latest posts

#1366Text
Views165โˆ’48%vs avg
Forwardsโ€”
Reactionsโ€”
Commentsโ€”
#1365Text
Views144โˆ’55%vs avg
Forwardsโ€”
Reactionsโ€”
Commentsโ€”
#1357Video
Views276โˆ’13%vs avg
Forwardsโ€”
Reactionsโ€”
Commentsโ€”
#1355Photo
Views184โˆ’42%vs avg
Forwardsโ€”
Reactions2
Commentsโ€”
#1354Photo
Views302โˆ’5%vs avg
Forwardsโ€”
Reactions3
Commentsโ€”

All posts

Connections

Mentions