Go to advanced search

by Heater
Mon Oct 14, 2019 7:46 pm
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 37
Views: 1337

Re: Where can I begin learning C/C++?

jcyr, I'm pretty sure you will find that C++ smart pointers do not do any extra allocations on the heap. They exist on the stack and get passed around like other plain old data. There are no extra calls to constructors and destructors for them. In fact I think unique_ptr get's compiled down to just ...
by Heater
Mon Oct 14, 2019 7:07 pm
Forum: General discussion
Topic: 64 bit os?
Replies: 3
Views: 99

Re: 64 bit os?

I have no idea what it means for a Linux based operating system to be "VNC supported".

Quite likely there is a VNC that can be used from 64 bit Gentoo on the Pi :
https://wiki.gentoo.org/wiki/TigerVNC
https://forums.gentoo.org/viewtopic-t-9 ... art-0.html
by Heater
Mon Oct 14, 2019 6:27 pm
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 37
Views: 1337

Re: Where can I begin learning C/C++?

jcyr, I don't think the implementation of new features explicitly discourages the use of old ones. Certainly the designers and implementers of the new features have exactly that in mind. For example: In the old days we created objects with "new" and then had to remember to use "delete" to avoid memo...
by Heater
Mon Oct 14, 2019 3:36 pm
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 37
Views: 1337

Re: Where can I begin learning C/C++?

jcyr, Citations please... Well that is the topic of discussion here. The lack of up to date books, tutorials and other guides for modern C++. If I knew of any I would cite them For now the statement I made is born out of watching all the presentations at CppCon for the past two or three years. Many ...
by Heater
Mon Oct 14, 2019 2:16 pm
Forum: General discussion
Topic: Current State of Raspberry Pi 4 Software and Hardware Support
Replies: 20
Views: 616

Re: Current State of Raspberry Pi 4 Software and Hardware Support

What's the problem with EDID? Back in the days of the original Pi it would not work with one of my monitors. After a quick question here I had read the EDID of the monitor manually with some user space program and entered required details from that into config.txt or wherever. Then my monitor worked...
by Heater
Mon Oct 14, 2019 6:14 am
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 37
Views: 1337

Re: Where can I begin learning C/C++?

plugwash, Expected by who though? that is the question. I was thinking of these people: WG21 (ISO C++ Committee): https://isocpp.org/wiki/faq/wg21 The people, starting with Bjarne Stroustrup who have invested a large part of their lives into creating C++. When Stroustrup added classes to C he obviou...
by Heater
Mon Oct 14, 2019 5:42 am
Forum: C/C++
Topic: Installing Mono Develop on Raspian Buster
Replies: 1
Views: 43

Re: Installing Mono Develop on Raspian Buster

Have you tried:

$ sudo apt-get install mono-complete

In what way did it not work?
by Heater
Sun Oct 13, 2019 5:50 pm
Forum: Other programming languages
Topic: programming with c#
Replies: 17
Views: 551

Re: programming with c#

ejolson, Isn't Visual Studio Code running on the Pi similar? From reports around here, yes. I understand it can even send telemetry data to Microsoft Indeed it can. But Microsoft is my friend. They gave me a new Surface Pro 4 when my old one exploded (No really, it did) even if it was well over it's...
by Heater
Sun Oct 13, 2019 2:00 pm
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 37
Views: 1337

Re: Where can I begin learning C/C++?

@sal55, You are right of course. There is a lot of C code around and in use, even by me. The C ABI is in use everywhere in connecting different languages together. It is the lowest common denominator. Even used when C is not actually present, for example calling Rust functions from C# or whatever. I...
by Heater
Sun Oct 13, 2019 6:55 am
Forum: C/C++
Topic: Where can I begin learning C/C++?
Replies: 37
Views: 1337

Re: Where can I begin learning C/C++?

sal55, C, yes, as it underpins everything else practically. I used to think so too. Turns out that might not be true. Pretty much all the computing I do rests on the GCC or LLVM compilers. LLVM is written in C++. A lot of GCC is written in C++ and as of 2012 a C++ compiler has been required to build...
by Heater
Sun Oct 13, 2019 3:27 am
Forum: General discussion
Topic: PrintDrone wall printing graffiti drone
Replies: 6
Views: 363

Re: PrintDrone wall printing graffiti drone

It's been many years since I saw graffiti high up on buildings, under bridges and other such inaccessible places and speculated we would see the place being uglyfied by quad copters one day.

I guess that day has finally come. I hope the kids that do this get long prison sentences
by Heater
Sun Oct 13, 2019 3:17 am
Forum: C/C++
Topic: Creating a Raspberry Pi program in Qt Creator
Replies: 28
Views: 3337

Re: Creating a Raspberry Pi program in Qt Creator

No but some years ago I did similar on the Pi 1. Qt 5 was not available for Raspiabian so the first thing to do was build Qt 5 from sources following these instructions: https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi This was on a Raspbian Lite so no X Windows. One can run Qt apps directly...
by Heater
Sat Oct 12, 2019 10:54 pm
Forum: Other programming languages
Topic: programming with c#
Replies: 17
Views: 551

Re: programming with c#

