Hacker Newsnew | past | comments | ask | show | jobs | submit | CodeArtisan's commentslogin

C23 removed the whole stuff about indeterminate value and trap representation. Underflow/overflow being silent or not is implementation defined.


Signed overflow is just undefined.


Shouldn't it be (+ a (apply + b))


Almost. It should be (+ a (apply #'+ b)). Common Lisp is a Lisp-2, so a + in the argument position is assumed to be a variable named +, not the function named +, unless you specify otherwise.


No, the idea is to assume for this example that + only can be used with two arguments and define a new function that can be used with any number of arguments.


The video game S.T.A.L.K.E.R is happening in the Chernobyl Exclusion Zone, an area filled with super natural anomalies and artifacts due to the radiation. A legend/rumor says that there is a special crystal granting any wish at the center of the zone, inside the power plant's sarcophagus. The existence of the crystal can't be verified because a cultist faction, The monolith, is preventing anyone to reach the center.

https://en.wikipedia.org/wiki/S.T.A.L.K.E.R.:_Shadow_of_Cher...


I have been using Framagit for a few years now. it has been online since 2016, it's the public Gitlab instance of Framasoft, a french non profit organization. RocketGit has been online since 2015 and relies on its own software, i have never used it but i have heard about it regularly.

https://framagit.org/

https://en.wikipedia.org/wiki/Framasoft

https://rocketgit.com


Hack came after. Noduerme is referring to https://en.wikipedia.org/wiki/HipHop_for_PHP


Whoever made this probably got a gigantic bonus!


Today I learned


>I can't think of a single example where foreign inteference (or war) has had the citizenry welcome foreign powers as liberators or otherwise increased freedoms or conditions in a country for those citizens.

When Japan occupied the Netherlands East Indies in the early weeks of 1942, many Indonesians celebrated, seeing the Japanese army as the fulfillment of a prophecy attributed to Jayabaya. He had foretold a time when white men would establish their rule over Java and oppress the people for many years, only to be driven out by "yellow men from the north." According to Jayabaya, these "yellow dwarves" would remain for one crop cycle (interpreted as 3 1/2 years, corresponding to the duration of Japanese occupation), after which Java would be free from foreign domination. To most Javanese, Japan was seen as a liberator, as the prophecy appeared to be fulfilled.

https://en.wikipedia.org/wiki/Jayabaya

(To One Piece readers) I remembered this from this post https://www.reddit.com/r/OnePiece/comments/xb3lx/spoilers_jo...


>That's why array indexing is signed in C

C23 updated the definition of the [] operator to disallow negative subscripts with array type. I think you have to explicitly convert the array to a pointer type now.

    int a[2];
    a[-1]; // not ok
    (&a[0])[-1] // ok
C23: https://cstd.eisie.net/c2y.html#6.5.3.2

C11: https://port70.net/~nsz/c/c11/n1570.html#6.5.2.1



Until C23, you could declare a pointer to a procedure that takes an unspecified amount of any type arguments like this

    void foo( int (*f)() )
    {
        f(1);
        f(1, "2" , 3.0);
    }
https://godbolt.org/z/s6e5rnqv9

If you compile with -std=c23, both gcc and clang will throw an error ( (*f)() is now the same as (*f)(void) )


You do not need the pointer at all. f() not specifying the arguments has been the case since forever. "Prototypes" (90s) are newer than C.


Belgium could be in the top5 in the next report chart due to Google alone.

https://blog.google/innovation-and-ai/infrastructure-and-clo...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: