« first day (2012 days earlier)      last day (3127 days later) » 

19:00
@ven nobody care about accents
(except with the a/à)
lol im always too lazy to put in the extra effort to type the unicode accents :D
@ven Aren't bytes and words different things?
33
Q: What's the difference between a word and byte?

user796388I've done some research. A byte is 8 bits and a word is the smallest unit that can be addressed on memory. The exact length of a word varies. What I don't understand is what's the point of having a byte? Why not say 8 bits? I asked a prof this question and he said most machines these days are by...

it would be word 20 years ago, but now with 64 bit processors most operations are executed on 64 bits.
why on the earth it install that ಠ_ಠ
@Zgarb Haha, that's what I'm doing right now the only better prospects is a somewhat higher salary, but in about three years I have to finish the rest of it.
19:04
@RohanJhunjhunwala sorry didn't get around to reading through it yet
@TùxCräftîñg most VS installs have a lot of tools/plugins by default
@Martin Ender ok, I understand you are incredibly busy, but if you do get a chance I would be interested in hearing what you ave to say.
I really want to see more king of the hill hcallenges
ven
ven
@Zgarb they mean pretty much whatever you want...
@CᴏɴᴏʀO'Bʀɪᴇɴ that's being french! (Sorry :P)
@ven ahaha totally agree
ven
ven
@TùxCräftîñg gravatar regenerates my avatar every few hours
19:07
@ven why?
really?
I though t gravatars were set in stone
ven
ven
Because I don't have my address filled in on SO/SE
I need advice on an avatar
Use Androidify
19:08
@flawr I'm actually on my training period at this very moment. Four weeks in a summer camp in the middle of nowhere, learning about the basics of pacifism and environmental protection... at least I can go home every weekend. :/
@ven A byte is a word, but a word is 4 bytes.
@flawr s/4/2/
@RohanJhunjhunwala unicorn
@TùxCräftîñg no
19:08
@RohanJhunjhunwala a nuclear explosion
32 bit and 16 bit words are the most common though
word = 2 bytes, double-word = 4 bytes
@Zgarb Haha, I had to do something similar, also in the middle of nowhere (with very uncomfortable chairs...)...probably more to come.
@RohanJhunjhunwala use Androidify
@RohanJhunjhunwala A cat
19:09
ooh i like that @TùxCräftîñg
Business cat, that gives me an idea
nuclear car cat
Random question, has anyone ever done a solution in Folders?
brb creating a neclear cat
19:10
@BusinessCat yes
but not me
@RohanJhunjhunwala avatar:
why is markdown not supported here?
@RohanJhunjhunwala It is, just not all of it. (See bottom right, help)
ven
ven
19:13
@flawr no.
A word is not fixed size.
a "word" is 4 bytes
get it?
a "word" is four bytes
there
ven
ven
@flawr >.<
unless its utf-16 or utf-32 :D
ven
ven
Insert words than end in gry here
19:14
@Zgarb Jellyfish is really interesting!
"a word" is 7 bytes in C
I have come across a tricky practical programming problem recently and I am wondering how to turn it into a challenge
@RohanJhunjhunwala was that for me?
19:15
@TùxCräftîñg T R I P P Y
yes @Lembik
TIL i am bad at paint.net
@CᴏɴᴏʀO'Bʀɪᴇɴ Thanks! Oh BTW, since you like implementing languages, you should look into Pratt parsers.
@RohanJhunjhunwala oh well it's not from a web page
it's from personal experience
@Zgarb No problem! And... that's a link to difference between word and byte
19:17
sandbox it,
(Also, the unary forms of N and - are the same, at least, according to the docs. Is this intentional?)
@CᴏɴᴏʀO'Bʀɪᴇɴ No it's not. shady look
It's this simple sounding problem. Given a text file describing a graph, with two node ids per line, output a sparse adjacency matrix
make it code-golf
@RohanJhunjhunwala good idea.. I was looking for some advice here first
ven
ven
19:17
@betseg wat
@RohanJhunjhunwala I think it should be fastest-code.. because the whole problem is RAM usage
1
Q: Sort band names

shooqieChallenge description You have a music library with many tracks recorded by many bands, each of which has a name, like Queen, AC/DC, Sunny Day Real Estate, The Strokes . When an audio player displays your library alphabetically by band name, it usually skips the The part, as many band names star...

