« first day (1900 days earlier)      last day (2945 days later) » 

8:01 AM
 
@flawr Looks like it could made up for a good pop-con !
 
despite the lack of documentation, at some point we should give an award to Ton Hospel's answer to my challenge
 
@Lembik which one?
 
it is the fastest implementation in the world, by a long way, of a special case of the Riemann Theta function
8
A: Approximating a special case of the Riemann Theta function

Ton HospelC++ No more naive approach. Only evaluate inside the ellipsoid. Uses the armadillo, ntl and gsl libraries. Install using apt-get install libarmadillo-dev libntl-dev libgsl-dev Compile the program using something like: g++ -Wall -std=c++11 -O3 -fomit-frame-pointer -march=native -s infinity.c...

 
@Lembik fastest in the world?
are you sure of that? ^^
 
8:05 AM
@Katenkyo yep.. I can prove it to you too :)
 
Anonymous
 
try the mathematica solution first if you have it
 
@Lembik It is only one of two answers. Which are - in my opinion - not very representative.
 
@Lembik I don't , and I'm on my work computer, so I'll trust you on this :)
 
@flawr no sorry.. I mean that commercial products have implementations of the Riemann Theta function
then try the Maple implementation
then realise how amazing his code is
so yes.. the fastest in the world :)
 
8:08 AM
I will if I remember to next time I'll be home ^^.
 
Why would anyone design it for speed?
 
@Katenkyo great.. for mathematica you can just copy and paste this code mathematica.stackexchange.com/questions/111904/…
@flawr why would anyone design "int"?
 
@Lembik why would anyone design?
 
I am confused.. which challenge is this about?
 
@flawr complicated algoythm require to be optimised if you want to be able to use them in a prod' environment
 
8:11 AM
Sure, but as far as I'm aware this function is only interesting in the theoretical context.
 
well the Riemann Theta is practically unusable in the existing implementations as you can not input a matrix larger than 9 by 9
@flawr it is very useful to have an implementation
@flawr partly because lots of theory questions remain unanswered
 
I'm not really versed in the mathematical world, so can't speak about this function
 
Compare to dirichlet L functions. Nobody is interested evaluating those numerically.
 
I can speak about the version in my challenge
 
But having faster algorythm will always be proven useful at some point
 
8:13 AM
for example, I would like to know what the average value of the function is for random matrix M
there is no theory for that that I am aware of
but I can compute it numerically
 
got to go
until later
 
@Mego ^^ very hacky userscript
 
@MarsUltor doz it kno how to juic avocad?
 
@Katenkyo No
@Katenkyo because I don't know yet
@Katenkyo I can add it though
 
8:18 AM
@MarsUltor also, what is it supposed to do?
 
@Katenkyo Disables editing chat messages
 
Anonymous
s/edit/eleven in the message edit options
 
ಠ_ಠ
 
@Mego D: I had to replace Event.prototype.stopPropagation with a no-op, it's probably a really bad idea
 
8:45 AM
0
A: Sandbox for Proposed Challenges

Martin BüttnerSubsequence Substitution code-golfstringsubsequence Most languages come with a built-in to search a string for all occurrences of a given substring and replace those with another. I don't know of any language that generalises this concept to (not necessarily contiguous) subsequences. So that's ...

 
 
1 hour later…
9:48 AM
chat ees ded
no big surprise
 
1 zombie apocalypse later...
 
What would be the best place to stay in case of zombie apocalypse?
I guess if you can find a bunker with a way to produce vegetables, it would be the best
 
10:33 AM
Gentlemen, I'd like your advice
I have an idea to create a general programming language where the main goal is ease of use and where efficiency is somewhere else on the priority list
The trouble is that I have no idea where to start
 
@Sherlock9 Like Pytek?
 
Oh yeah
To be honest, I haven't kept up with Pytek developments
How's it going?
 
@Sherlock9 El'endia hasn't shown the source
But he's finished stage 1 (parsing), doing stage 2 (converting nodes to actual objects (numbers/strings etc)), hasn't started stage 3 (execution)
but basic execution is done IIRC
 
What's the main paradigm? Imperative? Procedural? Functional?
 
@Sherlock9 Functional, I think
Wait
IDK
Ask El'endia. I'm not sure it's geared towards any one paradigm though
It's gonna be something like python, so it'll support all of those plus OOP and reflection
 
11:00 AM
Ah, alright. Thanks
 
