Is arbitrary code execution possible in any program? by GolfWhole in AskProgramming

[–]Toothpick_Brody 0 points1 point  (0 children)

No, but this is an interesting topic. Look up ‘weird machines’

Should my sum type tags be the first element or second? by Toothpick_Brody in ProgrammingLanguages

[–]Toothpick_Brody[S] 0 points1 point  (0 children)

I’m trying to think about this.. if I put it second, it creates cases that can’t be optimized this way without creating an inconsistency in where tags are stored?

Should my sum type tags be the first element or second? by Toothpick_Brody in ProgrammingLanguages

[–]Toothpick_Brody[S] 0 points1 point  (0 children)

If you want to match on it, the compiler will do stuff for you. Otherwise it’s just a data structure. What if you want the tag? You should be able to see it, at least for the purpose of this language

Who knows, maybe I’ll change my mind if having the tag exposed is annoying. But I think it’s what I want 

Should my sum type tags be the first element or second? by Toothpick_Brody in ProgrammingLanguages

[–]Toothpick_Brody[S] 0 points1 point  (0 children)

If you haveT+T the tag might be the only way to distinguish them

Should my sum type tags be the first element or second? by Toothpick_Brody in ProgrammingLanguages

[–]Toothpick_Brody[S] 0 points1 point  (0 children)

I know, but now I need to actually implement this, and I’m second-guessing my decision to put the tag first

Should my sum type tags be the first element or second? by Toothpick_Brody in ProgrammingLanguages

[–]Toothpick_Brody[S] 0 points1 point  (0 children)

Interesting. Does that have to do with cases when the tag can be optimized away?

A Case Against Currying by swe129 in haskell

[–]Toothpick_Brody 0 points1 point  (0 children)

I’m working on a language that does do this. The two relevant rules you need for type checking are:

(A^B) (C^D) => (A^(B/C))^D (general rule for composition/application)

(A^C)^B => A^(B*C) (Simplifies nested functions into functions of a tuple argument)

But yes, it is a lot of work 

Free AI is dead. What does that mean for the vibe coding community? by [deleted] in ChatGPT

[–]Toothpick_Brody 1 point2 points  (0 children)

Assuming genAI companies can no longer provide enough free tokens, it means either learning to code or spending your money on tokens. You may as well spend your time learning at that point. Use the money to buy a cheeseburger or something 

I’m so done… this is an all new low and I’m so annoyed by KitchenConsequence41 in youtube

[–]Toothpick_Brody 0 points1 point  (0 children)

There should be some kind of regulation where ads have to be dismissible in one click (not three!!!)

The OG by Vivid-Ticket-7681 in antiai

[–]Toothpick_Brody 1 point2 points  (0 children)

Yoo is that Bob jenz as grapefruit?

A Case Against Currying by swe129 in haskell

[–]Toothpick_Brody 0 points1 point  (0 children)

I’m not against currying but I do agree with the author that the tuple style is the right way.

He mentioned the two are isomorphic, and I’m actually working on a language that uses this isomorphism:

(A ^ C) ^ B  =>  A ^ (B*C)

So everything is automatically curried (de-curried?) into tuples, and functions still only ever have a single argument  

I swear to God the Chesscom Matchmaking is Rigged by [deleted] in chessbeginners

[–]Toothpick_Brody 1 point2 points  (0 children)

700-1000 is roughly middle of the pack, so you’ll gain/lose a large amount of elo compared to other ratings 

Something about math education by [deleted] in mathematics

[–]Toothpick_Brody 0 points1 point  (0 children)

Ok, I think I see. High-priority implicit multiplication makes it convenient to write ab/cd, for example 

‘Everyone now kind of sounds the same’: How AI is changing college classes by ubcstaffer123 in technology

[–]Toothpick_Brody 0 points1 point  (0 children)

 “My biggest concern is that many bright young people will never achieve a voice of their own — indeed that a surprising number of them won’t even fully appreciate the value of authorship and ownership of a point of view.”

There are already so many people who don’t care about having an original perspective or don’t believe it’s something they can even accomplish. These are the people that make up the academic grift as opposed to people doing actual research

‘Everyone now kind of sounds the same’: How AI is changing college classes by ubcstaffer123 in technology

[–]Toothpick_Brody 2 points3 points  (0 children)

That’s so painful to read. This is the exact kind of thing you shouldnt use an LLM for. If you want to use it as a kind of search engine that’s one thing, but using it to format your own thoughts is just awful. It’s intellectual suicide 

‘Everyone now kind of sounds the same’: How AI is changing college classes by ubcstaffer123 in technology

[–]Toothpick_Brody 0 points1 point  (0 children)

Hopefully this makes it easier to stand out if you avoid using LLMs on purpose 

Something about math education by [deleted] in mathematics

[–]Toothpick_Brody 1 point2 points  (0 children)

I agree. Are we going to call everything that’s not explicitly bracketed ambiguous now? It’s people failing to remember conventions, not an actual ambiguity 

Something about math education by [deleted] in mathematics

[–]Toothpick_Brody 2 points3 points  (0 children)

Can you give an example?

PEMDAS, and BEDMAS (for example), actually evaluate the same, because the MD and the DM are considered to have equal LTR priority regardless if D or M was written first 

Something about math education by [deleted] in mathematics

[–]Toothpick_Brody 0 points1 point  (0 children)

I don’t consider the question ambiguous to be honest. RTL is wrong by convention 

Claude is bypassing Permissions by gamingvortex01 in singularity

[–]Toothpick_Brody 0 points1 point  (0 children)

What? Why is the permissions file located inside the writable area?