it's very easy if you don't care how much RAM you use
and hard if you do
19:18
and require ascii output
ven
ven
The only thing C dictates is that a char is 1 byte
> mixfix
I like that word.
here is the nucatlear
@ven 'a', ' ', 'w', 'o', 'r', 'd', \0 = "a word"
@CᴏɴᴏʀO'Bʀɪᴇɴ I think - is arithmetic negation, and N is logical negation. The docs are horribly incomplete.
19:19
@betseg -¯-
@RohanJhunjhunwala ascii output.. hmmm
@Zgarb oh, I see. that makes sense.
@BETSEG if you don't mind garbage at the end leave out the \0 null byte
@RohanJhunjhunwala a wordÊåùÌÔÆ↓¬G«
But a string in C is just a char array terminating with \0
19:20
@CᴏɴᴏʀO'Bʀɪᴇɴ Anyway, Pratt parsers are used for parsing expressions with prefix, infix and postfix operations and arbitrary precedence rules. I use them for Grime, and they're awesome.
i use a pratt parser in neoscript
I think someone made a JavaScript tutorial for them too.
@Zgarb This looks fascinating--revolutionary. Thanks so much! :D
no love for my nuclear cat ;_;
or my hard trip one
ven
ven
@betseg remember, words than end in gry :).
@CᴏɴᴏʀO'Bʀɪᴇɴ don't you like agda? :D
19:24
@TùxCräftîñg Oh you used the JS tutorial with the nud and led methods.
@ven it sounds like a cool word
ven
ven
It's a purely functional, dependently typed programming language.
@TùxCräftîñg That one exactly.
ven
ven
@CᴏɴᴏʀO'Bʀɪᴇɴ you can define i.e. if_then_else_ a b c = ... and then call it as if True then b else c
And the paper describing the parsing also is named mixfix parsing :)
19:26
@ven whoa that's cool
coolink
5
Q: Move platforms!

daHugLennyThe Challenge Given either a string, multiline string, or a two dimensional array, and a positive integer n, output the position of the platforms n turns after the initial position. U, D, R, L are platforms. ^, v, >, < are arrows that change the directions of the platforms. U, D, R, L move...

