Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for Olin Lathrop‭

Type On... Excerpt Status Date
Comment Post #290667 "<i>Virtual fractions are integers</i>" - A fraction is inherently two numbers. You even talk of a numerator and denominator. Your example (43691 * 3) mod 65536 = 1 doesn't explain much. Where did the 3 come from? The equation 3 * 43691 = 1 mod 65536 is just plain wrong. 1 mod 65536 is 1, bu...
(more)
3 months ago
Edit Post #290596 Post edited:
3 months ago
Edit Post #290596 Initial revision 3 months ago
Answer A: Make $2 + 2 = 5$
ESCR - not a golfing answer This isn't really an answer to the question, and it's not an attempt at golfing. However, it shows a cute trick for solving this problem that falls out of the way the ESCR language works. ESCR has no "operators" in the sense of a traditional programming language, on...
(more)
3 months ago
Edit Post #287283 Initial revision over 1 year ago
Answer A: Thoughts on hiding challenge sections with expandable details tags
I don't like the partially or fully hidden examples. Those require more work to see the details, instead of just scrolling on. Anyone curious enough about a challenge from the title will want to read what it's about. Making that difficult is just annoying without any upside. Short challenges ...
(more)
over 1 year ago
Edit Post #286846 Initial revision over 1 year ago
Answer A: Evens or Odds - you know this one
ESCR, 17 bytes show [and [in] 1] ESCR has no way to read from standard input (currently), so I assumed the existence of the function IN which magically returns the user input. Since the user input was specified to be an integer, the built-in AND function will do a bit-wise logical AND with...
(more)
over 1 year ago
Edit Post #286287 Post edited:
almost 2 years ago
Edit Post #286287 Initial revision almost 2 years ago
Answer A: Looping counter
Embed ESCR, about 32 characters depending on how you count loop append s "" show s endloop The indentation is not required, but shown for clarity. Declaring the variable S is also not included, since similar stuff doesn't seem to be included in other examples. S is a string varia...
(more)
almost 2 years ago
Edit Post #285958 Initial revision about 2 years ago
Answer A: A number adder, not a death adder
ESCR, 35 bytes show "show [+ [arg 1] " [arg 1] "]" The SHOW command writes to standard output. The parameters in quotes are just fixed strings. The ARG function returns a numbered argument. In the case of programs, these are command line parameters. Running this program with 13 as example p...
(more)
about 2 years ago
Edit Post #285933 Post edited:
about 2 years ago
Edit Post #285934 Post edited:
about 2 years ago
Edit Post #285934 Initial revision about 2 years ago
Answer A: Make my value binary
Embed ESCR, 16 characters [int n "base 2"] The INT function produces the text representation of an integer with lots of formatting options. The only non-default option needed was to set the number base to 2. Full example: loop with n from 0 to 10 show n ": " [int n "base 2"] endloo...
(more)
about 2 years ago
Edit Post #285933 Initial revision about 2 years ago
Answer A: It's Hip to be Square
Embed ESCR, 28 characters [= [exp [rnd [sqrt n]] 2] n] The number to test is in N. There are 4 nested functions. From inner to outer: SQRT takes the square root of N. This produces a floating point result. RND rounds that to the nearest integer. EXP is used to raise that integer to the pow...
(more)
about 2 years ago
Edit Post #285893 Post edited:
about 2 years ago
Edit Post #285893 Post edited:
about 2 years ago
Edit Post #285893 Initial revision about 2 years ago
Answer A: Can you give me half?
Embed ESCR, 6 unique characters, 19 bytes [/ [] [+ [] []]] Each [] pair of brackets encloses an in-line function. The first token in a function is the function name, and subsequent tokens, if any, the parameters. Functions can be nested. The function multiplies a series of numbers. The p...
(more)
about 2 years ago