|
Greetings Kind Regards I am sorry to hear of your situation I hope treatment is going well Re/ psychological troubles I know a thing or one or maybe two Some years ago I suffered from considerable depression and other psychological ailments but regular simple Buddhist "meditation" practice over some time and Poof Bingo Presto Voila they all gradually diminished to nothing As for the current trend called "mindfulness" I believe it is hogwash pscho-babble As the saying goes KISS "Just Sit" is the Buddhist rule How simple is that I was tortured just this morning by an hour of pscho-babble on NPR I always wish to call in and give the same advice I am giving here By the way I also found this practice helpful in discovering bugs in my code While "Just Sitting" on occasion they would just become apparent - Best Regards Cheerio
|
|
|
|
|
The mindfulness training and all that comes from dialectical behavioral therapy which actually draws on some concepts from Buddhism.
So much so that I dropped a DBT group course because I wasn't learning anything new. My first serious boyfriend back when I was a very young adult was a practicing Buddhist, and I learned a lot from him - he's gone now, but he was one of the most peaceful people I ever knew.
I think a lot of DBT is simple concepts dressed up in almost clinical language. I personally, don't have problem with that, but I understand why a lot of people would.
The medication works pretty well for me, and for the rest there's yoga. Yoga encompasses meditation so it's efficient.
Real programmers use butterflies
|
|
|
|
|
Like the designer of RuneQuest, Call of Cthulhu, Stormbringer and other similar RPG like to say, Monsters are people too!
|
|
|
|
|
|
Despite the fact that Edison never did any genuine scientific work of his own...
Don't ever call a nerd an Edison, it is as bad as accusing an American of being a Nazi, or an Alabama fan an Auburn fan, or even calling a Cold War-era American a communist.
|
|
|
|
|
This reminds me of “the Mule” from Asimov’s Foundation series.
|
|
|
|
|
I have not run any perf test or anything, it just suddenly struck me...
In an effort to improve performance (and interop cost) the .NET ported as much of the .NET framework as possible to .NET
On the other hand here comes WinUI where every single control is in C++ and cost with interop cost.
So I haven't really did performance test... but wouldn't heavy C# WinUI App a tad slower than WPF one?
If, say, I want to do tons of 2D graphics (Visual in WPF, and Direct2D in WinUI I guess)??
Just wondering, haven't testing it.. will one day, but curious if anyone has any practical experience, thoughts, sample on that very matter?!
modified 24-Dec-21 4:55am.
|
|
|
|
|
It's possible that they're using the same strategy with WinUI that they did with the framework in general - porting it to .NET iteratively.
I would say algorithmically speaking, you're looking at a predictable, and small amount of overhead for UI calls. Your basic performance profile will be roughly the same, + I don't know, 10% overhead in terms of time to execute?
It won't be bad at all except for processing window messages and painting. Those are your critical codepaths. Unfortunately, they are central to the UI. The more you have to do there, the more burden you're putting on the thunking/marshalling layer.
That said, the *way* you map your P/Invoke calls significantly impacts marshalling performance. There are some tricks you can do with structs to make the calls a bit faster. Basically a struct is constructed in memory the way it's laid out using the StructLayout/FieldOffset? attributes, so it already fits the "binary footprint" necessary for the p/invoke call. In other cases, it's quicker to marshal by hand. Either way, there are ways to reduce the overhead in critical codepaths.
Real programmers use butterflies
|
|
|
|
|
It's true I haven't done any serious interop since, phew.. 2005? And I think to remember not all interop call have equal cost, some might be free... Good point here!
Yeah I though as an ideal test I might draw and move, say, 100K Visual in WPF and then do these 100K drawing with Direct2D and see how it goes, probably will have to do that sometimes next year, just to make sure the porting work is worth the effort!
(I'll be fine is the performance is the same, happy to jump to new tech... just don't want it to be a literal mistake..)
|
|
|
|
|
Well, with DirectX you're always going to be dealing with interop from managed code at some layer, because DirectX is hardware supported, and it exports its API as unmanaged calls, so the only question there is is P/Invoke being employed more than once where it doesn't have to be? In many cases, probably not.
Real programmers use butterflies
|
|
|
|
|
OK, it's got no plot, no dialog, no Rocinante, and no characters, but it is a Yule Log[^].
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Be careful, as I heard there's YuleLog4Shell - exploits a mistletoe vulnerability to open a nasty backdoor into your Christmas
Real programmers use butterflies
|
|
|
|
|
Is Jeff Kaplan Working for Amazon now?!
|
|
|
|
|
Pah! That only lasts for an hour - a real Yule Log lasts for the whole twelve days of Christmas Yule, and still has enough left to light the next year's log. Check it on Wikipedia and Yule see I'm right.
|
|
|
|
|
I am amazed at the size of 2T: initially I did not believe it. so I ordered one to have a look.
now I got it and plug into my Laptop. it is real!
how amazing current technology goes!
diligent hands rule....
|
|
|
|
|
I keep saying it's a great time to alive, then another week goes by and it's even more better.
|
|
|
|
|
The largest storage in the world is 2 exabytes, which is 2 MILLION terabytes. Must be thousands if not millions of USD, euro, pound or anything.
|
|
|
|
|
I love living in the future!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
I think it was last year I started noticing the availability of 1TB micro SSD cards. Its amazing how things have changed over the past 30-40 years. I can remember when I was at University, they made a big announcement about having acquired another DiskPack (I think) which brought their total storage up to 500MB! DiskPacks were those dishwasher sized drive units. They probably had storage capacity measured in the 50-100MB. Now you can get a TB crammed into something the size of your thumbnail. What's next? Maybe holo-storage that's measured in Exabytes?
Keep Calm and Carry On
|
|
|
|
|
Be aware that there are a lot of fakes out there: they report 2T but have an actual capacity of 16GB or so. They write fine, but once you exceed the genuine capacity the upper address lines are ignored and your previously saved data is overwritten.
The only way to check is to fill the 2TB with data, read it all back, and check that it all reads OK.
This particularly applies with cheap drives - you get what you pay for!
(I got caught with this a decade or so ago myself with an FleaBay SD purchase that seemed like a real bargain )
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I was going to post exactly that.
Try to fill it up and read it back. Until then, I'm skeptical.
|
|
|
|
|
I take note of your points.
this is a non-branded one. for a branded one, its price(1T) is up to $150 on amazon.
diligent hands rule....
|
|
|
|
|
Ah. <$20 vs $150 for a manufacturer you know?
Have you heard reg saying "if it sounds too good to be true ..."
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Good god man and $18!
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
yes, I forgot to mention price tag: < $20!
diligent hands rule....
|
|
|
|