why on the earth this question is closed ಠ_ಠ
Does this happen to you yoo?
@betseg wat
@TùxCräftîñg nuclear war
@betseg The CSS file failed to load. Just refresh.
ven
ven
19:27
@CᴏɴᴏʀO'Bʀɪᴇɴ yeah it's amazing. Sometimes I think Agda code was made to look like an actual paper :P
@Dennis ye i know but refreshing doesn't fix
9 mins ago, by TùxCräftîñg
user image
@ven I can see that
public class Precedence {
  public static final int ASSIGNMENT  = 1;
  public static final int CONDITIONAL = 2;
  public static final int SUM         = 3;
  public static final int PRODUCT     = 4;
  public static final int EXPONENT    = 5;
  public static final int PREFIX      = 6;
  public static final int POSTFIX     = 7;
  public static final int CALL        = 8;
}
ven
ven
@CᴏɴᴏʀO'Bʀɪᴇɴ case in point (sure hope you can read ml-ish notation :P)
ven
ven
19:29
@CᴏɴᴏʀO'Bʀɪᴇɴ the only word separators are space and parens. Everything else is a-okay
@CᴏɴᴏʀO'Bʀɪᴇɴ ML family. caml, haskell, etc
@CᴏɴᴏʀO'Bʀɪᴇɴ AHHHHH JAVA
@TùxCräftîñg that is the stuff nightmares are made of .-.
@ven oic
∷-injective : ∀ {a} {A : Set a} {x y : A} {xs ys} →
x ∷ xs ≡ y List.∷ ys → x ≡ y × xs ≡ ys
Totally math paper.
@betseg Do a hard refresh.
ven
ven
19:30
@CᴏɴᴏʀO'Bʀɪᴇɴ so fabulous :P
ven
ven
The worst thing is that I can totally read it, fml :(
@Dennis im on mobile
where is the source of agda?
@betseg Visit javascript:location.reload(true).
ven
ven
19:32
@TùxCräftîñg look at the github org.
Agda is written in Haskell
AHHHHHH HASKELL k
@Dennis didn't work:(
ven
ven
If you want to be a true polyglot, you'll have to learn weird things like haskell
But it's all very easy once you realize a monad is a monoid in the category of endofunctors!
more seriously i have already programmed in haskell but gave up after 5mn
but TCO is great.
Learn you a haskell for great good
Come to the darkside learn java
you can write dubious code for any pltform you wish
19:35
May I post a video of a dog?
and you dont have to be worried about being outgolfed!
@RohanJhunjhunwala I'm trying but the IDE isn't opening
yes? @flawr
@RohanJhunjhunwala NEVER
JAVA IS THE DARK LORD
@betseg which ide
@TùxCräftîñg you cant resist our allure forever
@RohanJhunjhunwala it's...a joke. About the lagginess of Java
for me it's simple: i have borked eclipse by installing a plugin for haskell
thats hilarious :D @flawr and @TùxCräftîñg
Knock Knock
Who's there
19:38
Realy long pause....
Java
LOL
Knock Knock
Assembly
LOLOLOL
Knock knock
Assembly is great
ven
ven
I have borked Eclipse by virtue of it being Eclipse.
3
19:39
because you can do lock cmpxchg8b eax
Knock knock
who's there
Segmentation fault (core dumped)
@RohanJhunjhunwala ye
lol @StevenH.
@StevenH. so true
You know something is wrong with a language when you can create a Math object
but this is fixed with edge
19:41
or a void object
@TùxCräftîñg true
if a challenge from 6 months ago doesn't have a solution in a certain language, can I post a solution to it? or is that frowned upon? new to this community.
VS installer is still running after 30mn lol
671
A: Write a program that makes 2 + 2 = 5

user12166Java Reflection is indeed the right way to go with abusing Java... but you need to go deeper than just tweaking some values. import java.lang.reflect.Field; public class Main { public static void main(String[] args) throws Exception { Class cache = Integer.class.getDeclaredClasses...

@JustinTervay go for it!
@JustinTervay Go for it, but it won't be a competing answer if the language version is newer than the challenge
19:42
> Warning: Doing this in real code will make people very unhappy.
@StevenH. Right, I've seen that rule. It's python so that's not an issue :) Thanks guys!
removing it from the codebase
void* a_void_pointer;
@JustinTervay Some challenge around here doesn't have a Python answer? That's amazing.
i hate C++ because i must do int *lelkaboom = (int*)malloc(sizeof(int))
19:43
i don't think you must
at least MSVC dont compile if i omit it
you must do it if it's a dynamicly set array
idk about g++
@TùxCräftîñg I showed it to my program teacher. He was not a big fan of it. THen again he's against gotoes and break statements
19:44
> he's against gotoes and break
GOTO FTW
I AM A TRUE PROGRAMMER
GOTO considered helpful
SO I USE GOTO
@Zgarb is there a way to compose two unary functions?
19:45
I AM FROM ITALY I LIKE SPAGHETTI CODE
2
@betseg ixdé
@RohanJhunjhunwala oh my...
@TùxCräftîñg you shouldn't ever be using malloc in C++
@Doorknob ಠ_ಠ
malloc is great
19:46
@Doorknob You shouldn't ever be using C++
(PS: i hate type-safety and i love memory leaks)
^^
ven
ven
@betseg no, @TùxCräftîñg is correct, C++ won't automatically void* to T
Wait lets take a look at Swift.
I can't math right now, how many calls to Python's len should I have in my program before I devote a line to l=len?
ven
ven
However he's wrong for using malloc in C++ :-)
19:47
Developmenent in swift is anything but swift
lets take a guess at what the ! operator does
anyone?
ven
ven
Swift is very nice.
Are you kidding me?
ven
ven
It forcefully unwraps an optional
The compiler is buggy af
ven
ven
Easy question, next one?
That too, as prefix.
19:48
@StevenH. thats what any sane language would do, but ven is right
wait it works as negation?
if(!statement)
Probably
ven
ven
As a prefix operator. As postfix it's unwrapping.
Two separate operators
... Not sure why you're answering me :)
@ven why does it depend on equal whitespace on each side of an equals sign?
What is unwrapping i don't speak swift
ven
ven
@RohanJhunjhunwala sorry?
19:49
@StevenH. l=len is 5 bytes, and calling l(str) is 1 byte (now 6), so anything over 2 calls saves bytes, while 2 calls will be the same
ven
ven
@betseg a! :: Maybe t -> t
@ven if you have xcode open try this a=5
I didn't word that 1 byte part perfectly but I hope you get my drift
19:50
it robbed my formatting
The only operators that I appreciate having different functionalities between prefix and postfix with are ++ and --, but having ! work that way too?
@ven wow...this looks like chinese. Please talk in English or C or something like that
kotlin has very similar syntax (!! instead)
'a = 7' does not compile
why is it pretty printing my code
there should be two spaces after the equals
'a = 7' wont compile
@RohanJhunjhunwala wtf
19:51
again wtf
@betseg the language depends on equal whitespace in front of and behind equality operators
its ridiculous
wow...just...wow
In what situation would you not want that?
a:=3 vs a=3?
Meanwhile I'm trying to work out four different programs at once and I really should just focus on one of them
19:52
@Doorknob whitespace should not be that sensitive a =3 should compile as fine as a(space)=3
a=3 versus a =3 both should compile
@RohanJhunjhunwala Why would you ever want to type a =3 instead of a = 3?
ven
ven
If you want to declare a variable use "let"...
@Doorknob why not
enforcing good code style is a good thing
@ven what if i want to change it later?
let makes it final
ok, but for example lets look at their try catch statements
do try catch???
instead of try catch
why?
19:54
If you have a line break in you statement, do you have to write
`k
=
3` ? :P
@RohanJhunjhunwala Why not? That doesn't make any sense. Why not put five newlines between every statement?
ven
ven
Do/try/catch is fine, makes for finer-grained control.
my question is why cause compilation failure just because somewhere one space is off?
ven
ven
I'm used to eval in Perl 5 so /shrug
@RohanJhunjhunwala My question is, in what situation would you need that to compile?
19:56
@RohanJhunjhunwala because if compiles don't enforce it, then often times, nobody will
a = 123
b =   5
c =  27
compilers*
@Doorknob I guess I do concede, I may be a bit of an apple hater. @feersum gives me a legitimate use case
to make things line up nicely
@feersum if you add d = 123456, then you have to rearrange everything
left aligned is better :)
19:57
eh, ill concede my apple hatred.
@NathanMerrill What if you had variable names of different lengths ? WHOAAA
32
Q: My god, it's full of spaces!

DennisSome people insist on using spaces for tabulation and indentation. For tabulation, that's indisputably wrong. By definition, tabulators must be used for tabulation. Even for indentation, tabulators are objectively superior: There's clear consensus in the Stack Exchange community. Using a sing...

@feersum then I forgo aligning in the first place
ven
ven
Lining up variables... Sigh...
19:58
even dennis agrees
but please do read this.
https://kakubei.github.io/2014/11/15/swift-is-a-mess/
@feersum ​
ven
ven
I don't really care what other people think of the language I use, tbh..:)
@Doorknob Not if you're using Swift, if what we're told is true.
ven
ven
This whole Swift blogpost is utterly outdated. We're at v3.
20:04
@MartinEnder Both ~ and & should work, IIRC.
Tabs are for hipsters. Spaces are for coders. ;-)
ven
ven
Tabs are for people who understand indentation /s
catch-where is cool
try{throw pokeball;}catch(em all){}
Btw kids don't do tabs
ven
ven
If you dislike do/try/catch in Swift don't even try Ruby :D.
20:10
PowerShell has try/catch{1}/finally
I don't know how to regex it
AHHHHH I AM BACK
a cmd window from SysWOW64 is popping randomly and close some millisecond after
Prelude> let 2+2=5 in 2+2
5
haskell swag?
such haskell much wow
how are ppcg id numbers asssinged?
20:21
@RohanJhunjhunwala new user = last user id + 1
how do i access them
like look at it
I finally complete my Python 3 answer for Integers, Assemble!... it's well over 500 characters and all of the other implementations are like 200
ven
ven
@TùxCräftîñg congrats on defining a function :)
$ ghci
WARNING: GHCi invoked via 'ghci.exe' in *nix-like shells (cygwin-bash, in particular)
         doesn't handle Ctrl-C well; use the 'ghcii.sh' shell wrapper instead
GHCi, version 7.10.3: haskell.org/ghc  :? for help
Prelude> ^C

Elie@elie-asus ~
$ ^D
Prelude> logout
ven
ven
20:31
@StevenH. are they golfing languages?
no, you are sure?
@ven Nope, Javascript and Python 2
yay another loading bar
i love VS
@VTCAKAVSMoACE Oh great=)
finally caught it, can't let go
import requests, re

reg = re.compile(r'<title>([^<]+) - [^<]+</title>')

url = "https://esolangs.org/wiki/Special:Random" # Esowiki
#url = "https://en.wikipedia.org/wiki/Special:Random" # Wikipedia
def getlang():
        r = requests.get(url)
        return reg.search(r.text).groups()[0]

n = 50 # Number of searches
for _ in range(n):
        print(getlang())
^ cool script

« first day (2012 days earlier)      last day (3127 days later) »