|
Perhaps Sanskrit would be simpler.
|
|
|
|
|
It probably would be. I think it's effectively monospaced.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
You keep pointing out how you are working on a memory-constrained, embedded system so why in the wide world of sports are you supporting TrueType fonts?
JUST SAY NO!
"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?"
|
|
|
|
|
For many reasons.
A) It can be smaller to load a 30KB TTF font like "Telegrama" over at fontsquirrel.com than it would be to render it all out to anti-aliased alpha transparency maps with the requisite kerning tables. Particularly if you need it in several sizes
B) I work with design teams that produce content in a particular style and want it replicated as closely as possible. It's fast for me to just embed a proper TTF from somewhere like fontsquirrel - or even one they give me rather than having to try to prune and create a specific VLW fontset
C) Although this isn't as true of my professional projects, my hobby projects often target multiple pieces of hardware with different display resolutions. TTF scales. Fixed raster fonts do not. And I *have* had to do this professionally a few times when we hadn't finalized the hardware yet.
D) ARM CPUs have pretty decent floating point, and can handle my TTF and SVG rendering with relative ease. The ESP32 struggles a bit, but it's more of a hobbyist chip anyway. Edit: I should add that even then it's very usable in many situations and I employ it several of my hobby projects.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
modified 16-Aug-24 13:47pm.
|
|
|
|
|
This[^] set of time-lapse 8K images is stunning. We live in a beautiful universe.
|
|
|
|
|
Yes, and it's a terrible shame that the distances are so vast that we can't visit more places in it.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
you haven't ?
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Warp 9, Mr. Sulu.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Beautiful
We can't be alone in this.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
I can imagine someone on a far off planet saying something to effect of,
"Andromeda for the win"
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
Maybe that was uploaded as an 8K video, but the best YT shows as available is 4K.
[Edit]
Interesting. yt-dlp does show 8K as an available download format.
Not that I have the hardware to view it on...
|
|
|
|
|
I've read a number of books where characters are out sailing in some vast ocean. Most of us have never seen anything like this due to light pollution. But when you are deep into the Atlantic or Pacific, it's supposed to be a different kind of view. Back in the early 80s, I lived in southern Arizona. You could drive west toward Kitt Peak to get away from the light pollution (not too bad then), and the evening skies were spectacular.
I grew up in the southeast, and we have this thing called humidity. In Arizona, I saw stars and bands of stars that I never had seen.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
So, here I am continuing to get my learn on with Zig (still not crazy about the name, but whatevs). And you have to endure people saying crap that's so annoying to any intelligent person. Given this C example:
#include <stdio.h>
typedef struct {
int bro;
} bruh;
int main() {
bruh dude = { .bro = 42 };
bruh *pDude = &dude;
printf("o.O %i\n", pDude->bro);
return 0;
}
This would be the same thing in Zig:
const std = @import("std");
const bruh = struct { bro: i32 };
pub fn main() !void {
const dude = bruh{ .bro = 42 };
const pDude = &dude;
const stdout = std.io.getStdOut().writer();
// notice the .* syntax, that's the "reason for the OMGs"
// zig will also automatically dereference one level deep
// so the second syntax will work as well
try stdout.print("o.O {} {}\n", .{ pDude.*.bro, pDude.bro });
}
Then you here people say, "OMG OMG OMG OMG THIS IS THE BEST THING EVER COMPARED TO C", because they can type .* rather than -> . The automatic dereferencing of one level deep is cool, but ya know... peeps acting like this is the cure for cancer.
I dunno about you guys, but I instantly question someone's seniority and talent as a dev when I hear that nonsense. Don't get me wrong, Zig has some really, really nice things. But... bruh.
Jeremy Falcon
|
|
|
|
|
Why can't it dereference N-deep?
That can't be so hard to make happen?
How does -> work on a deeper nest? Or does it?
|
|
|
|
|
jochance wrote: Why can't it dereference N-deep? Beats me, I'm still learning. AFAIK, it only goes one level deep, so with a double pointer, I'd still have to use the _* syntax. 72.5% sure on that.
jochance wrote: How does -> work on a deeper nest? Or does it? By one level deep I mean one pointer level, not nested members.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: Then you here people say, "OMG OMG OMG OMG THIS IS THE BEST THING EVER COMPARED TO C", because they can type .* rather than ->.
I can absolutely see why the newcomers would say that for sure.
I might make the claim that an experienced developer might prefer having to make the distinction, because the compiler essentially is making you aware of the situation, forcing you to think carefully about it and to acknowledge that yes, there is indirection involved and this is what you meant. As opposed to having things just happen to magically fall into place ("do I need the indirection or not? who cares...").
I haven't done C/C++ in 18+ (?) years, and I remember it took me a long time to fully wrap my head around pointers and this sort of thing. But once the light switch came on, it suddenly all made a lot of sense, and I've always been okay with these sorts of idiosyncrasies since.
I wonder how well I would do if I had to go back. Going over your sample, it still makes sense to me and I didn't have to think twice.
|
|
|
|
|
dandy72 wrote: I might make the claim that an experienced developer might prefer having to make the distinction 100% agree. I personally think the distinction isn't a bad thing. Fortunately, the Zig compiler will catch boo boos, but there's nothing wrong with the older syntax. But you know how it is with the younger generation... doesn't matter what it is as long its new and feels like it's theirs.
dandy72 wrote: and I remember it took me a long time to fully wrap my head around pointers and this sort of thing. Probably didn't help to see code examples like ****pSomething either. They're powerful though, especially when memory constraint is a concern, which IMO even in a system with a large amount of RAM a program shouldn't be too careless with memory. But, if they're abused then it's a mess... kinda like macros.
All the hate for JavaScript (by those who pretend to know it but don't), but that's one thing JavaScript does really well... once you understand it. Just about every variable's value is a reference to a table entry in memory and copying a variable just literally does a shallow copy with a reference to the same entry, which is akin to pointers in concept.
dandy72 wrote: I wonder how well I would do if I had to go back. Going over your sample, it still makes sense to me and I didn't have to think twice. I think you would man. The stuff comes back once you dust off the cobwebs a bit.
Jeremy Falcon
modified 15-Aug-24 15:39pm.
|
|
|
|
|
Jeremy Falcon wrote: Probably didn't help to see code examples like ****pSomething either
I remember seeing these sorts of things in samples that were designed to test your comprehension. I was hopeless at first, but as mentioned, once I "got" it, it became second nature and I've remained unfazed by them ever since. Of course I'd avoid intentionally writing such code, but if I was presented with something like that, I could always deal with it.
|
|
|
|
|
If everyone had stuck to C the world would be a better place.
|
|
|
|
|
I'd consider starting a spam/scam based "marketing" campaign for them.
Email spam. Codeproject spam. Robocalls.
I for one, once receiving spam, I *do* remember the company that's being advertised.
Like "Skyline Packaging"
Which I will *never* *ever* use now.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Picture people submitting the spam they receive to some global entity that then validates, aggregates and publishes a blacklist.
Host it at, I dunno, www.boycottknownspammers.com. You're welcome.
I suspect there wouldn't be many companies left in the world that wouldn't eventually make their way on the list.
[Edit]
Include numbers. The more spam they send, the higher on the list they end up.
There's a business model in there somewhere. Somebody please make it happen.
|
|
|
|
|
honey the codewitch wrote: Which I will *never* *ever* use now.
I've been saying this for years, and I plan to stick by it, too!
No sense in reinforcing bad behavior by shopping for their products...
|
|
|
|
|
I use Linux almost exclusive except when I can't. And then I just Remmina(RDP) into whatever I need to do or spin up a VM. So today I got a new lappy and immediately put a flavor of Linux Debian on it. So far on my default I have the following installed. What would you add to yours. Curious to see the answers.
Joplin Notes
Brave Web Browser - Personal Stuff only
Firefox - Work related only
Remmina for RDP to Windows Servers
Microsoft Teams client (I know but I must)
notepadqq
cisco anyconnect - which was a pain to get working.
WPS 2019 Office for dealing with Microsoft Business Central Config Packages. Works wonderfully
vsCode
Android Studio
To err is human to really elephant it up you need a computer
|
|
|
|
|
Evolution as e-mail client.
I use it not only for work related stuff (Exchange Server connection for one customer via EWS, works sooooo much better than Outlook) but also to connect to my personal e-mail (Proton Mail).
And it is a standard package.
Other things depend on what you do.
I also use Remmina as RDP-client
For Teams I use the flatpak version, it seems more stable than the native package.
Perhaps OnlyOffice as Word/Excel replacement if you only need the basics, it does all that I need, otherways I'd suggest LibreOffice.
If you need to edit pdf-files you should take a look at MasterPDF Editor (not free but doesn't cost too much).
|
|
|
|