For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | more bluesmoon's commentsregister

Not specifically game related, but adjacent. Sonic Pi (https://sonic-pi.net/) is designed for making music specifically with kids in mind, and they might accidentally learn a whole bunch of programming concepts as a side-effect.


I came here thinking there was a new recommendation for making toast, or at least a recommended type of bread to use, but I found nothing edible.


Nice. Reminds me of the PC Game Programmer's Encyclopedia from back in the 90s/early 2000s: http://qzx.com/pc-gpe/index.php


Julia supports Complex numbers as a built-in type.


are numbers types?


It's certainly possible to interpret numbers as types, but it's not particularly common AFAIK, since there are generally more convenient interpretations of arithmetic for a given problem domain (von Neumann sets, Dedekind cuts, IEEE 754 floating point values, &c &c).


imaginary numbers to me are more real than real numbers, they are the numbers of geometry - i like them being first class numbers


Personally, I've always found that the non-rigidity of the complex numbers (i.e. that when considered as a field, they admit a non-trivial automorphism), which requires the introduction of the Re and Im operators (i.e. projection back to the reals) to banish, to be strongly suggestive that the reals have a somehow more "real" ontological status.


Reminds me of the time back in 2010 when a piece of CSS on the Yahoo Search page would cause a complete desktop crash on Red Hat Linux: https://tech.bluesmoon.info/2010/04/can-website-crash-your-r...

To the author, did you ever consider contacting the Chrome dev team about this? They're pretty responsive to bug reports.


Reminds me of the 500 mile email (2002): https://www.ibiblio.org/harris/500milemail.html


Which was discussed yesterday: <https://news.ycombinator.com/item?id=37576633>

(It's an HN perennial.)


I can't say that I specifically learnt COBOL for fun because I did it in 1997 or so in India when the entire Indian IT industry was bidding on a host Y2K migration projects. I only graduated college in May 2000, so I never actually used COBOL to solve any Y2K problems, however, I did figure out that you could use a large number of paragraphs in the SCREEN SECTION to build animation frames and use that to build fun animations. It was tedious though, so I wrote a C++ program to generate the SCREENs for the COBOL program.


Hangul is phonetic, but doesn't have the capability to represent all phonetic sounds of a language. For example, Hindi has 4 distinct letters and consequently sounds for the each of D and T (D: ड ढ द ध, T: ट ठ त थ), which all correspond to the single Hangul letter diot (ㄷ). I have Korean friends who write their names in the Chinese script because they don't have the necessary letters to represent the sounds.


I don't think there is any language which can represent all the phonetic sounds of other languages.


Perl counts from 1900, so the year 2000 was actually stored as 100. You'd get 2 digit years in the 1990s and suddenly 3 digit years after 2000. The solution was to arithmetically add 1900 to the year before rendering. Newer perl functions would handle that internally.


That's a direct translation of struct_tm from time.h.

     External declarations, as well as the tm structure definition, are
     contained in the <time.h> include file.  The tm structure includes at
     least the following fields:

           int tm_sec;     /∗ seconds (0 - 60) ∗/
           int tm_min;     /∗ minutes (0 - 59) ∗/
           int tm_hour;    /∗ hours (0 - 23) ∗/
           int tm_mday;    /∗ day of month (1 - 31) ∗/
           int tm_mon;     /∗ month of year (0 - 11) ∗/
           int tm_year;    /∗ year - 1900 ∗/
           int tm_wday;    /∗ day of week (Sunday = 0) ∗/
           int tm_yday;    /∗ day of year (0 - 365) ∗/
           int tm_isdst;   /∗ is summer time in effect? ∗/
           char ∗tm_zone;  /∗ abbreviation of timezone name ∗/
           long tm_gmtoff; /∗ offset from UTC in seconds ∗/
You'll note that tm_year is years since 1900.

While working support at SGI in the late 90s, got a number of support tickets (there was a woman who worked for a government department (NASA?) who was very good at finding them in doing their y2k checks) about dates showing up as `20100`.


COBOL programs will be fine. They use 4 characters just for the year since it's stored as the decimal characters. I was trained in COBOL in the late 90s to work on Y2K migrations. It's done this way so that COBOL programs stored on punched cards are readable (also why COBOL has its line-length limitations).


Except for the programs where it was too hard to change to 4 digit years, and we just shifted the epoch ...


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search:

HN For You