News for hackers. Stuff that matters.

x0re4x

Re:Sp.h is the standard library that C deserves on Saturday May 23, 2026 @04:20PM (#48251085)
I suggest using a slightly different array operator syntax for fat pointer arrays: "char a[|..|]" instead of just "char a[..]" to make them visually distinct and indicate that element access has additional bounds check. (syntax inspired by ocaml)
Re:Just Fucking Use Go on Friday May 08, 2026 @01:25PM (#48066166)
Go language is explicit: identifiers starting with a capital letter are exported.

https://go.dev/ref/spec#Exported_identifiers

Re:I Built an Open-World Engine for the N64 [video] on Saturday March 28, 2026 @03:39PM (#47557580)
There is a nice video by Kaze Emanuar demonstrating N64 easily pushing 300k shaded triangles per second without special optimizations in a game engine:

https://www.youtube.com/watch?v=GC_jLsxZ7nw

Re:I Built an Open-World Engine for the N64 [video] on Saturday March 28, 2026 @12:30PM (#47556083)
It might be because he is not using nintendo's sdk anymore, particularly the "microcode" for RSP "coprocessor". Most N64 emulators usually do not emulate RSP properly, but detect which specific nintendo's microcode is used and then emulate it's behavior.
Re:Nvidia GeForce 256 is 25 years old on Sunday September 01, 2024 @11:18PM (#41422331)
> TFA claims the GeForce 256 was "the world's first GPU", but why not consider the NVidia Riva TNT a real GPU?

GeForce 256 integrated hardware vertex processing (transform and lighting), which Riva TNT and others did not - the CPU had to do this part.

The RCP of the Nintendo 64 was probably the first modern GPU integrating RSP for vertex processing and RDP for rasterization into a single chip.

There is no need to guess:

"There will be no longer a Nord Stream 2. We will bring an end to it."

https://twitter.com/townhallcom/status/1490791554088321024

@LeSUTHU:

* if you want to design and play around with your grammar (builtin interpreter is very nice to try things out):

https://www.antlr3.org/works/

* once you want to actually implement your language:

https://cs3110.github.io/textbook/chapters/interp/intro.html

* some older tutorials:

https://web.archive.org/web/20051220013748/http://pllab.kais...

https://web.archive.org/web/20051220043933/http://pllab.kais...

NOTE: modern replacement for ocamlyacc: http://gallium.inria.fr/~fpottier/menhir/

Probably using something like that: https://github.com/xoreaxeaxeax/sandsifter
Re:Multicore OCaml: May 2021 on Saturday June 12, 2021 @12:16AM (#27481481)
Try F#. It's not exactly ocaml, but close enough if you want to stay on windows.
"In a Time of Universal Deceit — Telling the Truth Is a Revolutionary Act"
Probably relevant: "IQ and National Success" https://youtu.be/8u0Lmp_jHw8?t=332
Facts and evidence are the Tools Of The Patriarchy. You supposed to shut up and blindly belive. Do not question the western state ideology of progressivism.

(P.S.: as an unbeliver you won't be able to "see" the "Benefits™")

Hmm... pretty sure I already saw something like that long time ago: https://github.com/id-Software/Quake-2/blob/master/game/p_tr...
Re:OCaml 4.10 on Saturday February 22, 2020 @09:17AM (#22391133)
I have some more older links, ocaml changed a bit over time, but I think they are still relevant:

https://caml.inria.fr/pub/docs/oreilly-book/html/index.html

https://caml.inria.fr/pub/docs/u3-ocaml/

https://ocaml.github.io/ocamlunix/

Re:OCaml 4.10 on Saturday February 22, 2020 @08:04AM (#22390777)
Re:D as a C Replacement on Wednesday July 03, 2019 @02:32AM (#20342107)
Thank you for clarification. I was looking at https://www.digitalmars.com/articles/betterC.html, https://dlang.org/spec/betterc.html is a better description.
Re:D as a C Replacement on Wednesday July 03, 2019 @01:30AM (#20341850)
> Consider C's Biggest Mistake

I do not think it is a significant problem in C. It might be more of a problem in C++.

> You can use D in -betterC mode, write code pretty much just like you would in C, and not have that problem.

D is an improved, more polished version of _C++_, not C; "-betterC" mode is misleading, it is more of a "betterC++" mode (features: classes, exceptions, RAII, templates).

"The simplicity of C is more useful than the additional features of C++." -- (Sam Watkins) s/C++/D/g

Don't get me wrong: D would be a great replacement for _C++_, but not C. For a better C I would look at a subset of Go (GC would have to go away).

Re:Go Slices Are Fat Pointers on Monday July 01, 2019 @05:31AM (#20323736)
I would interpret the silence of C people as "Thanks, but no, thanks." The success of C for such long time without having fat pointers, exceptions, RAII, etc... is probably an indication they weren't needed that much.

(Jonathan Blow: Ideas about a new programming language for games.) https://www.youtube.com/watch?v=TH9VCN6UkyQ&list=PLmV5I2fxai...

Re:MIPS R3000 on Thursday June 20, 2019 @01:04PM (#20234890)
You could always put NOPs into delay slots by default and replace them later with something more useful.
Re:Explaining Sex Rate Changes on Monday April 08, 2019 @07:01AM (#19604010)
> Explaining Sex Rate Changes

"An ironic side-effect of feminism is to free men from the burden of being the head of the house." https://www.youtube.com/watch?v=RPETpCVrH9Y

"Why you can't find a man: Hypergamy Floats" https://www.youtube.com/watch?v=4UWpmd1yjVc

Re:I disagree with Linus Torvalds about C++ (2009) on Monday December 24, 2018 @08:55AM (#18752131)
There is a good comment after the article: "The simplicity of C is more useful than the additional features of C++." -- (Sam Watkins)
Re:Go 1/2 Proposal: Immutable Types on Tuesday October 02, 2018 @10:53PM (#18127325)
Hi,

my humble opinion: how much would "Immutable Types" add to the language? How much complexity would it add? Things can already be made immutable from outside by hiding them in private variables/struct elements.

The question is: why did Go became successful without having "Immutable Types"? (or "Reference Types", ADTs too please?) Maybe those things are just frills, "nice to have" features.

Example like "type ImmutableMapAndKey const map[const * const Object] const * const Object" looks like really ugly Go to me... this is starting to look like C++...

https://www.youtube.com/watch?v=cQ7STILAS0M (why Golang is Sucessful by Creator of Golang Rob-pike)

P.S.: I wouldn't mind having "Immutable Types", "Reference Types", ADTs, etc. in Go. But not if it means abandoning simplicity of the language.

Re:C is the desert island language on Tuesday October 02, 2018 @09:27PM (#18127014)
No, GCC is still written mostly in C. Try:

git clone --depth=1 https://github.com/gcc-mirror/gcc.git

cloc gcc/gcc

Re:Should you learn C to “learn how the computer works”? on Tuesday October 02, 2018 @07:33PM (#18126567)
stack_ret.c:5:10: warning: function returns address of local variable [-Wreturn-local-addr] return new;
Re:Product Updates Based on Your Feedback on Wednesday September 26, 2018 @08:16AM (#18075088)
Well, putting:

{ "SyncDisabled": true }

into /etc/chromium/policies/managed/test_policy.json (for debian linux) seems to do the trick for now, unsure how long it lasts...

see: https://www.chromium.org/administrators/policy-list-3#SyncDi...

Re:The cost of forsaking C on Tuesday February 13, 2018 @10:06PM (#16373101)
Do you have a specific example? I wrote programs in Z80, AVR, x86/amd64 and MIPS assembly. In my experience writing C is MUCH easier.

Older »