« first day (1940 days earlier)      last day (2904 days later) » 

5:00 PM
Sorry, broken internet on computer disallows me to check the Nineteenth Byte on the computer. So I can't add your name to the leadboard.
 
@zyabin101 eh? How's that work, if you're here?
Surely if you're here, you can check TNB
 
I sent that message on mobile.
 
@zyabin101 (updated) Brachylog, 14 bytes: :"Hello, ~s!"w
 
See? Entries get shortlinks starting with zyabinVI.github.io/blog/ and having the golfed title of the entry, without any timestamps or anything. :)
@Fatalize Please wait until I update the leadboard.
 
@zyabin101 pl Hello, _!
@LeakyNun The dictionary comes with Jelly (at least I thought)
 
5:16 PM
yes but I can't find the index
 
>>> import dictionary
>>> dictionary.short.index("hello")
7704
 
Yeah, that
I'm not sure why you need the index though unless you're compressing by hand
 
@Dennis why a short dictionary?
 
There are two dictionaries: one for short and one for long words. Encoding long words requires more bytes.
 
yes, why split them?
 
5:19 PM
@zyabin101 :D \o/
 
@Dennis And then convert to base 250?
 
2 mins ago, by quartata
I'm not sure why you need the index though unless you're compressing by hand
 
@LeakyNun Not quite that easy. You should really use Lynn's script.
 
alright
 
@Dennis again, why split the dictionary into two?
I assume the dictionary is sorted by most common word first?
(probably the)
 
Anonymous
5:21 PM
@Sherlock9 You can look at the commit log on github to see what features were implemented
 
@orlp Alphabetically.
 
@zyabin101 that seems like throwing away information
 
@Mego Why did he need this?
 
@orlp No, they're sorted alphabetically. I'm planning to revamp compression.
 
@Dennis even then
 
5:21 PM
@Dennis ninja'd
 
why two dictionaries?
sort on length first
 
@orlp That only helps for a single word, not a string or words.
 
@zyabin101 created a pull req for the blog
 
@Dennis you have dabbled in arithmetic coding before, haven't you?
 
Yeah, with arithmetic encoding, that wouldn't be a problem.
 
5:24 PM
here's a proposed scheme for encoding a word
 
This was only a first draft. I planned to revisit it later.
 
@Downgoat Merged.
 
store the dictionary of words sorted by how common they are
 
\o/
 
@orlp Easier said than done. How do I get that information?
 
5:25 PM
so the becomes 0, and most becomes 99
 
All lists I can find online are either horribly outdated or completely unrelated to words you could find in a code golf competition.
 
Oooooh, more people fork Jekyll Now. The blog now has 9111 "forks" that are actually received by the official Jekyll Now repo.
 
Ha
 
5:26 PM
@quartata It's ninja'd >_>
 
@Dennis anyway, that's just the first step
now how to encode a word
let's say a word has index 99
 
The 42th most common word is "free". Coincidence?
 
@Downgoat Thanks to your contributions, you now have write access to zyabinVI/blog!
 
that's 0b1100011
 
@Fatalize yes
 
5:27 PM
@zyabin101 \o/
 
that's 7 bits long
so you first encode the length of the word in bits in unary
11111110
then you encode the actual bits themselves
so end result is 111111101100011
 
The index for "contact"... coincidence? ( ͡° ͜ʖ ͡° )
 
now, that might seem bigger than necessary
but that's before arithmetic encoding
 
9959 - telecharger
 
when encoding the unary, you put the probability of the first bit being 1 at 100% (because a word will always require at least 1 bit)
 
5:29 PM
wtf that's not even English
 
the second bit at 50%
the third bit at 25%, fourth 12.5%, etc...
 
@Fatalize ( ͡° ͜ʖ ͡° )
ce n'est pas anglais
 
if english is more skewed towards more common words, you can alter this distribution
 
9995 - Swaziland
10000 - Poison
 
@Fatalize Probably a pretty common French word on the Internet though
 
5:30 PM
how is that possible, muricans don't know about swaziland
 
Although I thought these were supposed to be from books...
 
that's with binary arithmetic coding
 
