GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Wanderer über dem Nebelmeer (wandereruber@poa.st)'s status on Wednesday, 14-May-2025 02:24:48 JST Wanderer über dem Nebelmeer Wanderer über dem Nebelmeer
    Watching a dude give "Tips for C programming" and he spends 90% of his time telling you to not be afraid of memory bugs and to implement concepts like referring to objects by it's array index, not the raw pointer.
    This makes it safer of course but by that point I might just as well use Go or Zig or whatever because they've done all that for me and I don't feel like reinventing the wheel badly.

    >I have written a struct type generator in javascript that basically does what generics do
    >You can just do a unity build to avoid dealing with headers (outdated concept)

    Why am I using C?
    I have question marks in my pupils.
    In conversation about a month ago from poa.st permalink
    • Embed this notice
      lainy (lain@lain.com)'s status on Wednesday, 14-May-2025 02:24:46 JST lainy lainy
      in reply to
      • Tyler
      @WandererUber @tyler and don't forget that it's possible to write C in every language
      In conversation about a month ago permalink
    • Embed this notice
      Wanderer über dem Nebelmeer (wandereruber@poa.st)'s status on Wednesday, 14-May-2025 02:24:47 JST Wanderer über dem Nebelmeer Wanderer über dem Nebelmeer
      in reply to
      • Tyler
      @tyler I feel like that too in general, but this video left me with the opposite impression and more confused than before.
      Thinking back on it, I've basically always just finagled the language and all the "dumb computer shit" they do out of my goddamn way and spent 99% of my time on the code I wanted to work on in the first place. I wrote an entire C simulation but just didn't allocate memory or deal with pointers, and when I used Go I just used it for what it was supposed to do so never ran into any issues.
      I think I would really love Zig if I did a big project in it.

      in the end, I really don't feel like writing a memory allocator or doing a "unity build" to work around an antique header system. I think it must be possible to have my cake and eat it too in this case
      In conversation about a month ago permalink
    • Embed this notice
      Tyler (tyler@nicecrew.digital)'s status on Wednesday, 14-May-2025 02:24:48 JST Tyler Tyler
      in reply to
      I saw that video and i liked it.

      For me, I prefer the C syntax much more than zig and go, and there are less gotchas in my opinion, because less is hidden from you.
      In conversation about a month ago permalink
    • Embed this notice
      lainy (lain@lain.com)'s status on Wednesday, 14-May-2025 02:32:03 JST lainy lainy
      in reply to
      • Tyler
      @WandererUber @tyler i'm talking about modifying state in 20 places, calling every variable i, j or k, writing zero tests and being a pro at memory handling (only some small leaks that barely crash at all)
      In conversation about a month ago permalink
      snacks likes this.
    • Embed this notice
      Wanderer über dem Nebelmeer (wandereruber@poa.st)'s status on Wednesday, 14-May-2025 02:32:04 JST Wanderer über dem Nebelmeer Wanderer über dem Nebelmeer
      in reply to
      • lainy
      • Tyler
      @lain @tyler just writing procedural programming style and ignore all the other nonsense or are you talking about something else?
      In conversation about a month ago permalink
    • Embed this notice
      Wanderer über dem Nebelmeer (wandereruber@poa.st)'s status on Wednesday, 14-May-2025 02:37:25 JST Wanderer über dem Nebelmeer Wanderer über dem Nebelmeer
      in reply to
      • lainy
      • Tyler
      @lain @tyler pill me on hating C?
      In conversation about a month ago permalink
    • Embed this notice
      lainy (lain@lain.com)'s status on Wednesday, 14-May-2025 02:37:25 JST lainy lainy
      in reply to
      • Tyler
      @WandererUber @tyler https://web.mit.edu/~simsong/www/ugh.pdf chapter 9
      In conversation about a month ago permalink

      Attachments


    • Embed this notice
      Wanderer über dem Nebelmeer (wandereruber@poa.st)'s status on Wednesday, 14-May-2025 03:38:22 JST Wanderer über dem Nebelmeer Wanderer über dem Nebelmeer
      in reply to
      • lainy
      • Tyler
      @lain @tyler That chapter spends quite a bit of time on UNIX (obviously) and some strange historical artifacts about the time period (pack it up, gramps. No one wants to hear it!) but when they finally get to why C is bad, they immediately propose
      >adding hardware support for garbage collection into the last, current and next generation of microprocessors
      which sounds completely fucking bonkers to me.

      The next point is lack of error checking which sounds reasonable, but the code examples seem extremely dated. I doubt any C programmer is
      >allocating a char array that is 80 bytes long because the terminal is 80 characters wide
      these days. I get the point though.

      you like the "Elixir", huh? Given you wrote an entire fediverse server in it...
      I will learn the basics now.
      In conversation about a month ago permalink
      lainy likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.