« first day (2242 days earlier)      last day (2592 days later) » 

1:01 AM
Anyone here knows C pointers well enough?
I can't seem to get this silly thing to work
 
@BernardoMeurer "Anyone here know C..." stops reading
 
@MistahFiggins :(
 
@DestructibleLemon Charcoal, 4 bytes: IX²N
 
I'm definitely not the one for the job
 
@BernardoMeurer Kinda
 
1:02 AM
@MistahFiggins Because C or because programming?
 
Because C
I'm a java person
 
@ASCII-only Would you mind taking a look at a snippet and seeing if you see the issue?
 
for better or worse
 
I'm trying to get a function to alter an array from main, but it's corrupting my memory and killing people instead
 
It's ... an improvement over C, that's true
 
1:03 AM
@BernardoMeurer okay
> Killing people
 
#include <stdio.h>
#include <stdbool.h>

void find_primes(long limit, long *primes) {
    long numbers[limit];
    for (int i = 0; i < limit; i++) {
        numbers[i] = i + 2;
    }
    for (int i = 0; i < limit; i++) {
        if (numbers[i] != -1) {
            for (long j = 2 * numbers[i] - 2; j < limit; j += numbers[i]) {
                numbers[j] = -1;
            }
        }
    }
    int j = 0;
    for (int i = 0; i < limit; i++) {
        if(numbers[i] != -1){
            primes[j++] = numbers[i];
This is what I have, it's a simple sieve of erastothenes
Over on
int j = 0;
for (int i = 0; i < limit; i++) {
    if(numbers[i] != -1){
        primes[j++] = numbers[i];
    }
}
 
Pro-tip: there aren't 1000 primes among the first 1000 integers
 
@JanDvorak Yeah which is why he fills the non-primes with -1
 
@JanDvorak I'm aware, doesn't matter though, as long as it's <1000 it should work
On that second snippet I transfer the actual primes to another array
 
@BernardoMeurer Oh wait a sec
 
1:05 AM
and that simply does not work
 
@ASCII-only oh. That's ... inefficient. Also, a poorly named variable I guess.
 
Yeah looks like most of your primes array is still uninitialized
 
It is
 
Ha
I'm stupid
Great
 
Just have a 0 after all the primes
 
1:06 AM
Ah, the joy of non-resizable arrays.
 
@JanDvorak How would you do it?
 
A trailing zero seems ... legit
 
then do a if (!primes[i]) break; in the print loop
 
The print is just debugging :)
 
Better yet, while(primes[++i})
@BernardoMeurer your debbuging is causing segfaults
 
1:08 AM
@JanDvorak *i++
 
@JanDvorak I am a segfault
 
@ASCII-only in which case, also `do..while
 
Is there some deterministic way for me to know how many primes are there <= X?
 
wait...
@BernardoMeurer Count them
 
1:09 AM
I mean beforehand
 
In mathematics, the prime-counting function is the function counting the number of prime numbers less than or equal to some real number x. It is denoted by π(x) (unrelated to the number π). == History == Of great interest in number theory is the growth rate of the prime-counting function. It was conjectured in the end of the 18th century by Gauss and by Legendre to be approximately x ln ⁡ ( x ) {\displaystyle {\frac ...
 
but you can make some pretty good guesses
 
You can approximate it
 
1:09 AM
Isn't there some theorem on prime density?
Yeah
 
Or just use Dennis' prime counting function, which should be fast enough
 
Because then I can make that prime array closer to ideal size
 
There are unsolved problems in math to do with prime density
 
@BernardoMeurer x/ln(x)
 
@Maltysen Yeah, but will that always be an upper bound?
 
1:13 AM
its a lower bound
past like the first few primes
 
he wants an upper bound
 
IIRC the upperbound is some constant * x/ln(x)
don't remember what tho
 
The upper-bound is probably less than $\inf$
 
I'll go poke the maths people. be back with an answer soon hopefully
 
see the "inequalities" section in that wiki
 
-1 for using magic numbers
I prefer the one with 1/(8pi)
by which 1/(4tau) is meant
 
Magic numbers? Sounds perfect
 
CMC: print/return pau (which is (pi + tau) / 2) without numbers in your source code. (code-golf), to at least 6 decimals
 
@ConorO'Brien To what precision?
 
you may not have seen my edit, read again
 
1:19 AM
got it boss.
 
CMC: Best song ever made for a video game? (soundtrack instrumentals are ok)
 
@HelkaHomba IDK but all the towerfall music is amazing
 
Wait, numbers.
Uhh, hold on.
 
@HelkaHomba brawl theme?
 
@HelkaHomba I'm not even sure that's the best in the game :P it might be though
 
1:23 AM
@HelkaHomba also very good
 
@ATaco some sort of ord solution?
 
Basically, yeah.
 
@Maltysen this? Nostalgic but I'm not that crazy about it
 
Each character in "HBKEFGLL" is the output, shifted by +20.
The script just reverses that.
 
1:25 AM
Guys. Broforce. Murica. This is obvious.
 
@HelkaHomba The one that plays in the land of eternal motion in Hyperrogue
 
@ATaco why 20
 
@HelkaHomba The music from Shovel Knight in general. One of my personal favorites is Tango of the Troupple King
 
It was the number I thought of and 10 contained a number regardless (8 replaced the .)
 
Stacked, 3 bytes: pau. Try it online!
 
1:29 AM
@ATaco Well that's one way to do it!
 
TacO has no mathematical Constants, so it couldn't calculate it if it wanted to.
 
@ATaco So, not TC? There you go.
 
@ATaco hey we should make a no maths builtin club
 
I have not heard of most of these games .-.
 
It can do addition, multiplication, I think 2^x although I've still yet to do it.
 
1:31 AM
Good people of TNB, I come with a challenge, I am attempting to give a way a large portion of my rep to anyone who can attempt a couple challenges, which are provably doable, but most certainly hard. Please take a shot at some of the challenges on this post.
0
A: List of bounties with no deadline

Rohan Jhunjhunwala500 rep for a SILOS submission of a 2048 clone. I'll even throw in a bonus 250 rep bounty (and of course give a week of bonus visibility). for one that has gui output (this is harder than it sounds). Feel free to use the developer tools, which integrate into this language nicely. 50 rep for ou...

 
@ATaco same here I think
 
@HelkaHomba Aria Math
 
@DestructibleLemon Together with V and Retina
 
I actually can't remember my adding program though
 
1:32 AM
But TacO is still definitely not TC.
 
@ConorO'Brien actually calculates pau, you can get as much presicion as you want by specifying in the input: pyth.herokuapp.com/…
 
@HelkaHomba Shovel Knight is so good and probably one of my favorite games
 
@ATaco Maybe add a builtin symbol to call the entire program recursively?
 
Nah.
 
@HelkaHomba also any of the combinations of battle/peaceful themes from this
 
1:33 AM
But then you can do loop things.
 
I have a method of making it TC, but I don't like it, it feels wrong.
 
Does anyone wish to take a shot at my bounties?
 
@Mendeleev Yes!
 
@MistahFiggins yay another ftl fan
 
@ATaco oh?
@Mendeleev The fact that FTL is insanely popular helps.
 
1:33 AM
@ATaco just do something like *, except instead of repeat N times, make it, repeat until true
 
^[citation-needed]
 
repeat until true cannot work with the current setup.
 
@ASCII-only stop rubbing it in with your better language ;_;
 
Because there's no way one branch can communicate with another.
 
@ATaco they don't need to?
 
1:34 AM
You could do "evaluate until non-zero"
 
@ConorO'Brien golfed: pyth.herokuapp.com/…
 
Maybe just repeat forever and have a break symbol?
 
Nexus 7 2013 is one of the best Android tablets ever released
 
you need self modifying
 
1:35 AM
branch W:
    a = branch1
    b = branch2
    while call(a):
        call(b)
 
4 years old and still runs everything smoothly
 
@ConorO'Brien I think you mean while call(a): pass
 
The issue with this logic is that no unique data can be passed back down or up the branch this way.
 
*call(b)
@ATaco are there variables?
 
oh that was the typo
 
1:35 AM
Nope.
Memory is infinite, but almost entirely down-facing.
 
Would a "evaluate until non-0" work?
 
wait have I even made an add two numbers in Turtlèd...
 
Still no, no way to pass data up into it.
 
why not?
 
Because there's no method to pass data up, besides a for loop.
 
1:38 AM
but why not? language limitation or programmer laziness?
 
0
A: List of bounties with no deadline

Rohan Jhunjhunwala500 rep for a SILOS submission of a 2048 clone. I'll even throw in a bonus 250 rep bounty (and of course give a week of bonus visibility). for one that has gui output (this is harder than it sounds). Feel free to use the developer tools, which integrate into this language nicely. 50 rep for ou...

 
Language Limitation.
 
well this is embarassing...
I haven't made an addition program in Turtlèd
 
CMC2: Best video game character ever?
 
As I said, I added a method to fix this, a global array which can have data placed in and read from.
But it just felt, cheating.
 
1:39 AM
@HelkaHomba spy from TF2
 
Also, isn't this more fitting in gaming.SE?
 
Ooops, I apologize for my ineptitude,a nd I apologize for cluttering the nineteenth byte, by mentioning my bounty with no deadline before the bot did
 
Sorry Taco
 
I didn't know we had a bot
 
1:39 AM
@HelkaHomba Link
 
@ATaco that's actually kinda cool. even assembly langauges have a universal stack
 
@JanDvorak Same
 
@ConorO'Brien spy in the videos and comics: "I am sophisticated and know philosophy and use words like shuddered". Spy in the game: "YOU SUCK HAHAHAHA"
 
@ATaco could I see this language?
 
"I like to have my langauge's gimmick baked firmly into it's design"
 
1:40 AM
@HelkaHomba squirrel from candybox2.net /s
 
@DestructibleLemon ¯\_(ツ)_/¯
 
YouTube is killing annotations. WTF???
 
About time, I guess
 
@JanDvorak Think about it
Links in videos, interactive videos with buttons, speech balloons are nt going to be possible anymore
 
1:42 AM
... how about "about time they cut that branch they are sitting on"?
 
@Mendeleev They are more used in annoying ways than constructive ones in my experience
 
"TacO is a strange approch to language design" Love it!
 
@HelkaHomba Please give an example of them being used in an annoying way.
 
1:42 AM
@Mendeleev sounds more like they are extending annotations and renaming them to me
 
@Maltysen No. End screens are only in the last 20 sec of the video, cards are just things that pop up in the corner.
 
@Mendeleev oo yes, the downfall of youtube finally comes... hehehe
 
@ATaco also love the slef documenting code "otherhacks.lua"
 
I still need to finish writing that.
 
yes dailymotion would be worse
 
1:44 AM
@ATaco how about just adding variables and then loops?
 
Loops already exist, just not infinite ones, and Variables make me a sad cookie.
 
@ГригорийПерельман when I see that I think of this
Brominated vegetable oil (BVO) is a complex mixture of plant-derived triglycerides that have been reacted to contain atoms of the element bromine bonded to the molecules. Brominated vegetable oil is used primarily to help emulsify citrus-flavored soft drinks, preventing them from separating during distribution. Brominated vegetable oil has been used by the soft drink industry since 1931, generally at a level of about 8 ppm. Careful control of the type of oil used allows bromination of it to produce BVO with a specific density (1.33 g/mL). As a result, it can be mixed with less-dense flavoring agents...
 
@Mendeleev The Portal video I just linked has them. Most people just want to hear/watch the song, not be asked for likes or entered in old giveaways.
 
This program gets all the primes up to and including n.
 
@DestructibleLemon Or Rambro or Tank Bro or Double Bro Seven or The Brodator or McBrover or ...
 
1:45 AM
@HelkaHomba Narrator from the stanley parable is pretty great
 
Still, I agree it's bad for some channels that use annotations constructively
 
@HelkaHomba Then disable annotations in the options menu.
It's that easy.
@HelkaHomba Look at this video: youtube.com/watch?v=eC7D4J_kfno
 
well, its easier if the annoying thing is off by default
 
This person only uses annotations, no talking whatsoever.
@DestructibleLemon This "annoying thing" is only annoying because people use it in an annoying way. It's a tool, you can use it in plenty of ways.
 
1:47 AM
Imagine if the world's hammer manufacturing was stopped because people kep breaking things with them.
 
@Mendeleev well, do you have to turn them off for every video, or is there a single option
 
@DestructibleLemon Single option.
 
well, so you have to turn it back on for that video?
checkmate
 
@DestructibleLemon huh?
Also, rember, each annotation has a "x" close box.
 
You can't argue that you can just turn it off and simultaneously argue that they are useful to have
 
1:48 AM
@DestructibleLemon Yes I can.
 
@DestructibleLemon Yes, you can.
 
Some videos use them in an annoying way. The few should not affect the masses.
 
I like the ability to skip cutscenes in videogames, but I don't want all cutscenes to go away.
 
Imagine if someone took a computer and hacked the US government, should the US ban computers?
 
@DestructibleLemon more like a beginner thinking that he's checked an advanced chess player, only to realize that he moved his pawn four spaces forward
 
1:49 AM
@Mendeleev the few that use them correctly shouldn't affect the masses that use them for advertising? I agree
 
@JanDvorak "masses"
 
@Mendeleev they certainly would.
 
@Mendeleev faulty argument
 
@Mendeleev Well, closed captions are still possible, right?
 
I've only seen one video with annoying annotations, that was the one that @HelkaHomba linked.
@HelkaHomba The best part about annotations is that they can be links, for example to another youtube video.
 
1:50 AM
some people are annoying, should we get rid of all people? >_>
3
 
I saw a great choose your own adventure video series once.
 
@Mendeleev useful for advertising
 
@JanDvorak so?
 
@ConorO'Brien YES!
 
@JanDvorak alright, you first
 
1:51 AM
Well, we could flag that, but we can't flag youtube annotations
 
@JanDvorak Yes you can.
 
should I?
 
@Mendeleev well, the thing with google is that they like to play police with people through their products to make waht they see as a positive impact on the world
when do somthing this drastic they usually have done their research and know what they are doing
 
1:53 AM
@ATaco that is monstrous
 
@Mendeleev that reports the video.
 
e.g. https, amp, backspace
 
@Maltysen I really hate how they are making hangouts worse. No, I don't want to use Allo, Duo, Teams, or whatever. Just make everything Hangouts, add Assistant to it, and then merge SMS back into conversations (used to be a feature)
 
@Maltysen counterexample: profile button in Chrome
 
I think the worst part is how it actually does the splitting.
 
1:54 AM
@Mendeleev yeah, social media really is one place that they have no idea what they're doing
 
> We use quality components to make sure that your computer will never break down.
 
@JanDvorak really?
i think most people like the profile button
 
does this mean I can file lawsuit if my computer breaks down when I smash it with hammer
 
@Downgoat I shoudl probably change that.
 
> never
 
1:55 AM
@Maltysen I don't like it, and I hate the PR around it
@Mendeleev well, that's not very transparent
 
@JanDvorak What do you mean by that?
@Downgoat refresh please
 
First, append a space to the start and end. Then, take ALL possible substrings of it. Then, filter out all the substrings that don't start with a space. Then, filter out all the substrings that don't end with a space. Then, filter out all the substrings with more than 2 spaces. Then, remove all spaces from all the remaining substrings and print.
 
Hey looks like the codebowling pangram challenge got itself a trivial answer already!
 
@Maltysen it takes up space, it's useless for single-account users, it shows my username to everyone...
 
@ATaco o_o
 
1:57 AM
@Mendeleev your checkout says Phone is not a valid phone number, but no phone number field
 
@Mendeleev how am I supposed to know a textbox appears when I click report?
 
Who needs a while loop anyway?
 
@Downgoat ?? wot
Never had that issue
 
@ATaco I do. I do. I do. I do.
 
Just get all the possible answers, and pick the one that's correct!
 
1:58 AM
also 2/10 for wordpress :(
 
It works for me
@Downgoat What other shopping framework should I use?
 
idk, good question
 
@JanDvorak hmmm, never really thought about it from the point of view of a single account user
 

« first day (2242 days earlier)      last day (2592 days later) »