« first day (4289 days earlier)      last day (850 days later) » 
00:00 - 19:0019:00 - 00:00

00:25
@emanresuA no? i used bubblers query
which entails combining querys
Ah okay
00:53
So that's how Fig beat vyxal!
6
By forming an alliance with jelly!
mwahahaha
Pistachio and Almond?
Never heard of those golfing languages
not yet you haven't
01:31
@lyxal now i know what to name my next language :P
I won't be able to shop without maniacally thinking of code golf ever again D:
01:50
@lyxal im telling ya, im literally beginning to think in binary and a mishmash of programming languages now
@Bubbler There's this, but that isn't the builtin
yeah found that too
CMP: whats your favorite thing about your least favorite programming language?
mine would be the list comprehensions of python
generators are nice too
i havent seen either of those in any other lang
02:13
@Sʨɠɠan haskell has list comprehension too
02:29
ooh, nice
02:55
@Sʨɠɠan I like how PHP makes back-end web development accessible
I would argue too accessible given how easy it makes it to write critical security flaws, but oh well :p
With Node.js and stuff, instead of the like, environment built around CGI that PHP has, you need to make an HTTP server for everything and do reverse proxying, which is a pain for a number of reasons
I'm not sure if CGI's just considered a flawed concept, or if it's just not popular anymore, or if it is and I'm not in on the fun, but it sure makes things easy
So annoying having to 1. make sure your Node script is always running, 2. make sure you use a unique port for every project you every make, 3. deal with implementing an HTTP server every time
(Since Node's http is a little annoyingly low level, while the alternatives like express are kinda too high level for simple projects)
03:25
express was perfectly fine to me when I wrote my very first toy server
 
2 hours later…
05:34
wait, the lyal yesterday was prolog? wasn't it the lotm just last month?
¯\_(ツ)_/¯
05:59
is there a way to intialize a string in C with an even no. of chars?
E.g. ""hi""
"hi" isnt valid
Ofc not
@emanresuA aww
btw what the hell is python (pypy) XD
pypy is python but fast
@emanresuA thats it?
probably
06:05
lmao
what's python (stackless)
damn that looks cool
@Bubbler Amazingly, DDG has a clue.
@Sʨɠɠan DOM integration of JS.
07:01
cPython is singificantly faster in 3.11 so the use case for pypy is singificantly reduces. It's extra speed was always very situational and is even more situational now
07:13
"significantly"
25%
Like I've said before spelling is my weakness
I didn't even notice that
My point is that 5 > 1.25
Oh you mean the Pypy 5x benchmark
It's very situational
07:40
CMP: Acceptable text-form RSS icon? .₎)
That looks terrible but it might be the best you can do
Why is 📶/📶︎ the best Unicode has to offer?
07:58
Could always use a tiny icon
There is this: ͒
Coul dstack more diacritics on top
That character is already a diacritic so adding more doesn't align properly
@Adám i can't even tell what those are supposed to depict
Best ̶͜͝ hmm this doesn't really work either
08:09
That symbol was used to indicate cell phone signal like, 20 years ago
i know the bars but what about the funnel thing on top
@Bubbler My phone still shows bars though they are more stylized
some sort of antenna symbol I guess
Are there any 2d programing languages that don't use a grid?
08:16
Hexagony
Hexagony uses a hex grid right?
Does that count?
i doubt there are strictly non-grid 2d languages
because that would be hard to meaningfully do
08:17
ais has probably theorised one though
unless you have like arbitrary angles and make something with that some way or another
I was thinking of a refraction based language
Seems like the sort of thing they'd do
I once tried to define a language that is made of 2d geometric objects
sequential flow is a straight line, loop is a circle
08:18
So you would create squares of different IORs and it would refract the instruction pointer depending on it's color
@UnrelatedString Ais did have something like that. I don't remember the name but it had "beacons" and "nets"
conditional branch is done at intersections
@Bubbler Cool sounds interesting
There's Trajedy which, while grid-based, is non-orthogonal
08:19
I don't know how to actually place instructions on the shapes though
Flowchart-based language?
it would be funny to have a program not work because of floating-point inaccuracy around the shapes
Because this sounds sorta like it...
@emanresuA Yea that's what I was looking for, thanks
Also But, Is It Art? which doesn't have movement at all
08:21
@Bubbler my thoughts exactly :P
@Bubbler One could perhaps use rationals to avoid errors
If you have circles in the mix, you have no escape
though an alternative design would be to just use lines and form loops with carefully laid out triangles
Could use svgs
Funciton may count as 2d and without grid
Agreed
08:25
and pretty close to flowchart-based
08:51
Gotta love how duckduckgo considers sstatic.net a tracker
09:09
0
A: Sandbox for Proposed Challenges