11:32 AM
@Sherlock9 you may also want to check WinDev
Close to human language, and almost everything is done by the compiler
for instance, in WebDev (their web version of WinDev) Ajax, LDAP connection etc are only 1/2 functions to call
Bad-point : not free
 
@Katenkyo But there's a free Express version that allows you to try the language without a time limit.
 
@Katenkyo EnglishScript >> Windev
 
@MarsUltor Never tested EnglishScript, so can't tell about it
@zyabin101 yeah, but was speaking in case someone may want to actually use it
 
EnglishScript doesn't to that much, though
 
12:01 PM
WinDev is going to take a while to download, so I'll hold off on it for now
@Katenkyo Thanks for the recommendation though o7
 
why do you need WinDev?
 
12:14 PM
Mathematica:
Min[Length/@Select[Flatten[Permutations/@IntegerPartitions@Length[a=#],1],AllTrue[FromDigits/@a~Internal`PartitionRagged~#,PrimeQ]&]]/.∞->0&
Pyth:
lhf.AmP_sdTa./zY
 
still beats Java
And the java golfer goes still beats unary
 
@Katenkyo But not binary Pyth
Wait a second, if binary Pyth existed, it would be at most the same length as Pyth
 
@MarsUltor no because Pyth is ascii only and only uses the first half of each byte
 
@Maltysen first half?
You mean only one byte
 
@MarsUltor 128 / 256
 
12:21 PM
@Maltysen the first 7 bits
 
@MarsUltor ok fine, half of the character space
 
so basically binary Pyth would be at most 7/8 the size of Pyth
 
so all the two char tokens can be one byte
yeah Pyth isnt optimally packing, even with using 7/8 of a byte, so binary Pyth would be a lot better
 
I've got a question for english folks
Why do you say omelette du fromage?
 
is pretty sure nobody here is even British
 
12:25 PM
@MarsUltor (there may be some australian or an american, you never know)
 
@Katenkyo English != Australian/American
 
@MarsUltor English != British, English=set(British, American, Australian)
 
Also, there's almost 100% chance at least one person here is American at any given time
 
And thanks, now I know... it's been bothering me for a while
I think it is around 3-5 am in America, so... There's little odds
 
@Katenkyo No, those are English-speaking countries
@Katenkyo Oh wait nvm
 
12:28 PM
@MarsUltor Yes, and that's what I meant by English ^^
I could say native English if you prefer
 
But
I'm on for quite a while when the Americans are asleep
 
@MarsUltor At least some of us are in/from Britain :)
 
12:48 PM
0
Q: Display custom error messages, if data type mismatch while reading excel file into database(in C# Program)

SreeI am new to .NET, Hope to get some suggestions on my below scenario: Scenario: I have an external Excel file, which should be read and loaded into the database using C#. So, For that I have created two tables: Staging table (A temporary table which reads the data from excel file before loading...

 
@El'endiaStarman btw range isn't a generator
so indexing, looping multiple times, etc. works
it is lazy though
 
1:03 PM
@NathanMerrill Nah, I just thought of writing a programming language with ease-of-use in mind first and foremost, and these guys were giving me idea of such languages that already exist
Brb, going to go see how many more times Undertale can kick my ass
 
1:29 PM
2
Q: The Removal Van

James HydeChallenge: You are writing a program for Generic Removal Company, and they have asked you to calculate how many boxes will fit on one of their vans. Your program will take the size of one box as the first argument, and the size of the van as the second argument in a HxWxD format. Rules: The d...

 
 
1 hour later…
2:30 PM
The infinite sum bounty ends in less than 23 hours.
 
@zyabin101 I there's already a great enough answer
No one will take the bait of the bounty as they don't think it'll be able to easily beat it
 
Chat-mini challenge: output your submission, its byte counter, and source code, etc.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ a quine with some more informations?
 
Yeah.
Specifically, Lang Name, code, NN bytes.
 
2:52 PM
@zyabin101 Link?
 
21
Q: Approximating a special case of the Riemann Theta function

LembikThis challenge is to write fast code that can perform a computationally difficult infinite sum. Input An n by n matrix P with integer entries that are smaller than 100 in absolute value. When testing I am happy to provide input to your code in any sensible format your code wants. The default wi...

Apparently, Ton Hospel is actively storming this thread up the main page.
 
@QPaysTaxes I'm not sure I follow.
 
Thanks
 
By improving his answer.
 
His submission is becoming more and more impressing
 
2:55 PM
@zyabin101 s/23/22/
 
@zyabin101 1 hour later...
 
NOOOOO (Darth Vader voice)!
 
@Dennis moi aussi, idk what he's talking about
 
@CᴏɴᴏʀO'Bʀɪᴇɴ reading some French miced up with English is kinda... strange
My brain froze and didn't know anymore which language it was reading
 
@Katenkyo c'est vrai. Tu prefererais que je parle en francais?
 
3:00 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ ?????????
 
Do you prefer to speak French? (?)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Hum, pas vraiment, j'en ai marre que les français passe pour des abrutis ne voulons pas faire l'effort de parler une autre langue dans une communauté internationale :p (uh, not really, I'm sick of frenchies not even trying to speak other language when being in an international community, making them looking like dumb/a**hole (whatever you prefer))
French people are usually frowned upon in internet communities, I don't want to make it worst
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You're Australian? o_O
 
@Dennis moi aussi ==> me too
 
sorry @Downgoat I wasn't online then
 
3:07 PM
@zyabin101 Ah, OK. That makes more sense.
 
XXD
@Katenkyo haha
 
@lembik: ping
 
IM A FRENCHAUSSI
 
3:28 PM
// JavaScript source code

var gulp = require("gulp");

gulp.task('default', function () {
    gulp.watch('src/*.es6', function (event) {
        console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
        gulp.src("./src/*.es6")
            .pipe(gulp.dest("./dest"));
    });
});
@Downgoat ^^^^^^^^^
 
gulps that's interesting
 
@Downgoat If you ever see this, this is for your grunt
@Downgoat First do npm install gulp
@Downgoat then npm install -g gulp
 
@CᴏɴᴏʀO'Bʀɪᴇɴ saw the reng answer come in, promptly upvoted. :P
 
@Maltysen Oh, so you're right. I even tried seeing if it was a subtype.
>>> isinstance(range(10), type(x for x in range(10)))
False
 
@Downgoat Then run gulp in the root
@Downgoat so type into the console gulp
@Downgoat This will watch the es6 files. If anything happens to them, they will be copied to the dest
@Downgoat If you don't want the watching, and want to do it manually, then: vvvvvvv
 
3:32 PM
@Solver, you really don't need to ping Downgoat with every message!
 
var gulp = require("gulp");

gulp.task('default', function () {
        gulp.src("./src/*.es6")
            .pipe(gulp.dest("./dest"));
});
 
Also, you could've put all those into one big message.
 
@El'endiaStarman Okay fine. :P
One more ping, pleez?
 
Is Level River Street @ThomasKwa?
 
Just one?
 
3:33 PM
You would've ticked him off already if he were in here.
 
@Solver check my profile description
 
@EᴀsᴛᴇʀʟʏIʀᴋ steve erril
 
@Downgoat If this helps, ping me to say it works, you will make my day. :) - Also, in case I didn't ention, Gulp is a replacement for grunt
 
okai
what did thomas become?
 
ThomasKwa became lirtosiast.
 
3:34 PM
lirtotaist IIRC
 
@Downgoat ^^^^ Supposed to be mention
 
@CᴏɴᴏʀO'Bʀɪᴇɴ _='Python, 48 Bytes:\n_=%r;print _%%_';print _%_
Sorta.
Not the right format though.
brb fixing
 
@EᴀsᴛᴇʀʟʏIʀᴋ :D
@EᴀsᴛᴇʀʟʏIʀᴋ kk
noice
 
I can't test it :P
noice
 
3:39 PM
nice noise
 
_='Python, _=%r;print _%%_, 50 Bytes.';print _%_
Finally.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Yes, I have @EᴀsᴛᴇʀʟʏIʀᴋ, @EᴀsᴛᴇʀʟʏIʀᴋ, @EᴀsᴛᴇʀʟʏIʀᴋ
 
@CᴏɴᴏʀO'Bʀɪᴇɴ be proud.
 
thx
go post a challenge on this
 
3:41 PM
well done no idea what you're talking about
 
The python code _='Python, _=%r;print _%%_, 50 Bytes.';print _%_ prints out itself, but formatted to go in a answer.
@CᴏɴᴏʀO'Bʀɪᴇɴ this code is better: _='Python, 48 Bytes:\n_=%r;print _%%_';print _%_.
It prints it nicely formatted.
 
Better even:
_='#Python, 49 Bytes\n    _=%r;print _%%_';print _%_
This ones prints exactly what you would put in your answer, with formatting.
@CᴏɴᴏʀO'Bʀɪᴇɴ usage:
>>> _='#Python, 49 Bytes\n    _=%r;print _%%_';print _%_
#Python, 49 Bytes
    _='#Python, 49 Bytes\n    _=%r;print _%%_';print _%_
 
@CᴏɴᴏʀO'Bʀɪᴇɴ seriously, go post a challenge about that.
i need to answer.
 
3:44 PM
Working on it.
 
0
A: Sandbox for Proposed Challenges

Cᴏɴᴏʀ O'BʀɪᴇɴOutput the score of your program quine code-golf This is a quine, but with some extra baggage: you must output the "ready-to-go" version of the program, which looks like this: Language name, code, NN bytes. For example, if you write your program in EpicQuineLang whose source looks like epicQui...

 
@Doorknob .i ti mutce pluja
please tell me I did that right and I didn't just waste three hours of my life
 
@quartata Even if you got it wrong, you have not wasted that time! You successfully found one incorrect way to say whatever you're trying to say! :P
 
I think mutce is x_1 is very x_2 but it could also be x_1 is very x_2 with respect to x_3. The dictionary kinda sucks
 
3:51 PM
WHY DOES EVERYONE KEEP TAKING MY TOYS
9
 
@NewSandboxedPosts inter-user ninja'd
5 mins ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
0
A: Sandbox for Proposed Challenges

Cᴏɴᴏʀ O'BʀɪᴇɴOutput the score of your program quine code-golf This is a quine, but with some extra baggage: you must output the "ready-to-go" version of the program, which looks like this: Language name, code, NN bytes. For example, if you write your program in EpicQuineLang whose source looks like epicQui...

 
@quartata the translate sucks more.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Actually the translator is very good
 
3:54 PM
yeah but it doesn't give a simple translation
is good for addicts learners but not people trying to be a doorknob
 
@epicTCK golf moar
 
^
Also, the code in your answer is wrong.
It is 500 bytes.
 
@Solver Um, you know this is the name of the secret mod room right?
 
s='indexOf';k='lastIndexOf';h="#";t=b=>b[0].map((x,i)=>b.map(x => x[i]));var a=i=>{m=i.split('\n');for(let h of m){m[m[s](h)] = h.split('');}for(let y=0;y<m.length;y++){for(let x=0;x<m[y].length;x++){var k=0;if(m[y][x]==h){break;}if(m[y][s](h)<x&&m[y][k](h)>x){k++;}q=t(m);if(q[y][s](‌​h)<x&&m[y][k](h)>x){k++;}if(k != 2){m[y][x]=h;}}}for(let h of m){var v=h.join('').match(/\S/);var e=v? h.join(''):'';m[m[s](h)]=e;}m=m.join('\n');m=m.replace(/#/g, " ");alert(m);}; is 464
 
I'm not sure we can have a room named that actually
 
3:56 PM
roflmao
 
@quartata Is it? Wow!
 
@epicTCK well, the code in the answer is longer.
 
b/c it calls it too
 
@quartata That doesn't make anysense though, it's not as golfed as the eighteenth byte.
 
?
 
3:58 PM
` s='indexOf';k='lastIndexOf';h="#";t=b=>b[0].map((x,i)=>b.map(x => x[i]));var a=i=>{m=i.split('\n');for(let h of m){m[m[s](h)] = h.split('');}for(let y=0;y<m.length;y++){for(let x=0;x<m[y].length;x++){var k=0;if(m[y][x]==h){break;}if(m[y][s](h)<x&&m[y][k](h)>x){k++;}q=t(m);if(q[y][s](h)<x&&m[y][k](h)>x){k++;}if(k != 2){m[y][x]=h;}}}for(let h of m){var v=h.join('').match(/\S/);var e=v? h.join(''):'';m[m[s](h)]=e;}m=m.join('\n');m=m.replace(/#/g, " ");alert(m);};a("#C#B#o#\n#d###e#\n # go#\n###");`
 
a("#C#B#o#\n#d###e#\n # go#\n###"); calls it, should not be included in bytecount
 
sowee wrong account brb
 
@quartata don't worry i believe you
 
@epicTCK well then move that our of that code.
 
kk
 

« first day (1900 days earlier)      last day (2945 days later) »