det.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon Server des Unterhaltungsfernsehen Ehrenfeld zum dezentralen Diskurs.

Administered by:

Server stats:

1.8K
active users

#golang

32 posts18 participants0 posts today
radhitya / al1r4dhi folks<br><br>currently i'm searching a place to talk about <a class="hashtag" href="https://pl.100indie.org/tag/activitypub" rel="nofollow noopener noreferrer" target="_blank">#activitypub</a>. i have a plan to create my own social media with <a class="hashtag" href="https://pl.100indie.org/tag/activitypub" rel="nofollow noopener noreferrer" target="_blank">#activitypub</a> protocol in <a class="hashtag" href="https://pl.100indie.org/tag/golang" rel="nofollow noopener noreferrer" target="_blank">#golang</a>.<br><br>i'm okay with IRC or XMPP, thanks!
@haitchfive<p>DPF validation. What's not to like?</p><p><a href="https://oldbytes.space/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a> <a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/dpf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dpf</span></a> <a href="https://oldbytes.space/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a> <a href="https://oldbytes.space/tags/pixmap" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixmap</span></a> <a href="https://oldbytes.space/tags/bdf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bdf</span></a> <a href="https://oldbytes.space/tags/DeluxeDraw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeluxeDraw</span></a></p>
@haitchfive<p>If you so choose, you can use ASCII palette indices in DPF files, just like you would in XPM files. But in DPF there's no reason you wouldn't use any Unicode codepoint for palette indices. In fact, if you use coloured square emojis instead of plain ASCII characters,.<br>If you do it that way, when you cat a .dpf file with icons, what you will get will be... <strong><em>oh surprise!</em></strong></p><p>...icons!</p><p><a href="https://oldbytes.space/tags/DeluxeDraw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeluxeDraw</span></a> <a href="https://oldbytes.space/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a> <a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a> <a href="https://oldbytes.space/tags/xpm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xpm</span></a> <a href="https://oldbytes.space/tags/dpf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dpf</span></a> <a href="https://oldbytes.space/tags/bdf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bdf</span></a></p>
@haitchfive<p>Now I'm thinking how to reconcile the typical layered pixmap editor that Deluxe Draw aims to implement with the ZX Spectrum colour model.</p><p>That would require the editor to support layers of different resolutions: </p><ol><li>background plane with attributes (32 x 24)</li><li>bitmap plane on top (256x192) acquiring colours from the attribute layer underneath.</li></ol><p>It could conceivably be construed as a blend mode of sorts. That <strong><em>might</em></strong> possibly work.</p><p>The blend mode seems doable, the different resolutions per layer is more tricky or possibly hacky.</p><p><a href="https://oldbytes.space/tags/DeluxeDraw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeluxeDraw</span></a> <a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a> <a href="https://oldbytes.space/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a></p>
@haitchfive<p>❤️ </p><p><a href="https://oldbytes.space/tags/DeluxeDraw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeluxeDraw</span></a> <a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a> <a href="https://oldbytes.space/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a></p>
@haitchfive<p>It kind of works. Obviously this is not Deluxe Draw itself, but a little icon editor I hacked together quickly, I just couldn't stand all the palette buttons with only text.</p><p>As a welcome side effect, the DPF file format used for icons will be the same format I'm going to use for Deluxe Draw palettes. A palette file is a DPF file that only has palette information and no pixels in it. If you think of it for a moment, it makes you question why nobody else did it the right way before.</p><p>Palettes are metadata about pixels. There's no good reason to create palette file formats, palettes are part of the same thing.</p><p><a href="https://oldbytes.space/tags/DeluxeDraw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeluxeDraw</span></a> <a href="https://oldbytes.space/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a> <a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a></p>
@haitchfive<p>There are two reasons why I needed to get palette handling done early on during the development of Deluxe Draw:</p><ol><li><p>You need palettes for themes, and you need themes for a decent GUI. If every new colour you use is an improvised hack you end up with terrible looking GUIs of the sort everyone has decided not to use.</p></li><li><p>You can't have standard system icons if you don't agree on a stable palette. I needed to stabilise at least one minimal palette so I could have a regular icon format, and icons for Deluxe Draw.</p></li></ol><p>The Deluxe Pixmap Format (.dpf) is a text-based file format that is easy to read and write. The child of .xmp pixmaps and .bdf fonts. XMP pixmaps are cool but they only store one single image. BDF fonts are cool but they only store monochrome bitmaps. DPF is meant to store any number of named indexed-colour icons or glyphs.</p><p>You can only know how these icons are going to look in another system if you guarantee a stable palette is going to be available.</p><p>So there you go.</p><p><a href="https://oldbytes.space/tags/DeluxeDraw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeluxeDraw</span></a> <a href="https://oldbytes.space/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a> <a href="https://oldbytes.space/tags/palette" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>palette</span></a> <a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a></p>
@haitchfive<p>ASE and ACO palettes exported from Deluxe Draw import without a hitch in Photoshop (for whoever needs that).</p><p><a href="https://oldbytes.space/tags/DeluxeDraw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeluxeDraw</span></a> <a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a> <a href="https://oldbytes.space/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a></p>
@haitchfive<p>Now that's a better organised Deluxe Draw palette system!</p><p>With many thanks to <span class="h-card" translate="no"><a href="https://ludosphere.fr/@garvalf" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>garvalf</span></a></span> for the helpful ideas.</p><p><a href="https://oldbytes.space/tags/DeluxeDraw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeluxeDraw</span></a> <a href="https://oldbytes.space/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a> <a href="https://oldbytes.space/tags/colour" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>colour</span></a> <a href="https://oldbytes.space/tags/palette" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>palette</span></a> <a href="https://oldbytes.space/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://oldbytes.space/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a></p>
FOSSASIA<p>How does <a href="https://floss.social/tags/Golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Golang</span></a> supercharge <a href="https://floss.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a> development?</p><p>From blazing-fast performance to powerful concurrency, Golang is reshaping how developers build and scale systems. Watch Daniel J. Blueman share why teams are moving from <a href="https://floss.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> to Golang—and what they gain?</p><p>Click here: <a href="https://youtu.be/okkFCQsOQG8" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/okkFCQsOQG8</span><span class="invisible"></span></a></p>
Jacket<p>Here's how I see people based on their choice of API programing language.</p><p><a href="https://tech.lgbt/tags/JavaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JavaScript</span></a>: You don't care about anything else then the engineer pool you can employ so you take the default one. You're the basic b*.</p><p><a href="https://tech.lgbt/tags/csharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csharp</span></a>: You're a Cpp programmer that only want to use the closest relative. You don't like change.</p><p><a href="https://tech.lgbt/tags/elixir" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>elixir</span></a>: You're the kind of person to read every articles on a subject to take a decision. What you want is nothing the objective best. Your vim is better then theirs. You know you have no recruitment pool but it doesn't matter, you're a 100x developer and nobody could understand how brilliant your code is anyway. You're an hipster</p><p><a href="https://tech.lgbt/tags/pyhon" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pyhon</span></a>: You created your startup to be sold. You basically want a great demo fast, get an offer and gtfo.</p><p><a href="https://tech.lgbt/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a>: it's been 10 years you didn't talk to anyone. You got in the hipe and never realised that everyone moved on except you.</p><p><a href="https://tech.lgbt/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a>: You wish you could use elixir but settled for the second best for none technical reasons. You're submissive. Google is your master.</p>
Continued thread

To be honest, it may never be integrated with the main application when it's a delivered product. But it's exercises like this where you learn the most, finding out what are the limits of extensibility and what the level of pain will be like for other developers using this stuff.

Implementing OS integration stuff such as common file dialogs, system clipboard copying and pasting, and accepting desktop file drops. Some other things like using the system caret may prove more tricky, the library api has a method to inquiry system integration capabilities as they are being implemented across platforms. At this time I'm testing on Mac but I'm already preparing equivalent functionality for Windows and Linux integrations. Hopefully the Gnome/KDE divide won't be too rough.