The ThonnuPower sequence differences code-golf sequence math number Your task Given the inputs \$x\$ and \$d\$, output the first 5 terms of the \$d\$th difference of the sequence \$n^x\$ Example Let's say we are given the inputs \$x=4\$ and \$d=2\$. First, we get the series \$n^4\$: \$0^4 = 0\$ \$1^4 = 1\...

10:05
I've been trying to beat this for about 1 week now :P
Anyone think it's even possible to beat?
getting hopeless :/
10:35
why won't a/1/b work?
oh nvm
0
A: Sandbox for Proposed Challenges

鳴神裁四点一号To Unicode Code Point Notation code-golf Given a non-negative integer up to 1,114,111 in decimal (inclusive), convert to a string to indicate that Unicode code point. Algorithm Convert input to hexadecimal using UPPERCASE alphanumerical characters. If result of step 1 has 3 or fewer letters, pad...

10:54
damnnnnnn that jump from 257 bytes to 12k bytes
The others are probably hardcoding
Although 257 is quite impressive for this, due to needing two-bit integers and integer output. The printing section's probably about 90 bytes
Anyone has an SVG RSS icon that doesn't require attribution?
There's the xml logo (I think)
10:57
?
You can probably easily hand draw it
It's kinda funny that Adam has been trying to find a simple icon for hours. Development is like that sometimes
@emanresuA extremely impressive
@emanresuA wdym
yeah, search engines are being not helpful.
11:12
what...the...hell 3k bytes only???????
It's not a complex mapping
@emanresuA ?
btw is there a way to avoid using end in ruby?
It's mapping a set of inputs to # plus some hex digits
11:43
@lyxal I'm performing extreme prettifying of your explanation cuz it looks like hell :P
that's intentional
@lyxal ?
it's supposed to be snippet, newline, explanation of snippet, another snippet, newline, explanation of snippet
but it's super hard to follow
I'm not sure but do you want to make it flow?
well what format are you thinking of?
11:47
like this
the snippet in the explanation flows as the code goes
not newline with no space every new snippet
if that's alright I'll continue editing, I'm about half way gee your code is long XD
I wanted to give a more intricate explanation than the standard format
For such a complex program, a standard explanation doesn't do its complexity justice
Nonononon
sigh
Sorry I meant your "quick overview"
the code doesn't "flow" so it's not readable at all
Oh
well of course
the quick overview can be changed
11:53
Ah ok
Is there a equivalent to raw r"" strings in C?
do note I'm prettifying this manually
this is painful :P
Btw sry lyxal I just realised that your doing this manually with no eval :/
that's the whole point of the answer :p
mbmb
I didn't see that intially
One problem: prettifying it might be bad
cuz the code is so long
u have to keep left and right to check the code and then the explanation
is that ok?
that's fine
11:59
Mkay tysm
12:12
g'zonkus
IMO we shouldn't close stuff just to close it, OP will be pretty aware of what to fix, they just need to wake up
And the lack of clarity in how the answers will be timed isn't enough missing information to make it unanswerable in the next 12 hours
Close votes should be used as a last resort IMO. They're wayyy more permanent than they should be, and often cause people to just abandon good challenges
All answers are scored completely differently though
It doesn't make sense to answer this question in it's current state
It's clear that its an FC question though, the answerers are just wrong
Long-term yeah, this should be closed, since there's no objective way to score it. But I'm sure we'll have one in the next 24h.
It isn't even specified on what sizes it will be tested
It's not a minor issue like missing system specs but it's literally impossible to score a submission
Once I buy my new desktop I should make an FC post so I can brag about the specs :p
3
13:11
I got a new laptop for college with the funny 32 GB of ram
I'm shopping for a desktop too but I need to lay internet cable first which is a pain to negociate with my landlord
Wait why? If the wifi works for laptops it can't work any worse for a desktop
Most desktops have no wifi, you can get dongles but I'd rather do things properly
I want to see if wolfram can do the following sum but I can't get it to understand the input. \sum_{n=0}^\infty (-1)^n \frac{\Gamma \left(\frac{n}{2}+1\right)}{n! \Gamma \left(2-\frac{n}{2}\right)}
it should
13:20
does anyone know how you would input that into Wolfram alpha?
@mousetail I do mine over the power in the house. Then you just need plugs in the wall.
My flatmade this that before but the landlord got mad and he had to remove it
@mousetail the point is you don't need to lay any cables
Also the speed was actually quite bad for gaming
@graffe you should be able to use math input, ill do it for yo
@mousetail how can the landlord get mad? You haven't changed anything in the property
@Pacmanboss256 thanks!
13:23
@mousetail You can still "do it properly", just get a wifi expansion card
@mousetail you just literally plug a socket into the wall near the router and another where your desktop is
I mean our internet was shit, so we called the landlord. He called some repair guy. The repair guy had no idea what he was talking about but told the landlord the powerlines where the issue. So the landlord made him remove the powerline, and our internet was still equally shit
ah :(
this landlord sounds annoying
which isp are you on?
Ziggo
the netherlands?
13:24
Yep
so really the problem is that the internet is bad even where it enters your property?
It's mostly thick concrete walls blocking the wifi signals
I don't really understand.. how do you get internet at all? Is there a physical socket somewhere?
or is it all by wifi from your landlord who has a router in their property?
So I rent a studio in a apartment with several other studios
The router is in the "general" area which is the landlords reponsibility in principle
where is the router?
ah ok
is the internet any good if you plug directly into the router?
13:27
Yea
At least, a lot better
well that's a good start :)
hm
wolfram really doesnt like this
so can you just go back to the powerlines?
@Pacmanboss256 go on?
Maybe
I really just want to lay cables
:)
@Pacmanboss256 what does it do?
13:29
I only need to drill like 2 holes but the landlord wants to get a proffesional to do it but it's taking forever
yes I can imagine the problem
wolframalpha.com/…*%CE%93%5C%2840%292-Divide%5Bn%2C2%5D%5C%2841%29%5D%2C%7Bn%2C0%2C%E2%88%9E%7D%5D%5C%2841%29
@Pacmanboss256 that link didn't paste well
it just goes as (-1)^n
@Pacmanboss256 that was my problem too :(
can anyone see how to fix this?
13:31
yeah uh
use factorial rather than gamma because its a sum
but it's not over integers
I don't think you can use factorial can you?
let's try :)
the answer should be \frac{3-\sqrt{5}}{2}
TIL that mechanics.SE exists
13:39
upload to wolfram
idk
wolframalpha.com/…*%CE%93%5C%2840%292-Divide%5Bx%2C2%5D%5C%2841%29%5DPower%5B%5C%2840%29-1%5C%2841%29%2Cx%5D%2C%7Bx%2C0%2C%E2%88%9E%7D%5D
anyways i know link broke here it is as an integral
i can probably do floor(x) in the exponent to get it to work
@Pacmanboss256 IU can't follow the link but did it work?
sorta
i got an answer with complex parts so at least it works let me get back to my dorm room and finish it
@Pacmanboss256 thanks!
do you have pro wolfram
sadly no
there is wolfram on TIO
13:49
alright
i have pro through my university
@Pacmanboss256 that's very cool
oh its sooo useful
I can imagine
do you mind if I ask which uni? Mine says it can't afford it
13:52
That sounds catholic
Weren't William and Mary protestant rulers?
its a virginia public ivy
William was Dutch IIRC
King William III and Queen Mary II,
"A Protestant, William participated in several wars against the powerful Catholic French ruler Louis XIV in coalition with both Protestant and Catholic powers in Europe."
thank you wiki :)
@Pacmanboss256 how many public ivys are there?
13:57
"Public Ivy" is a term that refers to prestigious public colleges and universities in the United States that provide a collegiate experience similar to those in the Ivy League. The list of "public ivy" institutions has gone through several revisions over the years, much like other university rankings and conferences. The term was first coined by Yale University admissions officer Richard Moll, who published Public Ivies: A Guide to America's Best Public Undergraduate Colleges and Universities in 1985. == History == The term first appeared in the Public Ivies: A Guide to America's Best Pub...
8, in a sense
14:10
I killed the conversation.. sorry :(
Not really
If nobody has anything left that they want to say the conversation isn't dead it's just complete
It'd only be "killing the conversation" if you did something that stopped it before everyone was done talking
14:30
@lyxal so sorry I'll complete the edit tmr and set a bounty soon I gtg sleep
14:55
@Pacmanboss256 did you have any luck?
15:18
why does 2*log(6/9) - log(4/9) = 0?
log2?
I don't think it matters which base
as long as both logs have the same base
I think I worked it out. logs are so fiddly
@graffe log(36/81) - log(4/9) = log((36/81)/(4/9)) = log(36/81 * 9/4) = log(1)
For ages, I thought that couldn't be correct as logs can never equal zero, before remembering that they can, it's log(0) that's undefined :P
@cairdcoinheringaahing thanks!
the lovely symbolab gives an alternative route to the solution
it really is great
unfortunately not
15:34
@Pacmanboss256 can it not do the sum?
I am tempted to ask on mathematica.se
let me try once mroe
thanks!
Is GitHub pages failing?
weirdly enough it works if you have an x in the lower gamma function
@Pacmanboss256 that is weird
15:40
how did you get the convergence value
ok nah
theres probably some division by zero going on here
I'll ask on mathematica.se although as I don't have a copy of mathematica I might not be able to answer their questions :)
can you paste what you get when you try the sum please so I can use that in the question
yo i did it i think
cool!
screenshot please :)
15:48
doesnt work but the idea is right
ah ok
90% sure it times out
i can get a better function here one sev
sec
0
Q: Increment, decrement, undo, peek

