Better HN
topnewbestaskshowjobs
Log inSign up

avuxo

2 karma · joined Jan 16, 2018 (8y ago) · 6 submissions

Japan-based Rust & C++ programmer
Submissions

1.

Thoughts on Flash (2010)(apple.com ↗)

1 points · by avuxo · 6y ago · discuss

comment 7y ago · link · parent

I'm not particularly familiar with Delphi, but the issue here appears to be a combination of parenthetical grouping not being picked up and the program not knowing that "unsigned char" should become "byte".

Ex:

  unsigned char a = 255;
  unsigned char b = 255;
  if ((a + b) == 510) {
      puts("yes");
  }
becomes

  unsigned char a = 255;
  unsigned char b = 255;
  if a + b then = 510 then  begin 
    WriteLn('yes');
  end; 
instead of

  var a,b: byte;
  begin
      a := 255;
      b := 255;
      if (a + b) = 510 then begin
          writeln('yes');
      end;
It's also worth noting that assuming parenthetical grouping is fixed, the C code snippet should work fine; according to the online compiler I was toying around with, Pascal uses integer type promotion.

3.

Crossing the Rust FFI Frontier with Protocol Buffers(hacks.mozilla.org ↗)

1 points · by avuxo · 7y ago · discuss

4.

Node-cobol: run COBOL code from Node.js(github.com ↗)

1 points · by avuxo · 8y ago · discuss

5.

Programming with Punched Cards (2005) [pdf](columbia.edu ↗)

3 points · by avuxo · 8y ago · discuss