Click here to Skip to main content
15,892,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: VS2019, I am impressed. Pin
CPallini18-Sep-19 10:44
mveCPallini18-Sep-19 10:44 
GeneralRe: VS2019, I am impressed. Pin
Rajesh R Subramanian18-Sep-19 22:24
professionalRajesh R Subramanian18-Sep-19 22:24 
GeneralRe: VS2019, I am impressed. Pin
CPallini18-Sep-19 22:34
mveCPallini18-Sep-19 22:34 
GeneralRe: VS2019, I am impressed. Pin
Gary Wheeler19-Sep-19 2:15
Gary Wheeler19-Sep-19 2:15 
GeneralRe: VS2019, I am impressed. Pin
CPallini19-Sep-19 2:28
mveCPallini19-Sep-19 2:28 
GeneralRe: VS2019, I am impressed. Pin
Rajesh R Subramanian19-Sep-19 3:25
professionalRajesh R Subramanian19-Sep-19 3:25 
GeneralRe: VS2019, I am impressed. Pin
Gary Wheeler19-Sep-19 2:31
Gary Wheeler19-Sep-19 2:31 
RantI thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 5:10
mvahoney the codewitch18-Sep-19 5:10 
I know this is a very special case but still i ran headlong into it.

The easiest way to implement a B+ tree on disk is using a memory mapped file. I think this is what SQL Server does, but don't quote me.

However, the only way you can access memory mapped files in C# is through .NET interop which makes it useless.

Because one of the points of a memory mapped file is that you can do memory allocations that are backed by disk.

There's no way in hell .NET can give you that in its current incarnation, even if one were to write a custom host, because of the way a GC system works.

What I'd like

var foo = new int[1000000]; // backed by disk, paged automatically

What I'd have to do.

somepointer = VirtualAlloc(...)
Write(somepointer, data)
etc
etc

basically it works like file i/o which defeats essentially the whole purpose.

=(
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. PinPopular
TheGreatAndPowerfulOz18-Sep-19 5:13
TheGreatAndPowerfulOz18-Sep-19 5:13 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 5:14
mvahoney the codewitch18-Sep-19 5:14 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
TheGreatAndPowerfulOz18-Sep-19 5:19
TheGreatAndPowerfulOz18-Sep-19 5:19 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 5:20
mvahoney the codewitch18-Sep-19 5:20 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
TheGreatAndPowerfulOz18-Sep-19 5:33
TheGreatAndPowerfulOz18-Sep-19 5:33 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
TheGreatAndPowerfulOz19-Sep-19 10:11
TheGreatAndPowerfulOz19-Sep-19 10:11 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch19-Sep-19 10:13
mvahoney the codewitch19-Sep-19 10:13 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
TheGreatAndPowerfulOz20-Sep-19 5:05
TheGreatAndPowerfulOz20-Sep-19 5:05 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch20-Sep-19 5:06
mvahoney the codewitch20-Sep-19 5:06 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
TheGreatAndPowerfulOz20-Sep-19 5:59
TheGreatAndPowerfulOz20-Sep-19 5:59 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch20-Sep-19 6:00
mvahoney the codewitch20-Sep-19 6:00 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Dewey18-Sep-19 12:14
Dewey18-Sep-19 12:14 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
honey the codewitch18-Sep-19 13:26
mvahoney the codewitch18-Sep-19 13:26 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. PinPopular
Richard Andrew x6418-Sep-19 14:25
professionalRichard Andrew x6418-Sep-19 14:25 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Steven121819-Sep-19 7:33
professionalSteven121819-Sep-19 7:33 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
Gerardo Orozco19-Sep-19 4:48
Gerardo Orozco19-Sep-19 4:48 
GeneralRe: I thought .NET was supposed to make things easier, if anything, than unmanaged code. Pin
#realJSOP18-Sep-19 5:24
mve#realJSOP18-Sep-19 5:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.