jhonsrid
Re:Public Access OpenVMS System
on Thursday January 30, 2025 @07:27PM (#42883629)
It looks like even though VMS Software Inc have taken over development of OpenVMS, HP still hosts the v8.4 documentation set, for instance here's the system services reference manual:
http://h41379.www4.hpe.com/doc/84final/4527/4527pro.html#fir...
Re:Public Access OpenVMS System
on Thursday January 30, 2025 @07:23PM (#42883605)
For me, the distributed lock manager, queues (SYS$ENC / SYS$DEQ), IPC via message passing (mailboxes), SYS$QIO to literally queue IO requests, event flags (SYS$SETEF / SYS$WAITFR)? Amazing clustering, - UNIX just seemed so backwards after learning VMS first! (Apologies though if I got any of those system call names wrong, its been a long time!)
Re:The Siren Song of Little Languages
on Monday January 13, 2025 @09:53AM (#42684012)
You can write a program that takes BF code as input and outputs valid C source that would execute it in less than 20 lines of well formatted ANSI C using nothing more than putchar, getchar, while, pointer inc/dec and dereference, so I can imagine a full compiler for it would be super simple too.
(Though I bet an optimising compiler would be a _little_ more complicated) ;)
Re:Ask HN: Who is developing a programming language that compiles to C?
on Monday October 09, 2023 @04:47PM (#37825296)
The language with a rude name sometimes known as 'BF' compiles trivially to C (from C), for instance:
#include <stdio.h>
int main() {
int c;
printf("#include <stdio.h>\nint main() {\nchar a[30000] = {0}; char *p = a;\n");
while((c = getc(stdin)) != EOF) {
switch(c) {
case '>': printf("++p;\n"); break;
case '<': printf("--p;\n"); break;
case '+': printf("++*p;\n"); break;
case '-': printf("--*p;\n"); break;
case '.': printf("putchar(*p);\n"); break;
case ',': printf("*p = getchar();\n"); break;
case '[': printf("while (*p) {\n"); break;
case ']': printf("}\n"); break;
}
}
printf("return 0;}\n");
return 0;
}
(Though sorry to any BF fans if I've missed something in the implementation) ;-)
Re:UK Postal Address Oddities
on Monday October 09, 2023 @04:38PM (#37825212)
I've seen this done (in England) for blocks of flats where each floor has it's own postcode that matches the floor, eg ZZ1 Z1A through to ZZ1 Z1G (A-G for floor 1 to 7).
Re:500 Lines or Less – Writing a useful program in fewer than 500 line...
on Sunday October 08, 2023 @11:31AM (#37811349)
Yeah, working in C and python you definitely have to reinvent the wheel less in Python ;-)
I recently wrote an 8bit style CPU simulator (with it's own simple but perfectly usable instruction set) and assembler, together they fit into 1000 lines of C... To be fair that's a fairly specific case where C works really well though!
Re:60x speed-up of Linux “perf”
on Sunday September 12, 2021 @09:18AM (#28500871)
Definitely, I always assumed perf was just super slow, (having only really used it in anger on debian). Glad the next time I get sucked down a performance tuning rabbit hole, I can make the process a lot less painful!
Re:GCC drops its copyright-assignment requirement
on Tuesday June 01, 2021 @01:50PM (#27358509)
This seems to imply copyright assignment to the FSF is _required_ for GNU projects? I wonder what RMS's take is on a unilateral change like this in one of the highest profile GNU projects?