@quartata well yeah, it says US-english words but...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ HAI
 
if you want to use full arithmetic coding, you just use the histogram from the words
 
5:31 PM
9981 - ctrl
"words"
very loose definition
 
658 - california
659 - porn
660 - share
 
@Fatalize ._.
 
206 - p
very reliable list of words :p
 
@orlp Good ideas. I'll also have to think about how I can encode strings that aren't in the dictionary.
 
5:38 PM
Also capitalization and punctuation
 
@Dennis by putting it in the dictionary :P
 
Maybe just an extra bit for "first letter capitalized"
 
@quartata now the beauty of arithmetic coding is that you can assign a fractional bit to this :)
 
Ah yes, true
 
if the first letter of a word has a 10% chance of being capitalized, you only take -log(0.9, 2)*0.9 + -log(0.1, 2)*0.1 = 0.47 bits on average
relevant challenge:
17
Q: Compute the histogram entropy estimation of a string

orlpWrite a program or function that estimates the Shannon entropy of a given string. If a string has n characters, d distinct characters, xi is the i th distinct character, and P(xi) is the probability of that character occuring in the string, then our Shannon entropy estimate for that string is gi...

 
5:42 PM
Hmm, I wonder what good weights for punctuation should be. ,. should probably have higher probabilities than ?!
Ooh, I forgot semicolons. That's tricky because while those don't come up much in sentences they're common in code (not Jelly code obviously)... Still, probably won't come up that much
 
Oh hey, I didn't know about the bisect module.
 
ohai @RenderSettings
 
I'm citing a dude named "Büttner" in my paper about the TTSS (some bacteria). I wonder if its the same one as ours...?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ If that guy is wearing a scarf too, then it's obviously definitely @MartinBüttner
 
5:49 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Absolutely not.
 
@Downgoat I can't tell this from a book.
 
Alexander Büttner (pronounced [ɑlɛˈksɑndər ˈbɵtnər]; born 11 February 1989) is a Dutch footballer who plays as a left-back for Belgian club Anderlecht on loan from Russian club Dynamo Moscow. He is also capable of playing as a left midfielder. He began his professional career with Vitesse before joining English club Manchester United in 2012, but left for Dynamo Moscow two years later. == Club career == === Vitesse === Born in Doetinchem, Büttner began his career with local club VV Doetinchem, but spent his formative years with Ajax before joining Vitesse at the age of 16 in 2005. He ma...
 
@zyabin101 o/
 
I guess no Urbit news, right?
Aaaaand... for which time around, I'm wrong.
 
btw, if I am using "kingdom come" as a way to refer to a time perpetually far into the future, would it be "Kingdom come" or "kingdom come"?
 
5:55 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Kingdom come, I think
 
@zyabin101 They're getting ready for lambdaconf I think, along with sheparding a paper for LANGSEC. Lots of docs work so people can actually try and use it
 
fun fact: butt means behind in english
 
@zyabin101 I also got awarded a galaxy :D
 
@RenderSettings :D
@RenderSettings Your fingerprint is ~nym, right?
@RenderSettings :D
Latest commit "merged 'fix CSS ordering' and 'add ~nym\'s fingerprint into ames code'" done two days ago.
 
5:57 PM
Nope, ~rys. Curtis gave out a few galaxies to people that committed to urbit, I'm only one of them
 
:D
 
@Downgoat let and var.
Also, ಠ_ಠ for single choice poll.
 
what should the difference be?
@zyabin101 ??
 
@Downgoat let for constants, var for variables.
 
6:01 PM
not const for constants?
 
@Downgoat Okay, const for constants.
 
\o/
 
let for global variables, var for local variables.
 
too many things
 
6:02 PM
if anything, let should be local. "Let x = 5, and you'll see that x + 5 is 10." x is further irrelevant.
 
@Downgoat no
nothing for constants
mut for mutable variables
 
^ local and immutable should be default
 
@CᴏɴᴏʀO'Bʀɪᴇɴ HAI
 
HAI
 
6:12 PM
in Charcoal HQ, 4 mins ago, by ArtOfCode
you know you're gonna be there a while when it takes an hour and a half just to get the first view working
 
