|
If compile time is an essential part of the build time, then you are making a program.
You are not making a software system composed of sevearal program components merged into a whole.
You are not making a software product with nasty elements such as documentation, test logs, ...
Or, maybe you are, but when you say "build time" you are not talking of building the software system product, but to "build" a linkable unit from a source file. Then you might see compiling filling a noticeable part of the build time. Maybe half a second out of two seconds build time ...
Last time I did a make clean, rebuilt the system from scratch, and inspected the last written timestamp on the compiled files, there were typically six to eight of them completed per second. (And last time I did this little exercise was around ten years ago; we've got faster machines today.)
Using compile time as an argument against compiled languages, in favor of interpreted ones, might have been valid in the 1980s. It is not today.
Besides: Because interpreted languages traditionally had lousy run time performance, all major interpreted languages today start the interpretation by doing an on-the-fly compilation... (if they do not find an already compiled version in a cache). So you don't escape the compile time - you just count it as part of the run time.
|
|
|
|
|
First, you should learn to consider that someone might be joking. This is the lounge.
Secondly, when I think build I think of the entire thing. Compile and link.
If you use second-party libraries for much of your source the it will be much quicker than it really should be. Mostly, what I did I built from scratch. An exception to this was the .lib file that came with an A/D converter. For FORTRAN, years ago, I even built a graphics .lib I coded in Assembler. The whole thing, if I did it all at once, would be done in a minute, tops (on an 80286 w/HDD and 1 MB RAM).
Mostly, however, the libraries were compiled once and, with the exception of an occasional addition, left as they were. Compile/link took seconds, usually.
You need to get a grasp on context when commenting in the forum. Not every, and perhaps hardly anything, is taken seriously. Certainly not if there's an opening for a laugh. Maybe that long sunless winter's getting to you?
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 |
|
|
|
|
|
Well, back when it was Turbo Pascal: Used the bathroom (took a book), got a cup of coffee, chatted up the receptionist (you could do that, then), checked the telex machine, read a bit of Byte magazine and then topped off my coffee again.
|
|
|
|
|
|
Or Musk says: "Bitcoin too high!" ... and it tanks 10%.
But he's already made a Billion$ on it.
"I'm your puppet!"
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Crazy, isn't it?
cheers
Chris Maunder
|
|
|
|
|
If you substituted Unicorns for BTC, I wouldn't be able to tell you if it makes any difference; though the Unicorn is probably cuter ... but I guess that's what DoggieCoins are for.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Gerry Schmitz wrote: Or Musk says: "Bitcoin too high!" ... and it tanks 10%. He's a monetary visionary to some. He influences decisions, but not the trend.
I just enjoy the vids' where he promises a tank and the glass breaks
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
He got involved with the GME short too.
|
|
|
|
|
He's a puppet master.
I hear Tesla is having quality problems ... but the BTC flip did better than the revenue from cars.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Gerry Schmitz wrote: I hear Tesla is having quality problems ... Yeah, I read that a Model Y was driving down the highway and the roof came completely off the car. That's crazy.
|
|
|
|
|
Seals of that kind is normally done by robots, so this indicates a serious problem.
|
|
|
|
|
|
*headdesk*
I've been spending all day woolgathering on the subject of cooperative vs preemptive multitasking on microcontroller systems - particularly those with slow or absent JTAG support.
I saw your post and was like "oh goody! an excuse to nerd out with Daniel on the subject"
And then of course, it was something like Garfield. And now I'm got a cavalcade of observations about multitasking banging around in my noggin with nowhere to go.
Oh well, I should probably be working.
Real programmers use butterflies
|
|
|
|
|
Some microcontrollers do not have RTC support or any other kind of timer-like tick coming in so cooperation seems like the best option for them. I seem to remember an article or two here on that topic.
Yes, there are a few : Search Results[^]
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I've also found that introducing multithreading into a system you already can't debug using a traditional debugger is a recipe for a nightmare in practice.
What I've done on this dual core monster I am working with is I keep exactly two threads - each with its own core affinity, and they basically do very little communication with each other, and all of their work is internally cooperatively multitasked.
It doesn't have an RTC per se, but like most CPUs it has a timing crystal connected so you can get the number of milliseconds since boot with it. I use that to make timers.
static uint32_t tickTS=0;
void loop() {
if(millis()-tickTS>=1000) {
tickTS=millis();
Serial.println("One second elapsed");
}
}
You can even wrap that to turn it into a callback. or whatever.
but i do all my cooperatively multithreaded code such that if i have to make a time delay for example, I use the above mechanism to avoid blocking. I do this on the code for each of the threads/cores.
Real programmers use butterflies
|
|
|
|
|
I have a similar issue. I have a big bunch of code to debug that needs to run on a GPU. I have written it so it can also run on the CPU so I am doing all my initial debugging on the CPU and then I'll try it on the GPU. I have already tried small bits on the GPU and it looks good so far.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I did something like that with my JSON(C++) library. I wrote it on a desktop and it made it work only to ultimately port it to run on devices as meager as 8-bits and 4kB of RAM.
To make things even more gonzo the entire thing is a port of a JSON parser I wrote in C#.
Real programmers use butterflies
|
|
|
|
|
Reminds me of the main character in the novel "Barkefletteren" (1913) by Norwegian author Gabriel Scott, who remarks (not my translation!):
"Sometimes I sits and thinks, and sometimes I just sits".
|
|
|
|
|
Enjoy a bit[^] from the golden age. . . . or is that "for" the golden age?
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 |
|
|
|
|
|
Whose golden age?
Word here is, we should abandon the term; it implies we did good, while we traded in slaves.
We did. Our "golden age" coincides with the age of piracy.
As far as the colon blow, all you need is add a lot of oil to a dish, not fibers. Like a whale, if you want the analogy.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
It was a double entendre.
The first instance referring to the golden age the the TV comedy "Saturday Night Live" and the second golden age referring to one's very senior years, hence, referring to the 'for' golden age.
Have some prune juice; sit down; relax -🚽 - it will clear your mind and you'll feel better by morning.
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 |
|
|
|
|
|
|
If your mother promises you Eggs Benedict, will you go home for the Hollandaise?
"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!
|
|
|
|
|
eggstatically, and I wouldn't think muffin of it.
Real programmers use butterflies
|
|
|
|