Introducting C+

Languages and libraries

c library

SHOW HN2012

148points
47comments
#131of 1,677 in 2012
Top 8%of 2012 by points

How HN took it

MixedNo clear lean

4 positive, 9 neutral or asking, 2 mixed, 7 critical, out of 22 comments about the project. Thread score -0.15.

Execution: 2 for, 1 againstIdea: 0 for, 2 againstDesign: 1 for, 0 againstDocs: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Clever use of typedef void pointer and it works

    From 3 comments
    • A+ for clever use of typedef void star
      eungyu on HN
    • Had a play with it; few oddities, but this is pretty cool. The use of the $ function is totally not portable though, which is a bit of a pity. Doesn't compile on a mac either;…
      shadowmint on HN
    • On the other hand, this language appears to be working.
      inoop on HN

Objections

  • Name is confusing and not searchable

    From 3 comments
    • How is this different from Obj-C? Seems mostly like syntax sugar on top of what already exists in C. The call and call_with are intriguing though. Please change the name to…
      codewright on HN
    • You probably could have chosen a less confusing name..
      nthitz on HN
    • bad name
      codgercoder on HN
  • Not type-safe and uses non-portable $ function

    From 2 comments
    • That's a lot of questions. I will do my best to answer them but note I am not trying to sell a language here. I'm just a student and wanted to show an interesting project I'd…
      orangeduck on HN
    • Had a play with it; few oddities, but this is pretty cool. The use of the $ function is totally not portable though, which is a bit of a pity. Doesn't compile on a mac either;…
      shadowmint on HN
  • Fails to compile on Mac with 64-bit pointer warnings

    From 2 comments
    • Had a play with it; few oddities, but this is pretty cool. The use of the $ function is totally not portable though, which is a bit of a pity. Doesn't compile on a mac either;…
      shadowmint on HN
    • I think that's actually an issue with 64bit pointers :/
      aeroevan on HN

Requests

  • Better name

    From 2 comments
    • How is this different from Obj-C? Seems mostly like syntax sugar on top of what already exists in C. The call and call_with are intriguing though. Please change the name to…
      codewright on HN
    • What about "C&"? C and Short and easily searchable.
      chm on HN
  • Documentation of performance and trade-offs

    From 1 comment
    • "Bluegoose C runtime" What are the performance implications of these features? How do they compare with similar C++ functionality, especially things they do at compile-time? Can…
      codewright on HN

Questions

  • Whether stack-allocated values are copied into tables

    From 2 comments
    • Cool idea. I am confused by the implication of this code ``` var prices = new(Table, String, Int); put(prices, $(String, "Apple"), $(Int, 12)); ``` Stack objects are created with…
      meta on HN
    • I'm just guessing here, but I assume the variables are created on the stack, then copied into the table object, rather than references being passed to the table. So when the…
      MetallicCloud on HN

Alternatives named

  • Objective-C

    From 2 comments
    • How is this different from Obj-C? Seems mostly like syntax sugar on top of what already exists in C. The call and call_with are intriguing though. Please change the name to…
      codewright on HN
    • > Well Objective C is a separate language entirely. Not quite; Objective-C is a superset of C. You can write pure C and compile it as Objective-C all day long. This is an…
      jspthrowaway on HN
  • C++ classes and templates

    From 1 comment
    • Out of curiosity, what's wrong with C++? You can always -fno-rtti -fno-exceptions disable everything, then avoid classes and templates.
      dietrichepp on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/4725210)