I think I would have a very hard time translating any non-trivial Forth or Smalltalk to C. Or even from class and template heavy C++ to C. I once worked for nearly two years on reimplementing an Intel x86 assembler project in C. Which was, shall we say, interesting given the total lack of documentat...
by Heater
Sat Oct 12, 2019 11:47 am
Forum: General programming discussion
Topic: Programming languages support
Replies: 37
Views: 1166

Re: Programming languages support

My help desk is closed for a while. I have enough problems of my own to solve.

I'm sure I can leave it in your capable hands.
by Heater
Sat Oct 12, 2019 8:25 am
Forum: General discussion
Topic: Raspi 4 file server disappointing transfer speed, degradation and segfaults
Replies: 6
Views: 306

Re: Raspi 4 file server disappointing transfer speed, degradation and segfaults

klesk, This is VERY disappointing, I was expecting improved performance from the Raspberry PI 4 not unreliability and degradation That is a sad case. You have run out of memory and the Linux kernel SLUB memory allocator has given up. See end of error messages. That is a bug in the Linux kernel. It's...
by Heater
Sat Oct 12, 2019 8:10 am
Forum: General programming discussion
Topic: Programming languages support
Replies: 37
Views: 1166

Re: Programming languages support

PeterO, As is often the case you seem to be making your argument with no actual real experience of using the thing you are criticising. As is so often the case you are making wild, unfounded, assumptions about people's knowledge and experience and hence showing yourself incapable of rational discuss...
by Heater
Sat Oct 12, 2019 5:43 am
Forum: General discussion
Topic: AVR assembler
Replies: 10
Views: 142

Re: Pi4 as Desktop computer

Don't give up so easily. If you are capable of programming an 8 bit micro-controller in assembler you are capable of setting up a Pi for use in writing AVR code and flashing the chips. Even if it does mean building the tools from source code. For example, have a look at this article: https://learn.s...
by Heater
Fri Oct 11, 2019 5:31 pm
Forum: General discussion
Topic: AVR assembler
Replies: 10
Views: 142

Re: Pi4 as Desktop computer

Years ago I wanted to program AVR from Linux and built myself an AVRUSB. Or you can buy one very cheap: https://www.fischl.de/usbasp/ https://scienceprog.com/building-and-installing-usbasp-usb-programmer-of-avr-microcontrollers/ I also used PonyProg and a simple home madeinterface circuit: http://ww...
by Heater
Fri Oct 11, 2019 11:44 am
Forum: Other programming languages
Topic: programming with c#
Replies: 17
Views: 551

Re: programming with c#

B.Goode, At what point of sophistication does C# diverge sufficiently from 'classic' C or C++ that it becomes impossible to compile and run code with the standard GCC compiler for Linux? I'm pretty sure it's impossible to compile any C# with both a C# compiler and a C++ compiler with out modificatio...
by Heater
Fri Oct 11, 2019 11:34 am
Forum: Other programming languages
Topic: programming with c#
Replies: 17
Views: 551

Re: programming with c#

est3,

This is confusing. In your other post you ask the same question but using Python. So which is it C# or Python?

I have no idea about the speed requirements for your project but if speed "bit-banging" a hardware interface is a concern neither C# or Python are suitable.
by Heater
Fri Oct 11, 2019 8:56 am
Forum: General discussion
Topic: Security question
Replies: 6
Views: 235

Re: Security question

Of course we have all done such things. I have never had reason to believe those I worked for would be snooping on me or using my personal info for nefarious purposes. If you set the thing up yourself then clearly they trust you and you are in control. Conversely I have friends that work for a compa...
by Heater
Fri Oct 11, 2019 8:20 am
Forum: General discussion
Topic: Security question
Replies: 6
Views: 235

Re: Security question

Why is your personal email address on your work phone and work Pi. Surely they are work property for work purposes? Why not just ask them? If they don't want to say it's time to look for alternative work. In the mean time, you could pop that SD card into a card reader connected to another Pi or Linu...
by Heater
Fri Oct 11, 2019 8:04 am
Forum: General discussion
Topic: Code issue
Replies: 5
Views: 220

Re: Code issue

thomaseharrison, ...flashed the file to usb... I wounder what you did there exactly. If you mean you simply wrote the intertern's software file(s) to a USB stick that is not sufficient to get it running. I suspect you don't need a freelancer but if you can say exactly the steps you took, giving file...
by Heater
Fri Oct 11, 2019 5:39 am
Forum: General discussion
Topic: Connecting the RPi to mobile network....
Replies: 18
Views: 591

Re: Connecting the RPi to mobile network....

If your Pi are on a 3G/4G mobile connection they cannot be found from the internet. Often this is true for other connections from your ISP. Ideally all devices would get an IPv6 address instead of Ipv4 and they would be public and we would have a proper peer-to-peer internet as it was intended rathe...
by Heater
Thu Oct 10, 2019 9:01 pm
Forum: General programming discussion
Topic: Programming languages support
Replies: 37
Views: 1166

Re: Programming languages support

PeterO, You don's seen to understand what I wrote. I'll try again with reference that man mage: * a file descriptor becomes ready; That could be a long time when reading from sockets, serial ports etc. * the call is interrupted by a signal handler; or Which may never happen. * the timeout expires. W...

Go to advanced search