|
Agreed, it's always something extra libraries for sure. Seems to be a dll hell ting, but I would definitely like to have something like SciPy for C#... But its a lot of work to implement this...
|
|
|
|
|
Write an IronPython wrapper?
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
C# is a very good language, I don't think I've done any serious code in C or C++ since I learned it.
It's getting somewhat "committeefied" though ... some folk just can't leave a good thing alone.
"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!
|
|
|
|
|
Quote: some folk just can't leave a good thing alone At least some of what they add seems useful, which has generally ceased to be true for C++.
|
|
|
|
|
Except for the funky way that structs & objects are instantiated differently , it's a pretty good platform. I never did get the hang of callbacks or whatever they are termed (i.e., function pointers in C++).
|
|
|
|
|
Edit: I may have misinterpreted you. If you meant you don't get how they work in C# then disregard this comment!
It's a little easier these days with lambdas in C++. If you don't capture anything it decays to a standard function pointer meaning you can declare callbacks inline
the weird thing about function pointers in c/c++ is declaring them
the_return_type(*the_callback_variable_name)(parameter_type1,parameter_type2,...);
so like
void*(allocator)(size_t)=malloc;
That would declare a function pointer called allocator and make it point to malloc.
But once you've declared it using it is basically like using any other function:
void* buf = allocator(10);
There's your "callback"
Now as far as a function that takes one of those monsters as a parameter type - in other words, a function that takes a callback, you can declare that parameter inline in a function like you can in C#, except that you can't capture with it (unless you use std::function which is different):
static void do_my_func_with_callback(const char* sz,bool(*callback)(const char*)) {
callback(sz);
}
and then
do_my_func_with_callback("something",[](const char* sz){ printf("called with %s\e\n"); });
Real programmers use butterflies
modified 18-Jul-21 19:26pm.
|
|
|
|
|
I know how to do function pointers in C++, although I can never remember the exact syntax.
Now that I think about it, I think I can do a single delegate in C#, but there seems to be a way to put such delegate callbacks in a list, and that is where I get confused. I've been retired for a while, so I've not been doing much with it.
|
|
|
|
|
swampwiz wrote: I never did get the hang of callbacks or whatever they are termed (i.e., function pointers in C++) I think you're referring to C# delegates[^].
Software Zen: delete this;
|
|
|
|
|
Gary R. Wheeler wrote: I think you're referring to C# delegates[^].
Yes, that's the term.
|
|
|
|
|
Got a most excellent fortune cookie (admittedly, most are more instructive than informative)>
"The memory of bad quality lasts longer than the shock of high prices".
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Sounds true, and, ... somehow I got a thought that "quality sells itself" ...
|
|
|
|
|
These days this might be appropriate; Quality, Cost, Availability, pick 2.
The less you need, the more you have.
Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?
JaxCoder.com
|
|
|
|
|
Mike Hankey wrote: These days this might be appropriate; Quality, Cost, Availability, pick 2. These days? I am saying that for at least the last 10 years.
Ok. To be honest, I actually say: Quality, Price, Speed (deadline reduction)
Is my "Speed" the same as your "Availability"?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
True, but more so since lockdown as everything has become harder to get.the
The less you need, the more you have.
Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?
JaxCoder.com
|
|
|
|
|
Forget the cookie. Read the remaining tealeaves in your drained cup! They are more reliable!
Get me coffee and no one gets hurt!
|
|
|
|
|
Subtitle: "My experience with Open Source".
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
TOTALLY NOT !
GIMP 2, Audacity, Libre, FireFox, . . .
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Buy once, cry once!
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G.K. Chesterton
|
|
|
|
|
|
You need to catch up. He's got what, 2 or 3 albums following that?
|
|
|
|
|
this desktop was working in year 2001, but could not power up in 2002. Now I get some time to work on this PC and back up some personal data from it.
any idea for not powering up? CMOS battery failed?
diligent hands rule....
modified 18-Jul-21 1:43am.
|
|
|
|
|
Pull or disconnect the main battery and try to then start it from the charger.
If that works and with old hp's it does 99% of the time, then shut down the os
gracefully and then reinsert or reattach the battery and soldier on.
If that doesn't work try disconnecting the battery and hold down the power button for about 30 seconds then try it from the charger......
|
|
|
|
|
|
desktop
diligent hands rule....
|
|
|
|
|
Change out the CMOS, if possible and give it a try to power up. It's likely not going to improve the situation.
It's more likely you're got a bad power supply or motherboard, probably due to bad capacitors.
If you really need the data, the cheapest way to get it is to take the drive out and put it into an enclosure or hard drive dock for your type of drive. It'll connect to a new machine over USB and you can get the data.
|
|
|
|