« first day (2470 days earlier)      last day (2668 days later) » 

15:06
@Mego Should I install Linux or something?
@user202729 probably.
Anonymous
@user202729 That's always a good suggestion
@user202729 You can install Linux Subsytem for Windows, which will basically allow you to run Linux on Windows. It's pretty great.
@user202729 if you want to find out, you can install bash so you can just run it from cmd
-.-
what a ninja
@J.Sallé Bash is not a good shell. CMD is far far worse, but bash isn't 'awesome'.
15:11
@Pavel yes it is. As the name suggests: best and awesomest
The name suggests Bourne-again Shell
I did an awful hack to let PowerShell use Linux utils like grep and such and it's actually quite nice.
@Pavel you're no fun :(
Anonymous
@Pavel I'm not a fan of PowerShell's excessively verbose command names
Anonymous
Also the monolithic design means it's hard to swap out things
@Mego They all have short aliases. sc for Set-Content, man for Get-Help, for example.
Anonymous
15:14
Err, command options
@Mego I don't actually know what that means ._.
@Pavel It will be slower than just use Linux. Also mine is 32-bit OS on 64-bit machine.
Anonymous
@Pavel Like -RedirectStandardOutput for Start-Process
@Mego As long as you're unambiguous, you can shorten command options. E.g., instead of sort -unique you can do sort -u
@DJMcMayhem have you written an answer in brain-flak for codegolf.stackexchange.com/questions/59347/… ?
15:15
@Mego So why are people still using Windows? (Anyone here in TNB are using Windows)
@Mego I meant the monolithic thing
I can't stand linux UI
I've tried a gazillion of them, and I vastly prefer windows
Anonymous
@user202729 I use Windows solely for gaming and Windows-specific development
@user202729 I am, this is my work laptop and I'm not allowed to install Linux on it.
15:16
@Mego same
So basically ^^^
@Mego what's Window-specific?
Anonymous
@Pavel It means that it's one giant monster instead of a bunch of connected pieces that you can easily swap out for other pieces
Linux is the best platform for not-gaming.
@tfbninja not posted at least
I like your answer tho, +1
15:17
@Mego Oh you mean that most commands are builtins and not executables?
@Riker
Anonymous
@NathanMerrill Development for specifically Windows - it doesn't make sense to use Mono/whatever when you're only targetting Windows
yeah, that makes sense
Anonymous
@Pavel Yes
@tfbninja ya?
15:17
@riker thx, how does one check for an answer in a certain language?
well, I ctrl-f'ed the leaderboard in the question
you can also do "brain-flak" inpost:POST_ID_HERE or something in the search bar
but it's not inpost I don't remember what it is
cool thx
does F# run on the CLR?
maybe "inq"
@Mego I have all the exes that come with MinGW in my PATH. I largely use GNU coreutils instead of PowerShell builtins.
15:18
oooh, it looks like it does
@NathanMerrill How else would you run F#
Mono targets the CLR, right? So that means that F# isn't windows specific either
@Pavel I don't know F#. I wasn't sure what it was built on
it could just be compiled or something.
@NathanMerrill Oh. F# is a .NET language, it runs on everything that C# runs on.
Anonymous
@Pavel But configure is so slow under Windows because of the different process model. I'd much rather take the minute or so to boot up my Linux machine than to wait for ages for a decent-sized configure script to run on Windows.
what's the difference between the CLR and .NET?
15:20
@tfbninja if you're curious it's inquestion:QUESTION_ID
like, I know that the CLR is basically the JVM for microsoft languages
but I thought that .NET meant the web framework for C#
Anonymous
@NathanMerrill CLR is the runtime implemented by the .NET Framework
but if F# is a .NET language, then what does that even mean?
so .NET is basically a specification?
and the CLR is just an implementation of the specificaiton
huh
Anonymous
No, .NET is an implementation of a specification, that includes the CLR and a whole bunch of library code
.NET is a runtime, compiler, and standard library.
15:22
it sounds like everything and nothing :P
Anonymous
Just like Mono is an implementation of (mostly) the same specification, which also includes a compiler targetting the CLR, a runtime that runs CLR code, and a whole bunch of library code
CLI (Common language infrastructure) is the specification for the CLR (Common language runtime). Mono has it's own implementation of the CLI.
Anonymous
The problem here is that Microsoft didn't really bother separating the specification from the implementation until recently, and so it's hard to distinguish them
Until recently Mono was wholly unsupported so Microsoft saw no reason to seperate them.
Anonymous
It's kinda like how most people refer to Oracle HotSpot as "the JVM", when really the JVM is a specification, and Oracle HotSpot is one of several implementations
15:25
ok. So there's the CLI. It's a specification of how to run CLR code. Then .NET is an implementation of that specification (for windows), but is also commonly used to refer to the entire stack of technologies. Mono is another implementation of CLI.
@NathanMerrill .NET is the entire technology stack.
Anonymous
@NathanMerrill Yes. The .NET Runtime and SDK implement the CLI and provide tools to target the CLI. The .NET Framework is the library code.
Anonymous
And then .NET Core is an open-source CLI implementation with some of the .NET Framework stuff (but not most of it)
@tfbninja Oh hey! Welcome to chat! :)
.NET has the .NET Runtime, .NET Framework, and Microsoft Visual Compiler
15:27
so basically, there's a company called Microsoft that should really be called .NET
No, I haven't yet
because they like to put their name everywhere
Anonymous
Also Microsoft choosing to use CLI for Command Language Infrastructure when that acronym has meant Command-Line Interface for decades is also super confusing
Microsoft Visual Compiler is also the name of their C++ compiler.
Microsoft© .NET®
Anonymous
15:28
@NathanMerrill Microsoft .NET Framework Ultra Edition sponsored by Microsoft featuring Microsoft by Microsoft
@NathanMerrill to make it slightly more confusing, the C# compiler is also called Roslyn.
C# is a different beast
actually, does the C# compiler actually use any .NET code?
like, if you consider the C# compiler to input C# code, and output CLR code
Anonymous
Basically Microsoft built a behemoth called .NET and chose names and acronyms that were as confusing as possible so that they could achieve world domination and be the leading cause of developer migraines
Well Roslyn isn't just the C# compiler, I know it does C# and VB.NET, F# might have it's own.
right, but so far, I haven't heard any .NET
15:30
@Mego But we forgive them because they made C# and C# and wonderful and amazing.
Anonymous
@NathanMerrill Yes, because it has to properly interface with Framework code, which may or may not be already compiled
And could have been compiled from any other .NET language, such as Dyalog APL.
Anonymous
And Framework libraries and their linking is a whole separate beast from the CLR
Anonymous
@Pavel Or IronPython :P
@Mego I'm still trying to figure out how IronPython allows you to assign arbitrary functions to variables.
Anonymous
15:33
@Pavel What do you mean?
@Mego python let's you have functions in variables right
Like a=print
The dynamic type can't have delegates in .net
Anonymous
@Pavel I don't think Python functions are implemented as delegates
@Mego iron python let's you operate on .net functions too
Anonymous
@Pavel Well sure, but that doesn't mean that Python functions have to be implemented as delegates
Anonymous
What I would guess is being done is having a Function class that is used for all functions/delegates in Python land, that gets compiled to the appropriate structures in .NET land.
15:39
@Mego does a=Console.Write even work
Anonymous
@Pavel I don't see why it wouldn't
@Mego because dynamic a=Console.Write doesn't work in C#
Anonymous
@Pavel But the entire point is that it's Python, not C#. Different rules (that are compiled to the same ruleset in the end).
Anonymous
You also can't do def foo(*args): pass in C# but that doesn't stop IronPython. It's implementing a different language, albeit on the same runtime.
@Mego you can't put a method reference in a .net dynamic
Anonymous
15:43
@Pavel This is true. The point is, IronPython doesn't do that.
Without reflection, at least
@Mego But the reason .net has dynamic is to accommodate IPython
Anonymous
@Pavel I'm fairly certain that's not the reason it was added
It was added for C#/IP interoperability iirc
Anonymous
At least, that's not the main/sole reason
Anonymous
But that's not relevant here - the DLR was created for .NET 4. IronPython has been around since 2.0 (if not earlier)
Anonymous
15:47
While the DLR surely makes IronPython neater, it isn't necessary
@Mego can I return a .net method from an IP function, and then call it from C# putting the output in a dynamic?
I did a good look around the site, and I found the GOLF project
It was a good attempt to try to standardize running times in code challenges, but because of tooling support, GOLF processor challenges were casically GOLF assembly only
*lack of tooling support
Anonymous
@Pavel I'm not sure. Probably not, because once you're in C# land, you're dealing with a delegate. Basically, in Python land, you're allowed to do all sorts of things you normally couldn't do in C# land. But once the Python code is compiled into CLR code, and you interface with it in C#, you're stuck with C# rules.
Anonymous
IronPython implements the apparent behavior of assigning delegates to a dynamic variable, but that's not at all how it's done
15:55
Damnit, this is weird
It's like when F# had a tuple type that didn't exist on C#
Calling it from C# you had to treat it kinda like an anonymous type
Anonymous
@Pavel Think of it this way: C doesn't let you have dynamic types at all. But Python does, and Python is written in C. Similarly, C# (really the DLR) doesn't let you assign delegates to dynamic variables, but IronPython does, despite being written in .NET.
I think a more successful project achieving the same purpose would be to create an instrumenting plugin for an emulator to count the number of instructions of each kind executed
And score based on a weighted sum of that plugin's output
@Mego but you can call IP functions from C#, that doesn't work easily with Python->C
Anonymous
@Pavel You can also call Python functions from C.
@Mego not directly
Anonymous
15:59
@Pavel You aren't directly calling IP functions from C#, either. The difference is, the IP implementation and .NET framework hide the ugly details from you, while C doesn't.
@orlp We've discussed it some in PPCG-Gaming. It looks intriguing.
@orlp an old game, rather
@FrownyFrog how's that
ok, it looks different
Why do I keep hitting send by accident today
16:00
Code scoring valgrind plugin anyone?
I thought it's a remake of zachtronics.com/the-magnum-opus-challenge
this one is hex and manipulators can move somewhat
@Mego wait, that works if the Python function returns an int, and the compiler doesn't know the return type
Since it's dynamic
So it should compile properly
It might even work, Dynamics can have the TryInvoke method to allow them to be called.
Anonymous
The moral of the story is, there's always a dirty hack (unless the lang isn't TC)
@Mego I'm writing a dynamically typed language that compile to C#. It uses reflection to determine the return types of methods to convert them to Delegates to convert them to a DynamicObject with a TryInvoke.
It is a very dirty hack
Basically my plan of attack for a code challenge valgrind scorer is this: Use BBV to profile how often each straight-line path gets executed, supplement it with a tool that creates a score for each straight-line path, and then sum it all up
16:28
I'm synthesizing a proof-of-concept right now
16:39
@Mego I believed Firefox Pythonised their configure for this very reason
17:00
Random python question: Are there any objects that you can't call repr on? What underlying functions need to be defined for repr to work?
>>> class Nope:
...     def __repr__(self):
...         raise Exception("nope")
>>> repr(Nope())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 3, in __repr__
Exception: nope
nope
@DJMcMayhem ^
Ah, OK that makes sense
I thought it was either that or something with __str__,
CMC: Given a list of integers, determine whether two distinct integers of the two lists have at least 4 common divisors.
@Mr.Xcoder Two, no more, no less?
Also, "Given a list ... the two lists"?
Sorry, I will rephrase the CMC.
CMC (rephrased): Given a list of integers, check whether there are at least two distinct integers in the list that share at least 4 divisors.
17:12
Sounds fun in Jelly. Test cases?
Brb making test case
@DJMcMayhem [1, 5, 7] -> False. [4, 6, 18, 18, 10] -> True (18 and 6).
[20, 20, 23] -> False.
1
A: Sandbox for Proposed Challenges

Dom HastingsGolf an Advent Calendar Instead of buying an advent calendar this year, you should build one! Task Given input of an integer (n) in the range 0-24, produce an ASCII advent calendar with the numbered doors up-to n, opened. You can choose the same order as in the below example, or generate your...

Yeah indeed it sound really fun in Brain-Flak Jelly. I'll try it too.
@Mr.Xcoder If I have a list like [[1, 2], [2, 3], [3, 4]], how can I call a dyad on each pair of elements?
@DJMcMayhem <list><dyad>/€
(/ is reduce)
17:17
Perfect
Thanks!
No problem
@Mr.Xcoder Jelly, 13 bytes: ŒcÆDœ&/€ṢṪL3<
BTW you do not need to handle negative / 0 integers
Œc              # All pairs...
  ÆD            # List of divisors of each number
    œ&          # Set intersection
      /€        # Of each divisor set
        Ṣ       # Sorted
         Ṫ      # Last element
          L     # Has a length
            <   # Greater than
           3    # 3
Jelly is a blast when it works lol
IDK maybe ~11 bytes is possible too
17:23
Well, ṢṪ could be , so that's -1
@DJMcMayhem I don't think yours handles duplicate integers.
Oh. Well that's a dumb requirement
Oh Nvm it does work.
Still 13: QŒcÆDœ&/€ṀL3<
@DJMcMayhem Yours happens to handle it.
17:24
@Mr.Xcoder The old one gave 1 for [20, 20, 23]
oh yeah true
It only works if the duplicate happens to have less than 4 divisors, which makes sense
@Mr.Xcoder Still waiting for that brain-flak version :P
<Insert extreme disapproval> ಠ____ಠ
Honestly, every single thing about this challenge is the exact opposite of good for brain-flak
Divisors, combinatorics, distinct elements...
I wonder if you'd be able to do it in BFlak
17:28
Well, it's definitely possible
FWIW mine was ÆDŒcQḊ$Ðfœ&/L$€>3Ẹ.
But writing it would be about as much fun as sticking things in your eye
(18 bytes)
14 bytes: QÆDŒcœ&/L$€>3Ẹ
Arghhh I cannot change the userscript settings and I really want that dark theme :-P
@Mr.Xcoder The hardest thing about it would be checking every element against every element, which means you can't consume each item
Looking at every item without consuming it is extremely difficult in brain-flak
@betseg do you know if turkey maintains chem/bio weapons I am a delegate for Turkey and have not been able to find infos on internet
17:29
0
A: Sandbox for Proposed Challenges