JordanWrite a program or function (hereafter "function") that returns or prints the source code of four new functions: Increment, decrement, undo, and peek. The initial function contains an internal integer value of 0. Each of the returned functions contains a value based on that value, and each behave...

@Pacmanboss256 could you paste the mathematica code that is the sum please
its wrong i messed up the inverse sin
15:53
@Pacmanboss256 I meant the original sum without the integral
uhhhh i posted the image
I was just looking the mathematica version of the sum so I can paste it into a question
wolfram is being sad
NPSP is so fast that SE doesn't know the post exists yet to onebox it :p
16:03
@RadvylfPrograms wow
ooh that might've been the problem with gingerbot
I ran into this issue very occasionally with the old NPSP
The solution was to repeatedly ask the API if the post exists until it said it did, since that takes just as long to update
@Pacmanboss256 With v13.1, Sum[(-1)^n Gamma[n/2 + 1]/(n! Gamma[2 - n/2]), {n, 0, Infinity}] evaluates to 1/2 (3 - Sqrt[5])
@Pacmanboss256 which version are you using?
i was using the online one
i can use the downloaded version on my laptop
as in wolfram alpha?
could you try the downloaded version please
16:06
ydah
ok
ok its downloading an update and i have class in 20 mins
ill get back to you during my next class :p
ok :)
but the good news is that it can do it
 
