¿ªÔÆÌåÓý

Date

Re: Hijacked: C vs C++

Mark M
 

On 7/4/18 12:05 PM, Jerry Gaffke via Groups.Io wrote> Forty years ago ... could be worse.
You could have been submitting decks of punched cards in Cobol
to some batch system.
...
That's how I started (IBM 370/168) but it was a bit more than 40 yr ago. After a while I got into cooler stuff like Pascal, a little FORTRAN on PDP 11's, assembler on various microprocessors, then C under various flavors of unix on minis & micros, C++ and finally Java on various platforms. Java is pretty cool but has gotten pretty bloated. C is still the best, IMO. I like to write code but don't seem to have the patience for it any more. It might be different if I was still getting paid for it. :) I can really appreciate the time & effort you guys put into it.

73... Mark AA7TA


Re: Hijacked: C vs C++

 

Forty years ago, programming might involve typing into an ADM-3 terminal
with a 1200 baud? UART connection to a Vax-11/780 under BSD Unix.
If you were lucky, could be worse.
You could have been submitting decks of punched cards in Cobol?
to some batch system.

With several dozen other programmers sharing the same VAX,?
might take a minute or two after submitting name and password before?
you were fully logged in and had a shell prompt.
So the sysadmin would generally have the fortune cookie program dump
some text to the screen for you to ponder while twiddling thumbs.

Here's another example, chosen from thousands:

'Twas midnight, and the UNIX hacks
Did gyre and gimble in their cave
All mimsy was the CS-VAX
And Cory raths outgrabe.

"Beware the software rot, my son!
The faults that bite, the jobs that thrash!
Beware the broken pipe, and shun
The frumious system crash!"

OK, now we're totally hijacked.
Excellent name for the thread!

Jerry


On Wed, Jul 4, 2018 at 09:29 am, Arv Evans wrote:
For those who did not understand your reference to Fortune Cookies.


Re: Hijacked: C vs C++

 

For those who did not understand your reference to Fortune Cookies.



_._


On Wed, Jul 4, 2018 at 12:42 AM Jerry Gaffke via Groups.Io <jgaffke=[email protected]> wrote:
On critical code, I prefer the direct correspondence of a vanilla C program to its executable.
With C++, there are too many unseen gears turning to implement all those cool features.

If I want easy coding of complicated algorithms and don't care about space or time, I write in python.
It's clean and concise and powerful, I get far fewer coding errors than when writing in C/C++.
If there are time critical functions to implement, write them in C and?call them from the?main python program.

Here's an old Unix fortune cookie from 40 years ago:
"The day-to-day travails of the IBM programmer are so amusing to most of us who are?
fortunate enough never to have been one? -- like watching Charlie Chaplin trying to cook a shoe."

We can argue if that applies better to the C or C++ programmer.

Jerry, KE7ER
he day-to-day travails of the IBM programmer are so amusing to most of us who are fortunate enough never to have been one


Re: Software for uBITX

Andy V. Borisenko
 

Franz,
all software from KD8CEC?
software from Ashhar?


Re: Software for uBITX

 

software v4 on
this will work on version 3/4 board

On 4 July 2018 at 14:53, <Franz.Rebholz@...> wrote:
Hi,

last week I got the new uBITX, it finished and work fine with software V0.20.

My question ist, what ist the newest update version which work without hardware changes?
An where I can download?

Franz

DF5GF



Re: Who has uBITX with Nextion display in action pictures ?

 

I have the Nextion 3.2 (non enhanced) display working with my uBITX, but the screen is not fully utilized.? The file I used is ubitx_32.tft.? Will an updated .tft file for the 3.2 display be available at some point?

Thanks to all who have made this great little rig available to the amateur community - your hard work is appreciated!

73, Bill


Re: Nextion 3.2 Display

 

I'm also interested in the 3.5 version.? Thanks!
Tom
AB7WT


Re: LED Power Output Indicator #ubitx

 

¿ªÔÆÌåÓý

It isn't a voltage doubler. You need a second cap for a doubler. The Diode to ground keeps the load symmetrical (more or less) for positive and negative excursions. There is no need to double the voltage, there is plenty of voltage and current available to light an LED.?

Howard

On 7/3/2018 11:25 PM, R. E. Klaus via Groups.Io wrote:

Doesn't the 2 diodes and the cap form a rudimentary voltage doubler similar to those used in old AC/DC radios?



Re: Removing insulation from fine wires

 

¿ªÔÆÌåÓý

Those are great for stripping or cutting. I used one for 30 years for stripping wires of almost any gauge.

?

From: [email protected] <[email protected]> On Behalf Of John Smith via Groups.Io
Sent: Tuesday, July 3, 2018 7:47 PM
To: [email protected]
Subject: Re: [BITX20] Removing insulation from fine wires

?


