• 17 Posts
  • 42 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle

  • shami1kemi1@sopuli.xyztoProgrammer Humor@programming.devWhitespace
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    9 months ago

    Then again, at least in C, the mantra is “declaration follows usage”. Surely you don’t write pointer dereferences as * ptr? Most likely not, you most likely write it as *ptr. The idea behind the int *ptr; syntax is basically that when you do *ptr, you get an int.

    And with this idea, stuff like function pointers (int (*f)(void)), arrays of pointers (int *a[10]) versus pointers of arrays (int (*a)[10]) etc. start making sense. It’s certainly not the best way to design the syntax, and I’m as much a fan of the Pascal-styled “type follows the identifier” syntax (e.g. let x: number;) as anyone, but the C way does have a rhyme and a reason for the way it is.


  • Fairly sure that the USA’s main export are various hydrocarbon products like gasoline and crude petroleum alongside LNG. And things such as aeroplane parts and passenger vehicles.

    But even for the war and murder, I’m fairly sure that people like pres. Zelenskyy alongside the people of Ukraine are quite happy with the “war and murder” exported to them in the form of HIMARS, Patriot and other American armaments to defend their homes against an aggressor attempting to wipe them out. Not to mention the millions of people here in the rest of Europe, or in Japan, South Korea et cetera that explicitly benefit from partnerships with the US even in the fields of “war and murder”.

    But yes, as far as the Israel-Hamas conflict is concerned, I’m not even sure whether Israel even needs the help. It’s nevertheless quite morally corrupt to aid Israel in this kind of a manner.







  • The best argument against democracy is a five minute conversation with the average voter, as said by someone but who probably wasn’t Winston Churchill. Dunno why it’d be any different within a workplace versus politics. (Of course there’s also the idea that democracy is the worst except for all the others, which… I suppose. It’s certainly better than what the fascists and the tankies come up with although that’s not saying much.)

    Also, this has certainly been tried although admittedly not in a holistic manner. The Nordic model is basically this blended with more traditional ownership structures. A mixture of the welfare state providing major services with privately owned enterprises alongside co-ops and “democratised workplaces.” And… it’s fine. Has some nice qualities when compared with contemporary socio-economic structures but the political process can muddy the waters and make things inefficient through perverse incentives. Not that similar perverse incentives don’t exist elsewhere, but y’know…



  • It’s time to nationalize Starlink & SpaceX.

    I really don’t know what that would actually accomplish. How would any government benefit from doing that kind of a move, especially when the reason seems to just be that Elon is a douche, and that doesn’t seem like a valid reason to do such things. Hell, even if we were to count this kind of blatant aiding of an enemy country as treason, I doubt this would be an appropriate response.

    If anything, it might just set a dangerous precedent and in general be against the very same liberal values which are exactly why we’re helping Ukraine against the foreign imperial occupier. Arbitrary nationalisation of the assets of politically inconvenient people is the kind of stuff that an autocratic regime such as the Russian Federation under Vova would do. And that’s the kind of thing it actually does do, defenestration of political rivals is a convenient way to accomplish many goals, after all.



  • Why Emacs has sound support? Well, you could ask that about many other things in Emacs, but sound support is relatively understandable since you want to be able to do things such as play notification sounds. That’s for example how erc recommends the use of the sound system.

    As to why ALSA and not PipeWire, well, for one, the support is from before pipewire was even a thing. The ALSA support even seems to be from the time when PulseAudio was new (2006 seems to be year of the first ALSA-related commits in src/sound.c.) And since it seems to work, I’m not sure that the developers are that keen to just going and replacing the ALSA support with PipeWire, especially given the latter’s complexity.





  • En ihan ymmärrä että miksi valtion budjetin pakkailu liikennevirhemaksuilla on perustuslain vastaista? Varsinkin kun kyseessä on tällainen korotus joka parantaisi liikenneturvallisuutta tekemällä ylinopeudesta kalliimpaa. Olisi mielenkiintoista lukea perustuslakivaliokunnan perusteita tälle tulkinnalle, koska tämä vaikuttaa todella mielenkiintoiselta ajatukselta.

    Jos mitään niin ehkä perustuslakia kannattaisi muuttaa tämän asian kannalta.


  • Juu elikkäs oma syksyn alku on ollut mielenkiintoinen. Jokin mysteeritauti oli pistänyt minut saikulle tuossa tiistaista lähtien. Oli kyllä aika inhottava 39 astetta kuumetta mutta se on onneksi hävennyt. En tiedä onko/oliko koronaa tai jotain muuta vastaavaa ihanuutta. Nyt olo onkin jo parempi vaikka silti on vähän kuumetta.

    Mites muuten? Noh, mitäpä tässä. Pitäisi varmaan taas tehdä opintoja ja pistää vähän koneoppimista tulille. Olisi myös kiva jos viimeinkin saisin yhteyden mun graduohjaajaan. Noh, ehkä ensi viikolla sitten kun kuitenkin menee töihinkin kun nuo asiat kuitenkin liittyvät aika vahvasti toisiinsa.












  • Suomea ei autettu kovinkaan paljon toisen maailmansodan jälkeen. Hitto vieköön, meille ei edes annettu lupaa ottaa Marshall-apua, koska Neuvostoliiton mielestä meidän piti pysyä “neutraalina” (lue: sateliittivaltiona NL:lle.)

    Ei anneta historian toistaa itseään tässä asiassa, vaan annetaan Ukrainalle juuri se apu, minkä ukrainalaiset tarvitsevat maansa jälleenrakentamiseen kun Venäjä on lyöty ja pakotettu rajojensa sisäpuolelle.

    Слава Україні!