Click here to Skip to main content
15,887,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: CCC 03-03-2023 Pin
FreedMalloc2-Mar-23 22:49
FreedMalloc2-Mar-23 22:49 
GeneralRe: CCC 03-03-2023 Pin
pkfox2-Mar-23 22:58
professionalpkfox2-Mar-23 22:58 
GeneralRe: CCC 03-03-2023 Pin
FreedMalloc2-Mar-23 23:05
FreedMalloc2-Mar-23 23:05 
GeneralRe: CCC 03-03-2023 Pin
ChandraRam2-Mar-23 23:08
ChandraRam2-Mar-23 23:08 
GeneralRe: CCC 03-03-2023 Pin
pkfox2-Mar-23 23:10
professionalpkfox2-Mar-23 23:10 
GeneralRe: CCC 03-03-2023 Pin
FreedMalloc2-Mar-23 23:21
FreedMalloc2-Mar-23 23:21 
GeneralRe: CCC 03-03-2023 Pin
OriginalGriff3-Mar-23 0:09
mveOriginalGriff3-Mar-23 0:09 
GeneralThe weird wide web Pin
honey the codewitch2-Mar-23 18:33
mvahoney the codewitch2-Mar-23 18:33 
I've got a web wizard who has developed my htcw_gfx library's website so far, including this page:

Font/Image Converter[^]

Which despite the name is pretty much a one stop shop for converting multimedia assets into a header you can use in your htcw_gfx enabled C++ IoT projects .

It is entirely client side, so it potentially works offline (as long as you download the supporting web files), and we want to keep it that way.

However, I ran into a snag with doing the SVG -> header conversion.

The soon to be released latest version of htcw_gfx will happily parse SVG XML and so you can embed that in a header, but it's big, and parsing it is inefficient and leads to more fragmentation of the heap than is really desirable.

So to that end, I am producing a preparsed binary format that represents SVG data in a more compact and efficient form. The idea is that can be loaded and rendered readily.

Bear with me. How I plan to do that is to take the SVG data structures I've built up and write them out in a block with markers in it that tell me how much memory to allocate ahead of time and a fixup list for the internal structure's pointers when it's located into memory (turning offsets into memory pointers basically)

I then plan to store that and work with it. Loading it is almost instant and doesn't fragment the heap since i can do one allocation all at once with all of the nested pointers and such contained within that one single malloc'd block.

Implementing that in javascript in order to bring that facility to the web tool above is next to impossible.

I thought we were out of luck until I was reminded of this: Main β€” Emscripten 3.1.33-git (dev) documentation[^]

I'll just wasm my htcw_gfx library into the browser and call into "C++" from javascript all on the client side.

What a world.
To err is human. Fortune favors the monsters.


modified 3-Mar-23 2:39am.

GeneralRe: The weird wide web Pin
RickZeeland2-Mar-23 19:59
mveRickZeeland2-Mar-23 19:59 
GeneralRe: The weird wide web Pin
megaadam2-Mar-23 21:55
professionalmegaadam2-Mar-23 21:55 
GeneralRe: The weird wide web Pin
englebart3-Mar-23 4:48
professionalenglebart3-Mar-23 4:48 
GeneralRe: The weird wide web Pin
honey the codewitch3-Mar-23 5:10
mvahoney the codewitch3-Mar-23 5:10 
GeneralWordle 622 Pin
StarNamer@work2-Mar-23 13:06
professionalStarNamer@work2-Mar-23 13:06 
GeneralRe: Wordle 622 Pin
Amarnath S2-Mar-23 13:37
professionalAmarnath S2-Mar-23 13:37 
GeneralRe: Wordle 622 5/6 Pin
jmaida3-Mar-23 11:09
jmaida3-Mar-23 11:09 
GeneralRe: Wordle 622 Pin
Sandeep Mewara2-Mar-23 15:50
mveSandeep Mewara2-Mar-23 15:50 
JokeRe: Wordle 622 Pin
Peter_in_27802-Mar-23 17:13
professionalPeter_in_27802-Mar-23 17:13 
GeneralRe: Wordle 622 Pin
Shane01032-Mar-23 18:00
Shane01032-Mar-23 18:00 
GeneralRe: Wordle 622 Pin
OriginalGriff2-Mar-23 19:58
mveOriginalGriff2-Mar-23 19:58 
GeneralRe: Wordle 622 Pin
ChandraRam2-Mar-23 20:27
ChandraRam2-Mar-23 20:27 
GeneralRe: Wordle 622 Pin
pkfox2-Mar-23 21:37
professionalpkfox2-Mar-23 21:37 
GeneralRe: Wordle 622 Pin
Sander Rossel2-Mar-23 22:15
professionalSander Rossel2-Mar-23 22:15 
GeneralRe: Wordle 622 X/6 Pin
den2k882-Mar-23 22:58
professionalden2k882-Mar-23 22:58 
General2040: as the great world war of the AIBots continues ... a meditation in sonnet form Pin
BillWoodruff2-Mar-23 12:53
professionalBillWoodruff2-Mar-23 12:53 
GeneralRe: 2040: as the great world war of the AIBots continues ... a meditation in sonnet form Pin
megaadam2-Mar-23 21:59
professionalmegaadam2-Mar-23 21:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.