Someone flagged an xkcd in GameDev lol
 
this is why you should maintain apps, kids, rather than letting them stagnate
@quartata ugh, GD again?
 
Yeah :/
 
-_-
 
I love how of all the crazy things that happen in that room the one thing they had to flag was the world's most mundane xkcd
 
6:16 PM
@EᴀsᴛᴇʀʟʏIʀᴋ HAI
where's that room that records flagged messages?
 
@quartata Which xkcd?
@CᴏɴᴏʀO'Bʀɪᴇɴ The late night show with JavaScript.
Quill

Bachelor of IT student working in C# and learning the ineptitude of JavaScript and a bunch more languages. Ping me anytime!

seen 60s ago, talked 9h ago
user profile
user profile on codereview.stackexchange.com

Rooms
Language Learning
Unipants' Golfing Language
The late night show with JavaScript
TAC (The Acronym Chat)
Deep Web
Chatgoat v3
Ask Ubuntu General Room
The Nineteenth Byte
Maid Café (メイド喫茶)
The 2nd Monitor
Charcoal HQ
Beep Boop Maggot
Sandbox
The Frying Pan
The Whiteboard
The Bridge
 
@Quill Wow, that's a LOT OF ROOMS!
 
1
Q: Print the nth prime that contains n

ericw31415This question will be a twist on finding the nth prime number. Challenge You must write a program that will take one input x, and output the nth prime number that also contains n. Confused? Here are some examples. x=1 Primes: 2, 3, 5, 7, 11 ^1 first prime that contains a 1...

 
anyone who knows J: how do you write to a file?
 
6:28 PM
'text' 1!:2 < 'file'
IIRC
 
is file the name of the file in the directory?
 
what else would it be? :P
 
It's the path to the file yeah
 
'testing' 1!:2 < 'C:\Users\Conor O'Brien\Documents\Programming\J\file.txt'
that should write testing to file.txt, yeah?
 
6:30 PM
ye
 
how do I run this as a script? jconsole <filename>.ijs doesn't work
 
Does it work from the repl?
 
it does if I escape the apostrophe in my name >_>
 
lol
>_> you shouldn't have one in your username anyway...
 
heh
 
6:33 PM
@EᴀsᴛᴇʀʟʏIʀᴋ My parents bought me the computer, and thus configured it
@quartata it does, but running jconsole <filename>.ijs still doesn't work
 
@CᴏɴᴏʀO'Bʀɪᴇɴ okay
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Huh, beats me. Try some google-fu
 
it's impossible to google J >_>
 
I usually get good results if i do "j language"
 
Okay, Google, J language. "Results for Jay Language" >_>
 
6:36 PM
with something else obviously
 
"I asked J the letter, not J the name!" "Sorry, I don't get it."
 
nothing for "j language run a script"
 
Run jhs?
 
jhs the J HTTP server.
 
6:38 PM
idk how to do that >_>
 
@CᴏɴᴏʀO'Bʀɪᴇɴ It should be there on the Windows package.
 
>_>
 
btw @quartata what happens when you specifically type clear into jconsole?
 
I have one on my humble j804 package. >_>
...
 
6:47 PM
claps
 
enter PhiNotPi
 
exeunt
 
unenter PhiNotPi
 
@CᴏɴᴏʀO'Bʀɪᴇɴ What do you think it does?
Hint: In Batch-world you'd call it cls
 
6:49 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ ReferenceError: unexeunt doesn't exist
@PhiNotPi ReferenceError: unenter doesn't exist
 
@quartata Don't be such a smart ass
I'm asking because mine has problems.
 
some friends and I are working on an agar.io clone (based off previous clones): fishy1.herokuapp.com
warning: eating other people is broken
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Whoa
Uhhhhhhhhhhhh
 
   clear
3 : '". ''do_'',('' ''-.~y),''_ '''' (#~ -.@(4!:55)) (4!:1) 0 1 2 3'''''''
    NB. wat
@CᴏɴᴏʀO'Bʀɪᴇɴ Same here.
 
XD idk what's wrong
clear seems to only erase a string >_>
   clear 'asdf'
 

« first day (1940 days earlier)      last day (2904 days later) »