The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
qwr
Feb 17 15:51
The Cypro-Minoan syllabary (CM), more commonly called the Cypro-Minoan Script, is an undeciphered syllabary used on the island of Cyprus and at its trading partners during the late Bronze Age and early Iron Age (c. 1550–1050 BC). The term "Cypro-Minoan" was coined by Arthur Evans in 1909 based on its visual similarity to Linear A on Minoan Crete, from which CM is thought to be derived. Approximately 250 objects—such as clay balls, cylinders, and tablets which bear Cypro-Minoan inscriptions, have been found. Discoveries have been made at various sites around Cyprus, as well as in the ancient city...
qwr
Feb 17 15:50
in a few years some codepoints may be filled with babylonian scripts or something
qwr
Feb 17 15:49
technically all the code points are "valid", just some are unused currently
qwr
Feb 17 15:45
@Themoonisacheese it should not be too difficult. I am only checking if the codepoint encoding is valid, not if it is mapped to anything.
qwr
Feb 17 15:03
@Themoonisacheese there are many challenges that have builtins. obviously they are discouraged. I believe the actual code needed can simply be a state machine on the byte string.
qwr
Feb 14 19:49
is there a challenge for just determining if a bytestring is valid utf-8 or not?
qwr
May 26, 2021 02:12
@Giuseppe oh man I wish I had a nickel for every time a code golf answer didn't feel right to me
qwr
May 25, 2021 21:58
of course
qwr
May 25, 2021 21:58
speaky of janky functions, I found out print in javascript will send the current page to the printer
qwr
May 25, 2021 21:56
and then not import the package
qwr
May 25, 2021 21:56
I wonder if I can cheat in a code golf answer and say my language is R + tidyverse
qwr
May 25, 2021 21:55
base R has a whole swath of deprecated functions that came from S
qwr
May 25, 2021 21:54
(and ->)
qwr
May 25, 2021 21:54
yeah but R is janky so it has two assignment operators, <- and =
qwr
May 25, 2021 21:53
all the weird pipes I listed are not in base R
qwr
May 25, 2021 21:52
people rarely use them
qwr
May 25, 2021 21:51
there's also right assignment like x-> y because why not
qwr
May 25, 2021 21:50
the assignment pipe is like foo <- foo %>% bar is written as foo %<>% bar
qwr
May 25, 2021 21:50
they actually used the letter t
qwr
May 25, 2021 21:50
there's also a tee pipe %T>%
qwr
May 25, 2021 21:49
%<>% is an assignment pipe which does a pipe and assignment
 
qwr
Sep 12, 2024 17:11
I wrote a simple python program of cubic time complexity to check up to n=1000 and didn't find any. It's quadratic time per row as it computes (n choose i)^2 and then does basically a small subset-sum. Edit: exactly what @Sil did. Fellow Project Euler solver...
 
qwr
Aug 3, 2024 11:10
C mixes the two, but in later languages arrays and strings are treated as separate types in a typing system
qwr
Aug 3, 2024 11:10
@tofro the x86 string instructions only operate on strings in terms of comparing two memory addresses and incrementing a pointer, so more like arrays
qwr
Aug 3, 2024 11:10
@AlexCannon as @hippietrail said, I am specifically asking about a language where you would write a[-1] in the source and it will index counting from the end, not offset from the start.
 
qwr
Jun 26, 2024 23:13
 
qwr
Jun 18, 2024 08:57
And just because it isn't scientific when it's first conceived, doesn't mean it can't become testable in the future with new ideas for experiments or new technologies.
qwr
Jun 18, 2024 08:57
@DikranMarsupial interesting you bring up string theory because a lot of physicists don't consider it scientific. Continental drift would be scientific when it was first proposed if there were empirical tests that could be done. And idk if I'd call eternal inflation scientific as it's currently an untestable model. The best you can do is assume the future will be like now and extrapolate very very far.
qwr
Jun 18, 2024 08:57
@DikranMarsupial what things are obviously science that aren't falsifiable?
qwr
Jun 18, 2024 08:57
@Miss_Understands I don't understand what you're trying to say. String theory is precisely unscientific in the Popper view because it is not falsifiable.
qwr
Jun 18, 2024 08:57
@DikranMarsupial how co you even define causality? This answer fits best with the Popper view of science as falsifiable claims.
 
qwr
Jun 16, 2024 09:54
The US has higher paying salaries. I didn't major in pure math but statistics, but I still find all parts of it very interesting, especially the programming parts. The starting salary for a data scientist with a Masters degree is $100k.
 
qwr
May 31, 2024 15:54
@GEdgar I was going to say the Greek mythology Golden Age is the closest thing I can think of. You should post this as an answer.
 
qwr
Feb 26, 2024 00:06
The FDA has a whole page on homeopathic products: fda.gov/drugs/information-drug-class/homeopathic-products
 
qwr
Jul 28, 2023 15:59
The issue with SQL NULL is that it doesn't have a fixed meaning - it's commonly used for not applicable and also for missing data. Christophe's answer covers this.
 
qwr
Aug 26, 2022 04:29
@hacatu I'm glad someone mentioned inclusion exclusion.
 
qwr
Aug 25, 2022 13:10
@PeterCordes I posted a simple example just skipping even numbers, yet it seems to perform just as well as this complicated sieve. I can't guarantee the benchmarks are done correctly but the timings look about the same.
qwr
Aug 25, 2022 13:10
@PeterCordes by standard sieve I mean a direct implementation of the Sieve of Eratosthenes without any small prime optimizations. I didn't consider segmented sieve for simplicity and because everything here fits into RAM (the paper goes up to N=2*10^9) but maybe segmented would actually help for cache reasons or something.
qwr
Aug 25, 2022 13:10
@AhmedDiab there are a lot of floating point operations I can see compared to the standard Sieve of Eratosthenes. If you'd like I try to run some benchmarks against a simple implementation.
qwr
Aug 25, 2022 13:10
If you eliminate multiples of 2 and 3, doesn't the normal Sieve of Eratosthenes already do this?
 
qwr
Aug 11, 2022 08:52
@user3840170 the historical source unsatisfyingly says it is already convention but not why.
 
qwr
Apr 2, 2022 07:28
@Steve it may be technically valid but idk if you can expect most systems to support apostrophes in an email which in my experience is very unusual
 
qwr
Mar 24, 2022 15:58
Blue checkmark on twitter means you can safely assume you're reading misinformation right
 
qwr
Oct 18, 2021 17:13
@JonCuster that would make a good answer that matches with my experience as a student
 
qwr
Jul 7, 2021 19:31
To be pedantic about the first paragraph: being racist is not the same thing as being a crank, unless possibly you work in a field studying race.
 
qwr
Jun 20, 2021 03:25
The answer assumes the attitude against migrants has to do with multiculturalism. It is possible it has nothing to do with culture, but economics of the workforce or local migrant policies.
 
qwr
Jun 18, 2021 16:01
"What race do you identify as?" "Migrant."
qwr
Jun 18, 2021 16:01
Being anti-migrant is not the same thing as being against a race. There are many dimensions to migrants, including economic and political, and migrants aren't even one race or ethnicity.
 
qwr
Jun 11, 2021 18:59
Maybe worth adding that the Tuskegee syphilis study has had a lasting negative distrust of the US government and medical system among African Americans.
 

 talk.tryitonline.net

For general discussion and feature requests regarding tryitonl...
qwr
Jun 3, 2021 05:32
can TIO's R be updated to R 4.1? It has some nice features