Click here to Skip to main content
15,900,511 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: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:12
mvahoney the codewitch6-Aug-19 1:12 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:57
mvahoney the codewitch6-Aug-19 1:57 
GeneralRe: Grrrr @ .NET Pin
Super Lloyd6-Aug-19 3:23
Super Lloyd6-Aug-19 3:23 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 3:35
mvahoney the codewitch6-Aug-19 3:35 
GeneralRe: Grrrr @ .NET Pin
Super Lloyd6-Aug-19 5:04
Super Lloyd6-Aug-19 5:04 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 5:18
mvahoney the codewitch6-Aug-19 5:18 
GeneralRe: Grrrr @ .NET Pin
Super Lloyd6-Aug-19 13:22
Super Lloyd6-Aug-19 13:22 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 13:30
mvahoney the codewitch6-Aug-19 13:30 
That's the thing. I don't know how long the process will run. It's an API. It might very well be used in a service.

I much prefer to keep code out of grammars for precisely this problem, but almost all other parser generators support it.

And in using mine, there would be areas where it could come in handy, but if I'm doing it at all, I'm not doing it half cocked. I HATE leaks. Hate them. I come from a C++ world. Leaks are leaks. I don't care that they're not due to a pointer being unfreed - leaking process address memory by constantly loading and throwing away DLLs is a show stopper for me, frankly, in all but the shortest running apps.

So I don't understand why Microsoft is so cavalier about it in .NET. It's nonsense. I'm caching or I'm not doing it at all.

If I'm at least not generating the same code over and over again it's acceptable, but now I'd have to cache the grammars once they're loaded.

On the other hand, I *did* already implement value semantics for all my grammar objects (meaning my grammars themselves can already be dictionary keys)

So I guess it wouldn't be that hard. My problem is thread safety. It's true my system wasn't designed for it, but also I wasn't sharing a process wide cache system either! I at least want the thing to *work* from different threads without causing problems.

Sigh | :sigh: so that's work.

You see what I'm getting at? This to me is bare minimum for what I'd consider acceptable in this scenario.

I assumed Expressions would already take care of that, but if it doesn't even do that, well, I may as well do it all myself and get full code behind support, not just expressions. ah well, it is what it is.
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: Grrrr @ .NET Pin
Super Lloyd6-Aug-19 13:43
Super Lloyd6-Aug-19 13:43 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 13:47
mvahoney the codewitch6-Aug-19 13:47 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 3:58
mvahoney the codewitch6-Aug-19 3:58 
GeneralRe: Grrrr @ .NET Pin
Pete O'Hanlon5-Aug-19 21:24
mvePete O'Hanlon5-Aug-19 21:24 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:14
mvahoney the codewitch6-Aug-19 1:14 
GeneralRe: Grrrr @ .NET Pin
Pete O'Hanlon6-Aug-19 2:25
mvePete O'Hanlon6-Aug-19 2:25 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:26
mvahoney the codewitch6-Aug-19 2:26 
GeneralRe: Grrrr @ .NET Pin
dan!sh 5-Aug-19 22:29
professional dan!sh 5-Aug-19 22:29 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:15
mvahoney the codewitch6-Aug-19 1:15 
GeneralRe: Grrrr @ .NET Pin
Jörgen Andersson5-Aug-19 22:35
professionalJörgen Andersson5-Aug-19 22:35 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:16
mvahoney the codewitch6-Aug-19 1:16 
GeneralRe: Grrrr @ .NET Pin
Jörgen Andersson6-Aug-19 4:09
professionalJörgen Andersson6-Aug-19 4:09 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 4:12
mvahoney the codewitch6-Aug-19 4:12 
GeneralRe: Grrrr @ .NET Pin
Jörgen Andersson6-Aug-19 5:10
professionalJörgen Andersson6-Aug-19 5:10 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 5:14
mvahoney the codewitch6-Aug-19 5:14 
GeneralRe: Grrrr @ .NET Pin
Jörgen Andersson6-Aug-19 5:40
professionalJörgen Andersson6-Aug-19 5:40 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 5:42
mvahoney the codewitch6-Aug-19 5:42 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   489 votes