« first day (4310 days earlier)      last day (527 days later) » 

12:01 AM
I have the usual a,b=b,a+b
 
not possible
 
and you're not starting from 1?
 
@JoKing most probably
 
Oh wait I'm starting from 1
Why 0?
 
wait if starting from 1 how did you print 0 :|
 
12:05 AM
I didn't
 
zero indexed fibonacci is just as legitimate as one indexed in my opinion
 
@emanresuA wut...
 
I haven't got the 36 ¯\_(ツ)_/¯
 
@emanresuA breh
only thing i can come up with using walrus
x,y=0,1
while x<1e6:print(x);x=y+(y:=x)
39 ...
 
print(x:=y+...)
And change the initial values
 
12:21 AM
@emanresuA i cant find any valid intial value :3
@emanresuA thatll still be too long
 
the easiest way is to copy and paste it
also hint, start with x=y=1
@DialFrost &&
 
@Steffan ????
 
You're probably asking because of niven numbers?
x<1&&println(x) or whatever
 
@Steffan ya lol
 
I actually have 1st place
Using @.
 
12:29 AM
@Steffan >:(
@Steffan ? how, i cant find a way to use that and &&
 
idk why it works but it does
43 is pretty easy, without even using @. and just .|>
 
@Steffan ...
 
also replace 10000 with 10^4
 
oh
lmaoooo
yay 45...
 
huh, idek how to get 45 without adding space
 
12:34 AM
[x%sum(digits(x))<1&&println(x) for x=1:10^4]
 
use .|>
where . is the vectorization operator, and then after that, put a lambda
 
got 43!
@Steffan yup
 
It will basically vectorize the whole expression
 
ye
but I don't get how to use it lmao
my attempt at 41: i=1:10^4;i%sum(digits(i))<1&&@.println(i)
 
almost
put the @. at the beginning
before i%, i mean
 
12:37 AM
wtf that works
 
there
 
that is so stupid
 
ikr
 
@Steffan lmao tysm
 
idek why it works
remember to update the non-long niven
 
12:38 AM
oh ya
hiya @forest
@Steffan yup got 38 same as u
its so annoying how julia isnt like python which interprets ints as booleans
 
yeah
but it actually works vice versa
most other languages for niven non-long, i'm just missing one byte, so there must be a funky trick where it's better than i%(i%10+i/10)<1
probly bruteforce stuff
 
@Steffan lmao Jo King also submitted right after me
the niven one
 
i was just about to point that out
 
:P
also why do you have to be right in front of me in julia
:3
 
i always am
 
12:45 AM
WAIT WHAT jo got first for niven
the non-long one
 
same formula as the other langs
 
@JoKing I did use it!
unless we're talking about something else
 
he's off by one byte everywhere
 
niven short, yes? there is something shorter than @Steffan's formula above
 
pysearch i'd bet
ig not, that would be too hard
 
12:48 AM
@Steffan ya
@JoKing steffan formula?
 
above
 
i dont see any steffan formula?
 
@Steffan this one
 
oh
 
based on reverse-engineering bytecounts, it still uses division, but only one modulo
 
12:50 AM
hmm
 
ah, found it with pysearch
 
>:(
@Steffan how?
 
idk, i just pysearched it
idk why it works
 
@Steffan so many langs...
 
also my hypothesis was correct btw
 
12:56 AM
@DialFrost Hi
 
@Steffan im not sure what to put inside the inputs and outpus
 
@Steffan it actually extends to long in some langs, though Jayxon seems to have found something shorter
 
huh interesting
i'm not sure how to extend it though
 
Sandbox posts last active a week ago: A Number Sequence with Everything
 
@Steffan i cant find it prob cuz im putting the wrong inputs and outputs
how do you tell what to put in?
 
1:10 AM
idk
you're searching for something that will replace i%10+i/10
 
1:22 AM
oh ya
wait gimme a sec
@Steffan er not working
do I have to wait like a long time for it to run?
 
you shouldn't
unless you put a ton of inputs
you only need to put a few
 
I did
 
what do your input/outputs look like?
 
1:39 AM
maybe you don't have enough numbers in literals
you might be able to figure this out without pysearch actually
 
@Steffan im not tat smart
@JoKing in {28,70,81,100} out:{10,7,9,1}
 
get rid of 100
the formula doesn't return the correct result for 100 but it still happens to work
 
oh ya
all i get is ~x%-~12
which doesnt work
 
you need more inputs lol, what you have is too vague
also i think you need more literals, because it should have found 13 and not -~12 lmao
you shouldn't for this though, nvm
 
1:54 AM
@Steffan ?
 
i think that's probably because ~12 is cached first and -13 is discarded
 
@Steffan its taking too long
what about 13???
 
do you have reuseVars enabled?
 
ya
 
at the very least, you should find i/10+i%10 at length 9
if not, something's gone wrong
 
2:02 AM
what is your literals list
static const int literals[] = {...}
 
@JoKing it never goes past length 6
@Steffan 1 to 99
 
how many inputs do you have now?
 
that should be good
 
how slow is your computer??
 
2:04 AM
@JoKing lol uh...
not very fast
 
You running an ENIAC?
 
?wuts that
 
one of the oldest digital computers
 
@JoKing it can get to "finding length 8" before stopping
@Seggan lmao
 
ENIAC (; Electronic Numerical Integrator and Computer) was the first programmable, electronic, general-purpose digital computer, completed in 1945. There were other computers that had these features, but the ENIAC had all of them in one package. It was Turing-complete and able to solve "a large class of numerical problems" through reprogramming.Although ENIAC was designed and primarily used to calculate artillery firing tables for the United States Army's Ballistic Research Laboratory (which later became a part of the Army Research Laboratory), its first program was a study of the feasibility of...
 
2:07 AM
It's arguably the oldest "true" reprogrammable computer.
 
im running a asus laptop
 
That's just a brand.
I'd wager you just have a lot of bloat.
 
its 4 years old sooo
 
You can get a snappy experience with even the most ancient hardware if you use the right software.
4 years is not very old. I have a 15 year old system that I still regularly use.
 
i use a laptop not a system
 
2:08 AM
A laptop is a system.
 
a system isnt a laptop :p
btw the screen is dying
 
Well not all are. :P
 
a lack of ram will kill pysearch early though
 
Screens are often the first to go, yeah... One of my laptops has a dead screen, so I only connect to it over SSH from another computer.
How much memory does pysearch need?
 
@JoKing oh dear
mine goes thru all the lengths super quickly but stops at like 7 length
and camps there still it stops
 
2:11 AM
@forest increases exponentially, mostly don't get past length 13 with 16gbs
 
ah, figured out how to generalize it for long
 
Oof.
 
@Steffan gahhhhhh
 
i keep meaning to try writing a version that uses a SAT solver instead
 
2:12 AM
Imagine using a system with a petabyte of storage on LTO tapes forced to be a block device and used as swap. :D
 
people on the weekgolf discord server use kaggle and it works great for them
which is literally a jupyter notebook
 
@Steffan its not ahhhhhhhhhh
 
 
@forest i just use google drive
 
2:30 AM
its possible to mount gdrive as a disk drive
ive done it
 
There should be a contest to see the most ridiculous medium for swap in action.
 
probably anything in Harder Drives would qualify
the last one (cryptocurrency) would be absolutely mad
SwapSpace is apparently already a crypto exchange lmao
 
2:50 AM
@forest playing minecraft, suddenly get teleported 3000 blocks back. apparently my location was stored in google drive
on an unrelated note, i was working on a compressor for fig, and by pure chance i created a string of AAAAAA... that compressed to a :P
hmm apparently any sequence of uppercase letters compresses to its lowercase version lol
ok the thing is bork :P
 
3:04 AM
what do I do then @JoKing :(
and er guys how do I print a julia list with spaces?
In python its *
 
@DialFrost try the kaggle thing, i dunno how easy it is to use
 
3:30 AM
@Seggan Oh well yeah that's reasonable and normal and fine
And if you just wanted to import bar; you'd bar::foo()
Also please don't use /
 
:: if you want to emulate C++/Rust, which is totally reasonable, or . if your packages are objects/structs, like in JS/(presumably) Python
I'm personally a fan of the latter, but ::'s still a solid (if annoying to type) alternative
Also even if packages aren't structs/objects, . shouldn't cause any ambiguity if you do it right
 
just use the literal text T_PAAMAYIM_NEKUDOTAYIM
4
 
If bar::foo() is a function in bar, bar shouldn't be able to be a totally unrelated object
So bar.foo shouldn't be able to refer to anything but bar::foo
 
3:35 AM
And if bar.foo was ambiguous, that would kind of imply that bar, the package namespace thingy, was itself data, which would be really weird, especially in a statically typed language
 
@DialFrost print(join(a,' '))
 
Mayyyybe print(*a) or similar
 
3:52 AM
Oh frick I just ate 75g of sugar
I'm going to go drink a bunch of water to dilute the 150% daily recommendation of donuts I just consumed
 
@emanresuA no, print(a...) would smash them all together without space
@DialFrost try using 1 to 10 for this one since it's sufficient.
maybe that'll speed it up enough
I don't even have 1 to 99, that slows it down too much
 
4:39 AM
heya people
 
5:14 AM
Sorry to barge in, but I'm curious what people think about this challenge re: it being a duplicate of this one.
I edited the sandbox post to include an explanation of what I think the golfed solutions will look like.
Let me know what you think! I've been a bit stumped for the past couple weeks trying to decide if it was too similar.
 
@FryAmTheEggman I don't think they're very similar at all, solutions would look very different
 
I think a lot of the work winds up being in what I called L
But there is a lot of other stuff
 
 
5 hours later…
10:07 AM
heya people
 
11:00 AM
hiya
 
11:41 AM
can someone explain this code? thx
*x,=map(sum,zip([0]+x,x+[0]))
python obvisouyl
 
does it generate the next row of pascal's triangle?
 
ya
 
ok i will try my best explaining it then :P
zip([0]+x, x+[0]), zips together two lists: x with zero prepended and x with zero appended
map(sum, ...) sums ^ pairwise
so if x=[1,2,1], the zip does: [(0, 1), (1, 2), (2, 1), (1, 0)]
and the sum does [0+1, 1+2, 2+1, 1+0]
the *x,= forces the map to be a list
@DialFrost did you understand :P
 
wow good explanation
anyone can fix this julia code?
x=[1]
for i=1:20
println(join(x," "));global x=Array(map(sum,zip([0]+x,x+[0])))
end
it just prints the entire sum of the array lmao instead of separately
 
11:58 AM
@DialFrost you can make it shorter
 
@PyGamer0 not yet chillax
solve then golf
right now its doing the wrong thing
 
well i made it previously
i think it can be made much shorter
@DialFrost here
 
wow tysm
 
12:25 PM
what's the shortest way to create a uppercase alphabet in julia?
 
12:36 PM
i've no idea
ah shit my pfp was supposed to be a gif but it became a stupid pic of shaun the sheep's aunt
 
@UndoneStudios SE doesn't allow gifs as profile pictures, just converts them to still images
 
yeah found that out the hard way
it turns out if we can game i.stack.imgur.com we could probably add gifs
 
1:11 PM
since when are the SE blog posts under the upcoming events section on the sidebar?
I always thought the blog posts were on top then site-specific stuff
 
@RadvylfPrograms how tf did you do that
 
@lyxal upcoming events are first, then the overflow blog, then posts
 
new mandella effect just drop then I guess
 
wake up babe new mandella effect just drop
 
Just did review #66666 :P
 
1:17 PM
._.
 
1:44 PM
so, I'm doing a thing
the thing involves downloading large quantities of data, which is how you know it's good
and by large quantities I mean a 23040x11520 PNG image
 
big
 
yes
 
a real chungus of a file
 
I'm not a fool so I'm not actually downloading the whole image; instead the project will fetch chunks of it on-demand so your computer doesn't go boomboom
 
you wouldn't happen to be downloading "Viking Merged Color Mosaic" would you?
 
1:54 PM
I am, however, having some issues finding an unprocessed version of the image that is suitable for my purposes
@lyxal I am not in fact downloading that
 
dang
(it's a 23040x11520 png btw)
 
so far I have found the raw data for the images and several processed versions of the images but not an unprocessed image
 
what's the image
 
that's a secret
I'll tell you if you can help me find it
 
that's... why i asked
 
1:57 PM
ok, I'm trying to find an unprocessed image(s) of the Mars Orbiter Laser Altimeter data
basically a Mars heightmap
this site has "shaded" maps, which I'm not 100% sure are what I want
it also has a link to a piece of software that can apparently build the maps for you but which I am unable to run sadly
 

« first day (4310 days earlier)      last day (527 days later) »