I use these for CAT5 wires for the breadboard, and 30 AWG wire wrapping wire. There is a sliding screw nut that the opposing side hits against to set the depth of cut for repeated stripping of the same size wire. And I use a velcro strap to kinda hold the handles partly together, otherwise they spring out far apart. Or you could look for strippers that also strips 30 AWG. They have about 6 small wire sizes on those, and they are almost never in a store, you have to order them.


Re: Who has uBITX with Nextion display in action pictures ?

 

Check out??


Re: Completed my QCX #ubitx

 

Looks very nice Judd, almost missed it because of the topic name.? What size Nextion display is that ?

73 Kees K5BCQ


Software for uBITX

 

Hi,

last week I got the new uBITX, it finished and work fine with software V0.20.

My question ist, what ist the newest update version which work without hardware changes?
An where I can download?

Franz

DF5GF


Re: KD8CEC Firmware

 

¿ªÔÆÌåÓý

Ian,

I am running beta 1.094 and it is great. Thanks for your hard work.

You mentioned that 1.095 was ready for release but I am not able to locate it.? Can your point me to it?

Thanks,

Pat AA4PG


Pat Griffin
http://www.cahabatechnology.com/aa4pg.html


From: [email protected] <[email protected]> on behalf of Ian Lee <kd8cec@...>
Sent: Sunday, July 1, 2018 7:10:26 PM
To: [email protected]
Subject: Re: [BITX20] KD8CEC Firmware
?
Thanks for your interresting.
You can get it from the link below


See the Release section for more convenience.


Ian KD8CEC


2018-07-02 10:07 GMT+09:00 MadRadioModder <madradiomodder@...>:
Where did you find it?



--
Best 73
KD8CEC / Ph.D ian lee
kd8cec@...
(my blog)


Re: Completed my QCX #ubitx

 

Thanks Lee.

Now when my version 4 board gets here I know what I am doing.? Hopefully it will be an even better build, especially the enclosure.? I still need to do a few things to this one, I plan on changing out the AF control with another one that has a more user friendly knob attachment.? I was lucky I had this old knob that had two set screws that were 90 degrees to each other.

I didn't leave much room in this one for upgrades, but I am going to do the S-Meter and the AGC.? Still looking at all the different mods others have done.
--
Judd, WD8WV


Re: Known issues on uBITX r4 #ubitx

hirosmb
 

I finally have got a uBITX today.

I placed my order last Friday night and then have it on WED evening.

It took only 5 days delivering from India to Japan.

Thanks, all. I¡¯ll start enjoying myself to set my uBITX up from now on.

// hiro, JJ1FXF



2018/06/30 20:39¡¢hirosmb JAZZ <hirosmb@...>¤Î¥á©`¥ë:

Raj,

Thanks for ur reply.

I understand that VFO shaft is 6mm but the volume shaft is 4mm.

I will try to find again a knob for 4mm shaft and also the 6mm pot and switch, just in case.

Thank you for ur advice.

// hiro, JJ1FXF



2018/06/30 20:17¡¢Raj vu2zap <rajendrakumargg@...>¤Î¥á©`¥ë:

Hiro,

The Volume control is 4mm with switch. So if you are at Akhiabara tomorrow pick up
a 10KA pot with switch (if required) of 6mm type.

Raj

At 30-06-18, you wrote:
I got a 12V 5A regulated power supply with ferrite core for noise filter, plus I got 10 pieces of extra ferrite core, just in case.

I also got some knobs for VFO and volume which shafts are 6mm. Is it OK?

I will make a front panel tomorrow.

// hiro, JJ1FXF




Re: Hijacked: C vs C++

Jack Purdum
 

The bloat in the Arduino IDE isn't nearly as bad as that. After all, you all have been using C++ the moment you used Serial.begin() in a program. Indeed, I don't think I've seen any Arduino libraries that weren't written in C++. I do agree that C is much easier to use and that's my preferred programming language. Still, the OOP Trillogy brings a lot to the table in terms of making one's code a little more bullet proof. The good news is that you can apply some of those safety concepts without really having to go full bore on C++. I, too, will stick with C, but I'm not against swiping some good stuff from C++ when I can.

Jack, W8TEE

On Wednesday, July 4, 2018, 8:17:54 AM EDT, w7hd.rh <w7hd.rh@...> wrote:


It was a simple printf("Hello world.\n") statement as the entire content.? Probably the printf is what caused the overhead.

Ron W7HD

On 07/03/2018 08:31 PM, Jack Purdum via Groups.Io wrote:
Wow, I would never expect a 50:1 difference. True, C++ does drag in more overhead, but it shouldn't be that much. The gcc compiler is behind the Arduino IDE. Try using it to write a C versus C++ program and see if that difference holds. Some compilers bring in the entire I/O library if you use printf(). That shouldn't happen in the Arduino world. Take the code you used to come to those conclusions, but do it with the Arduino IDE. I'd love to hear the results. I'd be happy to run the test if you care to send the source code.