Stephen LeppikIn this challenge, your task is to take an anion and a cation, and output the chemical formula of the compound. The input follows these rules: Take in 2 strings (in any order) representing the anion and cation, e.g. F^-, NH_4^+, or Al^3+. The symbols will always be real, and charges accurate. A...

@NewSandboxedPosts I smell underspecified challenges
Joe
Joe
If I wanted to use dc with parallel processing (on a cluster), I would need to learn about C and threads, right? Then re-write most of the program?
@Mr.Xcoder You could maybe do it kinda like this:
    For each a...
        for each b...
            push(a,(b), toggle)
            toggle

        toggle
        push((b), toggle)
        toggle
        do fancy divisor thing with (b,a)
        pop(a)
But the divisor thing would be a major pain
Set intersection alone is probably gonna be at least 100 bytes
I'd be amazed if it could be done in <500
I would like to abstain from (even) thinking of solving it in Brain-Flak.
@DJMcMayhem I'd be amazed if the submission would also handle negative integers :-D
@Mr.Xcoder BFMC (brain-flak-mini-challenge): Given N, return the number of divisors of N.
(hint: modulus)
17:36
Ok, that's going to take a while to solve
@DJMcMayhem Can we move to the Brain-Flak chat room?
Do you mean move existing messages, or just future conversation?
Future conversation.
Does anyone know any good maths challenges on main that are, say, high-school level maths?
I dunno, maybe propose a numerical integration challenge?
Like, shortest code that achieves certain numeric integration bounds on test cases
17:43
@DJMcMayhem 12 bytes: QÆDŒcf/€ṀL>3
you don't need œ& here
since every divisor will already be only once in there
Remind me what f does?
So.... Remove elements from b that aren't in a?
remove elements from a that aren't in b
the difference between f and œ& is that the latter would count the occurrences as well
Ooooh
That makes sense
17:53
didn't we have this anagolf challenge here ?
I think it's Mr. Xcoder's...
@ConorO'Brien Yup, I am the author of both challenges (there and here)
you should sign your anagolf posts
But the Anagolf one is broken, and has been reposted there with test cases by histocrat.
@ConorO'Brien Yup, will keep in mind
not always, but especially when xposting
17:55
yup
except that it wouldn't be plagiarism if it's used later (there's no indication that was poster after the one here):
> Note that the submitted problems can be re-used by anyone.
@Downgoat i know we have a few nuclear warheads from nato
I wasn't incriminating anyone, just noting and wondering if someone took some "inspiration" from ppcg
but i dont know about chem/bio weapons
@Downgoat ooh, mock UN? good luck :D
facepalm I used the wrong code at the Levenshtein Distance CnR post
18:01
nice
is it that easy to retrace?
also, I can see the deleted answer, I'd recommend editing the body really quick
if you hurry you can make it permanently invisible
@Riker thanks :)
:D
@Downgoat how long do you have? end of semester, or next semester?
@Riker yeah but I don't think I'll post the actual code. I posted the shorter code instead of the longer one.
@J.Sallé ah, ok
@Riker our first session is today :P
Topic is weapons in space and chem/bio weapons
18:11
:D have fun!
@Mr.Xcoder Jelly, 14 bytes
@AdmBorkBork 13: QŒcÆDf/€L€3<Ẹ
18:50
1 hour ago, by Erik the Outgolfer
@DJMcMayhem 12 bytes: QÆDŒcf/€ṀL>3
@cairdcoinheringaahing That fails for [2,6,18,4,12]
@EriktheOutgolfer ^
hello o/
whoops gtg lol
@DJMcMayhem Yours fails for [2,6,18,4,12] as well.
Yay, fixed
19:13
@AdmBorkBork yeah
because it was a golf to dj's code, not necessarily a valid solution
@ThomasWard waves back
how's things
good I think.
I think my school bus is cursed.
19:29
um huh
a couple weeks ago it got stuck at a railway for 15 minutes (and it wasn't even an operating line)
today at the school (before the bus even started boarding) it got backed into by an ambulance
@HyperNeutrino Pfff xD
How’s Enlist?
@HyperNeutrino back into what
@EriktheOutgolfer an ambulance backed up and hit the bus
@Mr.Xcoder currently not being developed :P I'll resume working on it this weekend
Ok, I left some suggestions there
19:32
@HyperNeutrino :( no school trips for you?
@Mr.Xcoder it would be funny but it's not every day the school calls in an ambulance
@Mr.Xcoder oh cool, thanks!
@EriktheOutgolfer it was the bus to get me home
so did you get home?
Presumably...
Joe
Joe
@EriktheOutgolfer he found TNB, didn't he?
but you can still have internet connectivity away from your home
19:34
@Joe well I was on TNB at around 14:51 (EDT) which was when I was still at school
Joe
Joe
I know. I meant, TNB is home :)
oh :P
but yes, I did get home :P interestingly enough, a bus from a "rival" (neighbouring, stupid school brainwashing) high school came to our school to get us :P
by then only about 20% of the people who are on that bus route were still there xD
Say thanks you do have school busses:P
and also our replacement bus driver had no idea there was a tight roundabout where he needed to turn left so he got stuck there and had to do a three-point turn in the middle of a (fortunately, inactive) intersection :P
@Mr.Xcoder I'd actually rather live closer to the school and be able to get there in reasonable time without a bus :P
also I keep getting kicked out of Hypixel because ArrayIndexOutOfBoundsException :/ :P
Also Java error names (actually, Java everything) is so unnecessarily long and verbose D:
@HyperNeutrino yeah you get used to it (and eventually bored) after walking 25 minutes daily from school
19:37
@Mr.Xcoder (bikes are cool)
but yeah it takes me longer than that to bike to school lol (I think I've mentioned this already, the last time my bus got stuck xD)
@HyperNeutrino I cannot take the risk of riding the bike to school in this neighborhood :P - anyway gtg
oh sketchy neighbourhood? rip. anyway cya o/
@HyperNeutrino either sketchy or has many bad drivers around
@HyperNeutrino @Riker Bad drivers (terrible drivers) and heavy traffic
@HyperNeutrino mind if I make some edits to the proton source to try to clean it up a bit?
19:45
@Riker go ahead, I would very much so appreciate that :D
:D
can't work on it right now, but I'll try later
@Mr.Xcoder also theft...how do you know nobody will stand by your side while riding your bike and pickpocket you quickly
mainly reorganizing interpreter.py
Also, I probably wouldn't be able to bike to school the majority of the time anyway because 20 cm snowfall and ice on a daily basis :D
@EriktheOutgolfer because people aren't generally that fast at grabbing stuff from a moving target?
19:46
@Riker lol that's the worst part of Proton currently; the lexer and parser are good enough; they don't bork that's all that matters :D
@HyperNeutrino I remember the last time it snowed here
@Riker (where; I don't know where you live lol)
it was actually just a 1/4 inch of frost on the grass, in 2013
:p
yay for deserts
@HyperNeutrino lol
19:47
most snow in greece is ~1cm on the grass (i.e. only frost, no snow on the road)
I remember the last time it snowed here ... it was Wednesday.
most snow I've had so far is 40cm overnight at -40, chill to like -43
can somebody just like mail snow to me thanks
they closed the schools because it was too cold xD
> too cold
19:48
> too cold
they don't close the schools here when it's 115 inside buildings
imo schools shouldn't be closed just because of weather
but yet fast food places do
not sure if they actually closed it
I can't remember xD
however special policy regarding class misses should still be applied
19:48
but at least all transportation was shut down because too much ice everywhere
Schools have been closed here due to being too cold. When you can get frostbite in as little as 30 seconds, it's serious stuff.
@HyperNeutrino you live in eastern canada right?
I think when they shut down transportation, the teacher is required to restructure the class a bit to accomodate those not there (unless most of the class is there)
@Riker SW ontario
@AdmBorkBork ikr yeah I think that's why
@HyperNeutrino ok tha'ts 1967 miles from me, can you get a cooler and mail me some snow? :D
there's a policy saying schools aren't allowed to have outdoor recess under -20 but usually schools here don't care until it's like -28
@Riker sure, would you like fries on the side ಠ_ಠ :P
19:50
no I've got some in the kitchen
I'm gonna go eat them now
schools here have been closed for being too hot too lol
@HyperNeutrino well then you can legally skip school if under -20 regardless of closure
@Riker xD
o/
@EriktheOutgolfer but they'll still give homework and I don't think teachers would care about the legality of it, they'd just give you -10% for late work
then you can sue them can't you
because school shouldn't have been open in first place
19:51
do you really think it's worth sueing?
nah just like go to the office and be like "hey can I have my marks back cuz I don't want to die"
Well, you can sue anyone for anything ... it's just whether you'll win or not that's the issue.
well, I won't risk frostbiting myself
@AdmBorkBork and whether or not you get money at the end
That, too.
19:52
I don't think "it's the principle of the thing" really applies to lawsuits
once we had a full transportation closure due to snow and ice
my entire science class was present :D :P
@HyperNeutrino Jonathan Frech has a 24 byte saving on your answer lol
oh cool :D will edit later
You have like -20 from X, -20 from Y, -20 from Z :D
oh lol :P
20:05
@AdmBorkBork If your lawsuit is ludicrous it'll be rejected entirely.
20:17
@Pavel define ludicrous
20:43
@Poke two steps up from light speed
where your brains go into your feet
21:01
:]
 
1 hour later…
22:18
0
A: Sandbox for Proposed Challenges

Sanchisescode-bowling polyglot Bowling is family business Given a language C (child and P (parent), write a polyglot that does task X in both languages. Language C is a language, for which an interpreter/compiler has been written in language P. Think of Pyth and Python; MATL and MATLAB/Octave; CJam and...

22:54
hello
would math.stackexchange.com/questions/2091748/… be a good golfing exercise?

« first day (2470 days earlier)      last day (2668 days later) »