Better HN
topnewbestaskshowjobs
Log inSign up

x0re4x

58 karma · joined Jul 16, 2015 (11y ago) · 36 submissions

Submissions

comment 6mo ago · link · parent

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)

comment 6mo ago · link · parent

Go language is explicit: identifiers starting with a capital letter are exported.

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

comment 8mo ago · link · parent

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

comment 8mo ago · link · parent

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.

comment 2y ago · link · parent

> 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.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

@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/

comment 5y ago · link · parent

Probably using something like that: https://github.com/xoreaxeaxeax/sandsifter

comment 5y ago · link · parent

Try F#. It's not exactly ocaml, but close enough if you want to stay on windows.

comment 6y ago · link · parent

"In a Time of Universal Deceit — Telling the Truth Is a Revolutionary Act"

comment 6y ago · link · parent

Probably relevant: "IQ and National Success" https://youtu.be/8u0Lmp_jHw8?t=332

comment 6y ago · link · parent

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™")

comment 6y ago · link · parent

Take a look at "Modern C" :)

https://gforge.inria.fr/frs/download.php/latestfile/5298/Mod...

(Homepage: https://modernc.gforge.inria.fr/ )

comment 6y ago · link · parent

Hmm... pretty sure I already saw something like that long time ago: https://github.com/id-Software/Quake-2/blob/master/game/p_tr...

comment 6y ago · link · parent

Huge profits for https://en.wikipedia.org/wiki/Military_industrial_complex

comment 6y ago · link · parent

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/

comment 6y ago · link · parent

See https://www.cs.cornell.edu/courses/cs3110/2020sp/textbook/

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

> 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).

comment 7y ago · link · parent

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...

comment 7y ago · link · parent

You could always put NOPs into delay slots by default and replace them later with something more useful.

comment 7y ago · link · parent

Slick RSS (https://chrome.google.com/webstore/detail/slick-rss/ealjoljn...)

comment 7y ago · link · parent

Briffault's Law:

https://www.youtube.com/watch?v=UaFJ18aENkc https://www.youtube.com/watch?v=9W6wvHSMmzY https://www.youtube.com/watch?v=PqSCRnrq5I0

Some more:

"More" https://www.youtube.com/watch?v=Ud3PgQ_y170 "No Eligible Men" https://www.youtube.com/watch?v=tTxP7fPMnK4 "Seeing the hook" https://www.youtube.com/watch?v=Nv4jnWYCuEs "Remaining unplugged" https://www.youtube.com/watch?v=0KfQIEAGqhg "Hiding in morals" https://www.youtube.com/watch?v=RBslYOWiJlI

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

But hey, it may be just porn and videogames after all... who knows...

comment 7y ago · link · parent

> 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

comment 7y ago · link · parent

There is a good comment after the article: "The simplicity of C is more useful than the additional features of C++." -- (Sam Watkins)

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

No, GCC is still written mostly in C. Try:

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

cloc gcc/gcc

comment 8y ago · link · parent

stack_ret.c:5:10: warning: function returns address of local variable [-Wreturn-local-addr] return new;
12