Jack, W8TEE

On Tuesday, July 3, 2018, 11:07:59 PM EDT, w7hd.rh <w7hd.rh@...> wrote:


Turbo C and Turbo C++ at first, then gcc and g++ later.? Without a lot of compiler switches added in.
It certainly turned me off C++ coding.? I still program in C and shell scripts whenever possible.?
I've written a LOT of programs over the last 30 years and can crank out a working C program in a few hours.

Ron W7HD

On 07/03/2018 07:05 PM, Jack Purdum via Groups.Io wrote:
Good grief! What compiler was it?

Jack, W8TEE

On Tuesday, July 3, 2018, 6:29:47 PM EDT, w7hd.rh <w7hd.rh@...> wrote:


I can vouch for the size increase with C++.? When I was teaching C and just getting my feet wet with C++, we did a direct comparison.? The results showed a 1.5K executable for C and 80K for C++ with the exact same code, simply renaming it .C++ instead of .C.? It is due to the libraries being pulled in.? Speed is a different issue since it is highly dependent on coding style.

Ron W7HD

On 07/03/2018 01:15 PM, Jack Purdum via Groups.Io wrote:
Hi Jerry:

I've seen statements like this:

????It's always been straight C (K&R or ANSII) if I want to code for speed or size

many times before, but I've never seen any a priori proof of this or articles that discuss it. It seems that it would make sense to be so, but I don't know if that's pushed into the generated code or if it's an increased load on the parser given the semantics of C++ versus C. Some even say that, because C++ uses templates in the libraries, the code generator can perform more optimizations on the code because it "knows" what you are doing ().


I don't have an answer, but I do try to follow the goals of C++ where it makes sense, especially encapsulation. If anyone has a definitive answer, I'd really like to know about it.

Jack, W8TEE



On Tuesday, July 3, 2018, 3:16:24 PM EDT, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:


> I fail to see the their and there you are pointing out.?
?
What do you mean?
It's right their in this sentence:?

>>? ?"their" is possessional, "there" is positional, required in this context.


My gripes are mostly about a good technical discussions diverging into multiple threads.
If you do start a new thread on an old subject then post links to both showing where the other thread can be found.?

Those posting without any history for context generally get ignored.
If it's not worth your while to spend 5 seconds including context,
it's certainly not worth it for?thousands of forum readers to go find it.

If anybody want's to pick apart my use of USAish or my C indentation style (or lack thereof), have at it.
I'm quite capable of skipping over those posts too.

And while I'm at it, I've never seen any reason to get comfortable with C++.
It's always been straight C (K&R or ANSII) if I want to code for speed or size,
and for the last couple decades I've been resorting to Python for easy coding.?
This violates my primary beef above, I do try not to be overly pendantic.

Jerry, KE7ER



On Tue, Jul 3, 2018 at 09:49 am, Allen Merrell wrote:
On Tue, Jul 3, 2018 at 08:46 am, Dexter N Muir wrote:
Sorry to be a pedant, but that's me Allen: "their" is possessional, "there" is positional, required in this context.
73
Dex, ZL2DEX
Sorry Dexter, I'm not an english major but I fail to see the their and there you are pointing out.
?
--
Allen ?Merrell

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter

-- 
Ron W7HD - NAQCC#7587 OMISS#9898 KX3#6966 LinuxUser#415320
Editor OVARC newsletter


Re: Hijacked: C vs C++

 

my community college had me learn C. I suspect ?the added functionality wasn't required.?


On Wed, Jul 4, 2018, 5:36 AM bobh_us <rwhinric@...> wrote:
With C++, there are too many unseen gears turning to implement all those cool features.
In my C++ class the instructor would often start class with the quiz ¡°How many constructors are called¡± for some simple code. Everybody¡¯s answers would be low.?

With some experience, there is little difference in in resulting code execution speed for C coders.? There is a huge difference for C++ coders. And the good ones make a lot of money.


Re: Hijacked: C vs C++

 

With C++, there are too many unseen gears turning to implement all those cool features.
In my C++ class the instructor would often start class with the quiz ¡°How many constructors are called¡± for some simple code. Everybody¡¯s answers would be low.?

With some experience, there is little difference in in resulting code execution speed for C coders. ?There is a huge difference for C++ coders. And the good ones make a lot of money.


Re: Completed my QCX #ubitx

 

Very nice work.
--
Lee - N9LO? "I Void Warranties"

?


Re: LED Power Output Indicator #ubitx

 

Please don't assume a 3.0 volt LED and reasonable brightness. As I already stated,

I used a clear red LED and it is nice and bright and fun to watch.

I have received all the information I was looking for.?? Thank you.

It works great just the way it is.? "If it aint broke, don't fix it."
--
Lee - N9LO? "I Void Warranties"

?