• Let's Destroy C

    From Nightfox@77:1/110 to All on Thu Jan 30 20:17:18 2020
    I just saw this tonight - Using the pre-processor to make C look different and do different things than we're used to:

    https://bit.ly/2tTFWZj

    Full link: https://gist.github.com/shakna-israel/4fd31ee469274aa49f8f9793c3e71163#lets-des troy-c

    Nightfox
    --- SBBSecho 3.10-Win32
    * Origin: Digital Distortion: digdist.synchro.net (77:1/110)
  • From ryan@77:1/128 to Nightfox on Fri Jan 31 00:38:34 2020
    I just saw this tonight - Using the pre-processor to make C look
    different and do different things than we're used to:

    Saw this on reddit! Super curious to check this out.

    Frankly, the longer I've been involved (even from an arm's length) at
    software development, the more I as a human am terrified of C. Screw it, I don't want all the power it gives you by revealing the entirety of your computer to your code. It may be fractions of a millisecond quicker at times, but I'm happy to use something like node.js at this point and have some security, rails, and memory management built in.

    --- Mystic BBS v1.12 A44 2020/01/16 (Linux/64)
    * Origin: monterey bbs (77:1/128)
  • From Nightfox@77:1/110 to ryan on Fri Jan 31 08:54:36 2020
    Re: Re: Let's Destroy C
    By: ryan to Nightfox on Fri Jan 31 2020 12:38 am

    Frankly, the longer I've been involved (even from an arm's length) at software development, the more I as a human am terrified of C. Screw it, I don't want all the power it gives you by revealing the entirety of your computer to your code. It may be fractions of a millisecond quicker at times, but I'm happy to use something like node.js at this point and have some security, rails, and memory management built in.

    I have more experience with C++ than C - But I like C++ as a language (and C too, to an extent). I think the power it gives you is one of its advantages. It doesn't force you into a certain paradigm or to do things a certain way. C++ has features that newer languages don't have (such as multiple inheritance and direct manipulation of pointers). Like any tool, one just needs to know how to use it well. And they do say C++ gives you enough rope to shoot yourself in the foot..

    Nightfox
    --- SBBSecho 3.10-Win32
    * Origin: Digital Distortion: digdist.synchro.net (77:1/110)
  • From Dr. What@77:1/123 to ryan on Sat Feb 1 13:15:16 2020
    software development, the more I as a human am terrified of C. Screw it,
    I don't want all the power it gives you by revealing the entirety of your computer to your code. It may be fractions of a millisecond quicker at times, but I'm happy to use something like node.js at this point and

    The idea that C is a "low level" language is false today. Eric S. Raymond
    did a nice series of articles based on "C is not a low level language" in ACM Queue (https://queue.acm.org/detail.cfm?id=3212479).

    Our computers have not been fast PDP-11s now for quite some time now which is how exploits like Spectre and Meltdown were able to be created.

    C is only faster (and as you alluded to, only marginally faster) because it's very lightweight and simple (and matches the emulator that's built in to your computer to make it LOOK like a PDP-11 to most of the software running on it).

    Today, you have languages like Go and Julia which can almost match C for speed, but also have things like multi-processing built in (Go) or have Python-like operations (like lists) built in (Julia).

    --- Mystic BBS v1.12 A43 2019/02/24 (Windows/64)
    * Origin: Error 404 BBS (77:1/123)
  • From Netsurge@77:1/100 to ryan on Wed Feb 5 11:43:32 2020
    Frankly, the longer I've been involved (even from an arm's length) at software development, the more I as a human am terrified of C. Screw it,
    I don't want all the power it gives you by revealing the entirety of your computer to your code. It may be fractions of a millisecond quicker at times, but I'm happy to use something like node.js at this point and
    have some security, rails, and memory management built in.

    Long live BASIC!

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://scinet-ftn.org

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)