1 hour later…
17:31
0
A: Sandbox for Proposed Challenges

RamenChefSpeed Checkers KOTH For this King of the Hill challenge, your bot will play checkers against an opponent. However, you should be careful when making complex calculations, because both sides have a limited amount of time to play! Each side will start with 1,000,000 cycles [or 1 second, depending ...

17:56
0
A: Sandbox for Proposed Challenges

FryAmTheEggmanFarigiraf my Girafarig A palindrome is a word that is its own reverse. I will define the left palindromic root of a word as the shortest prefix of the word for which the shortest possible palindrome that begins with that prefix is the original word. So the left palindromic root of racecar is race...

Woah
That was some incredibly lucky timing for the feeds to be updated
18:40
@RadvylfPrograms riddle me this: how do I use map with a closure returning a String (which is unsized)?
I tried a Box but that doesn't work because it needs a reference and I have to dereference the incoming type to perform operations on it
I haven't done anything with closures yet with Rust, unfortunately
Assuming by map you mean std::collections::HashMap?
no, the map function of iterators
it wants a Sized type
for some reason
That's odd, since Map doesn't seem to require that
What does the iterator come from?
18:45
lemme show you my code:
let nouns: Vec<Box<&str>> = json::parse(include_str!("../data/nouns.json")).unwrap()["nouns"].members().map(|x| Box::new(*x.take_string().unwrap())).collect();
take_string() returns a String
* is the issue
You're dereferencing an &str
Which gives you a chunk of memory with no information about how big it is; basically just a pointer
You need to do .to_owned() if you want a String
Assuming take_string().unwrap() is giving you a &str
it gives me a String
Wait then what's the * for
because removing it gives a different error about borrowing x as mutable
I'm not even sure what * would do to a String
18:48
which is probably because take_string() transfers ownership of the underlying value of x, which is a JsonValue enum
Yeah, that's the issue you need to fix then
hmmmmmmmmmmmmmmmmmmm
Also why a Box<&str>? Seems kinda nonstandard
I'd go with a String if you want it to be owned, or a &str if you don't, but a Box<&str> is just a String without features
had to change that to a String
also, there seems to be no way to get the underlying data out of the JsonValue w/o taking ownership
If x is a serde Value, just do as_str
Wait please for the love of JavaScript tell me that you're using serde and not some cursed library made by a 13 year old
(JavaScript is the god of cursedness, so that's why it's for its love)
18:51
I'm using json
Please just use serde
you got it
wish I'd known about that earlier!
You can literally just do let nouns: Vec<String> = serde_json::from_str(&nouns).unwrap();
ffs
where nouns is the JSON array as a string
18:54
that's SO MUCH BETTER
tysm
Ooh I just noticed something really cool:
1 -> 1
2 -> 4
3 -> 9
4 -> 6
5 -> 5
6 -> 6
7 -> 9
8 -> 4
9 -> 1
Those are the last digit of numbers mapped to the last digit of their squares
wat
oh
It's symmetrical
00:00 - 19:0019:00 - 00:00

« first day (4289 days earlier)      last day (850 days later) »