pillmillipedes

Joined 5 months ago

Karma
74
Submissions
51
Member since
May 9
hackernews user pillmillipedes. university student.
View on Hacker News

Recent submissions

Comment · 8 days ago
you can load your custom apps by usb onto any android phone.
Comment · 1 month ago
I once took the time to figure these out for all the languages I use

here's python:

    #'''
      normal path
    '''
      debug path
    #'''
when I comment out python code I do it with ''' ... #''' so I can uncomment it with 1 keystroke
Comment · 2 months ago
yeah, turns out you're right. god dammit. maybe one day
Comment · 2 months ago
Unlike Rust and Cs before C23, C23's signed arithmetic is fully specified to wrap around.

edit - nevermind, I'm wrong lol

Comment · 3 months ago
I'll try to do the first one since I think it's the most illustrative:

  1  long typedef[[]]*($)(void*($),...);  
  2  int main() {  
  3   char* str = "Hello, world.";  
  4   $ $ asm("puts");  
  5   $:&&$&&$(str);  
  6  }

(1) is equivalent to "typedef long* $(void*, ...)". '$' is the name of the defined function type.

it's obfuscated as follows:

- typedef is a specifier and can go on either side of the type, same as int const/const int

- [[ ]] is an empty list of attributes

- "void*($)" is an argument named '$' of type void*, but parameter names are ignored in declarations.

- you can put parens in declarations since sometimes you need to group prefixes and postfixes in a different order

- dollar signs in names are allowed in many c compilers (and some other c-like languages)

- "..." are variadic arguments. puts doesn't have those, but the first argument uses the same register either way so it happens to work out in this case

(4) declares a function named '$' of type '$', shadowing the type, and links it to the assembly label "puts". calling $ calls puts.

normally it looks like `int call_foo(void) asm("foo");`

(5) is parsed as: "label $: address-of-label $ and function $ called on str. the address of a label is truthy, so the function also gets called.

unary && looks for the argument in the label namespace, but other operators don't, so the two dollars refer to different things.

that's about it. if you're familiar with the c standard and some common gnu extentions, you can deconstruct the examples into their basic elements easily enough

Comment · 3 months ago
this is great! very nice ui, and quite challenging on the high difficulties.

reminds me of 14mv a bit - and judging by the reactions to it on steam you're going to get so many false bug reports from people not used to the long deduction chains haha

(a suggestion to try the hints near the feedback form might help curb this a bit..)

one qol thing I missed is that clicking a number to fill in the neighbours only works for crosses and not sunflowers (and doesn't work for "0" clues)

Comment · 3 months ago
worst case, it's not generated and they just used ai for editing without realizing it has such a distinct style. that might be the case here: in the couple of paragraphs around the "I am but one" heading the writing style seems (to me) different (more human-ish?) compared to the style at the beginning. unfortunately I also think they're quite bad, so I'm not sure what the moral here is for the author (who, true to their word, has elected to stay anonymous).

the question I asked in my comment isn't rhetorical, by the way: I genuinely think it's a pattern, and I want to look into it a bit deeper

oh and for the record, I don't suggest you disregard the article. it raises valid points and I agree with it. go read it!

Comment · 3 months ago
better yet, don't put out bot-written content at all.
Comment · 3 months ago
why are so many websites called title-of-the-article-dot-com ai-generated?

I suppose the kind of people making them just don't have a blog or something

Comment · 3 months ago
I've never heard of clutch pencils before! I'll definitely check them out since I'm not sure I'd ever put pencils and asmr in a sentence together -besides the one I'd just typed- and yet I still occasionally need one.

>pressure

the gel pen I use can write under its own weight, so it's surely less pressure than any pencil would require, unless it's particularly soft and hefty?

Comment · 3 months ago
I'm kind of on the opposite side of the problem here where all my notes end up as unstructured puddles of thought vomit. in classes people asked a few times for me to show them my notes - they couldn't even figure out what topic the notes were on haha

on a mobile the next best thing was replacing my obsidian's app icon (no endorsement - I don't like obsidian) with the widget that pulls up today's "daily note", whether I want it or not. on pc I have an autohotkey command that does the same for notepad.exe

Comment · 3 months ago
I doubt that it can. so in addition to C's quirks (which I know about), I have to care about go's quirks and solod's quirks as well? and for what? there's no solod-to-regular-go interop aiui, so just some tooling and the standard library?
Comment · 3 months ago
interesting! have you tried putting the compressed payload into a large block comment at the end/start of the file, and recovering it by loading your own source as bytes to prevent the compiler from mangling the payload? I'm not sure if that would work but could be worth a try...
Comment · 3 months ago
note that this is going after "psychologically exploitative features intended to maximize engagement" of all kinds, not just infinite feeds. it also poses an ultimatum banning people under 16 from websites that provide such addictive features to anyone.

personally I am against internet identification, and I think teenagers should be allowed on social media, so I have to ask: why only children? if these features are so bad, ban them outright.

Comment · 3 months ago
can you give your example of a great article written by an ai or a cat?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton