« first day (2586 days earlier)      last day (2250 days later) » 

4:00 PM
Why would a crash reporter need to be built out of 60 packages
 
The only cons of vim I agree with is that you need to install a plugin for some features that other IDEs have builtin, like type-hinting. But this is hugely offset by the fact that you don't need three full minutes to launch your IDE (just measured, 0.1s). I'm not even mentioning the benefits of modal editing
Also, not using eclipse in particular means your project can be compiled easily without installing eclipse itself
 
@NieDzejkob intellij and eclipse are really bad at this, but I was quite surprised by the visual studio boot time
 
It takes less than a minute on my machine.
 
despite the installation taking way longer than it should and way more HD than it needs, it boots realy fast
 
The first time I installed VS, my naive former self thought it would be ok to install all optional features.
 
4:03 PM
What's the line between IDE and text editor?
 
@Pavel that's besides the point if there are other options that don't give you the time to blink
 
@NieDzejkob thatsthejoke.jpg
 
@cairdcoinheringaahing both terms are broad, and have been used to mean different things, so there's no good line
 
@cairdcoinheringaahing there is none
 
@NieDzejkob I think that the boot time of vim doesn't matter a ton to me. I code for 8 hours a day. Whether it takes 3 minutes (or even 10 minutes) to boot it up doesn't matter if it's saving me more time throughout the day
 
4:07 PM
@Adám Could be worse, you could be going from Towcester to Loughborough...
 
@cairdcoinheringaahing Personally, I draw the line at static code analysis. An IDE is something that can tell me if my code will compile, without running the compiler, and be able to detect things like while true(){} and return; dostuff();.
 
@Neil Toaster to Lowbrow?
 
@Pavel that only works if you work in a dynamic language. You can't tell if someFunc().otherFunc() is valid without running the compiler
 
@NathanMerrill Sure you can. Check the return type of someFunc(), then check if that type has an otherFunc() method.
Maybe give a warning about a possible NullReferenceException
 
right, but figuring out the return type requires a compiler
 
4:10 PM
@NathanMerrill fair point, assuming that the assumption is true (cough it probably isn't), but I remember using Eclipse before switching to Vim, and the experience was generally "wait 3 seconds every time you click". Granted, my computer was crap back then, but you shouldn't need a beefy computer to run notepad, even on ultra
 
@NieDzejkob yeah, I think that eclipse is opposite end of the spectrum to vim in terms of responsiveness :P
 
@NathanMerrill Or looking at the method definition and just looking at if it says void Foo() or int Foo() or Cow Foo() or whatever.
 
ngn
@NathanMerrill it just needs a parser
 
^
 
@ngn and a semantic analyser
 
4:11 PM
er, parser is the right term, sorry
 
ngn
@NieDzejkob yeah ...and that
 
brb separating the code generator from clang for measurement purposes
 
ngn
@NathanMerrill ides usually have error-tolerant parsers, more sophisticated than the compiler's parser
 
but there's lots of variables here: I can call var.someFunc().get(j).someFunc()
 
@NathanMerrill And an IDE will analyze all of it.
 
4:13 PM
that could require generics (get(j)) could be a list
 
ngn
@NathanMerrill they can make maximum sense of whatever half-baked code you throw at them
 
@Pavel no, I get that, but you still need a full-blown parser
 
Right, which IDEs have.
And Vim doesn't.
 
I think we're disagreeing on something we agree on
 
it doesn't matter if your IDE tells you that your code won't compile if actually running the compiler takes half a second
 
4:14 PM
Clearly IDLE is that best of them all ;P
 
@NieDzejkob If you're working on a large project, like you might be for your job, it never does.
 
idle is just a text editor (that isn't vim, for that matter) with a run code button
@Pavel how many files do you modify between compilations? I mean, if you will recompile every single file in the code base, then it will take a long time. But for me, when I happen to make a mistake, it's noticed by the compiler within... idk, maybe half a second
 
$ cat > Main.java <<EOF
public class Main {
        public static void main(String[] args) {
                System.out.println("Hello, World!");
        }
}
EOF
$ time javac Main.java
javac Main.java  1.27s user 0.05s system 210% cpu 0.625 total
@NieDzejkob 1.27 seconds to compile Hello World for Java
 
 cat test.c
#include <stdio.h>

int main(){
        printf("Hello, world!");
}
 time clang test.c -o test

real    0m0.098s
user    0m0.030s
sys     0m0.048s
 
Well, we don't all get to use Clang
Especially if we're working with Java
 
4:23 PM
Of the top of my mind, I don't know any open-source projects that use Java, so that I could benchmark it. Any ideas? Also,
cat Main.java
public class Main {
  public static void main(String[] args){
    System.out.println("Hello, world!");
  }
}
 ~/tmp  time javac Main.java

real    0m0.521s
user    0m0.977s
sys     0m0.044s
 
2 cores probably?
 
So around 1 second
 
ngn
if you measure performance, run it at least a few times to neutralise the effects of caches
 
@ngn I did
 
@ngn After a few trials, I got consistently 1.1+-.15 seconds
 
4:26 PM
having an ide point out problems that will occur during compilation is definitely useful
it objectively saves time
regardless of how long that compilation takes
 
Besides, an IDE doesn't just catch compiler errors for you, it spots other kinds of potential pitfalls--and is able to automatically fix a lot of them for you.
 
it's proactive rather than reactive
 
Also, speaking of C/++, the error messages your IDE generates are vastly superior to the the error messages C/++ compilers produce.
 
@Pavel whaat? If that happens, you just chose a bad compiler
AFAIK, there are many IDEs that use clang as a library
 
@NieDzejkob Clang isn't as bad at GCC, but C++ is notorious for having horrible error messages for a reason.
 
4:30 PM
@Adám more like Luffburu I think
 
@NieDzejkob that really shouldn't be part of my thought process while programming... "which compiler is going to give me the best error messages"
>.>
 
Older versions of gcc are pretty terrible as far as error messages go.
 
@Poke of course, you only have to think about it once, when you choose your tools
 
@Neil more like Luffbra where I live
 
@Dennis Newer ones are still crap
 
4:32 PM
But vastly superior to the crap from previous versions.
 
@NieDzejkob I can honestly say that I have never considered which compiler will give me better error messages.
I've considered how much optimization occurs
or how fast it is
 
@Poke did you consider what IDE to choose? Was that one of the criteria?
 
ngn
@Poke me neither, I don't read them, all I need is line:col :)
 
@ngn also a good point
 
@NieDzejkob integration with other pieces of my tech stack. community support. functionality
@ngn if that's how you want to debug things, more power to you. I prefer having some idea of what's going wrong before ripping apart code
or you know... writing it in such a way that it doesn't error during compilation at all
 
ngn
4:41 PM
@Poke I make mistakes, of course. I was trying to say that all the information I need to guess what the error is is its location.
 
good luck
that's certainly not always going to be the case
/maybe/ if we're only talking about compilation errors
 
ngn
@Poke that's what you said in the message I replied to: chat.stackexchange.com/transcript/message/43101040#43101040
 
I mean as opposed to errors pertaining to the other parts of "compiling" such as linker errors, etc
those can be harder to track down
 
Linker errors? What's the last time you had one?
 
ngn
@Poke well, ok. it's true that "compilers" these days are collections of many tools
 
4:48 PM
(except for "forgot to -l<something> after adding a new dependency"
 
the main point is that most ide's will catch this stuff for you before you even go to compile
 
ngn
As people familiar with C are around, can I seize the opportunity and ask: does anyone have experience implementing raw syscalls with asm("...")?
by "implementing" I mean calling the kernel from userspace (sorry if that was misleading)
 
I've been doing inline assembly and syscalls in assembly, but never both. Do you have any specific questions? Also, what do you want to accomplish?
 
ngn
@NieDzejkob I'm implementing a language, I want it to be as small and fast as possible, so I got rid of libc. I got 64-bit to work, but I hit a wall with 32-bit mmap
 
@ngn what's the problem?
 
ngn
5:02 PM
@NieDzejkob syscalls with >4 args are complicated; from what I searched on the web, it seems that I have to use the stack to pass them, not registers
 
@ngn it's >6, if any of these exist
eax for number, then ebx, ecx, edx, esi, edi, ebp for arguments
 
Why even support 32bit? :P Nearly everyone uses 64bit stuff
 
ngn
@NieDzejkob hm... duckduckgo and the internet mislead me then; thanks, I'll try that
 
-1
Q: Not so childish: First the gap with mathematical operators

user785666 _ 5 _ 2 _ 7 _ 4 _ 2 _ 5 _ 1= 3 Fill the gaps with mathematical operators to get the desired result. Multiple solutions may be possible. Shortest code to print all the possible solutions (each solution consisting of operators) wins.

 
@ngn I used duckduckgo and the internet to answer this...
 
ngn
5:06 PM
@moonheart08 I didn't plan to but my other laptop broke and now I'm using a 10-year old 32-bit eeepc to play with... this is temporary
@NieDzejkob this is what I was looking at (search for "SYS_mmap")
 
@ngn God, that's sad
 
ngn
@J.Sallé no, no, I'm a mortal :)
 
@ngn I thought we had previously established that you were an alien ⍨
 
alien doesn't mean immortal...
 
ngn
@J.Sallé a mortal alien :) Actually, I have a 64-bit box too (literally a heavy box), rather old and noisy and half-broken, but it would do for 64-bit testing
 
5:19 PM
Well, one cannot assume that much :p
Also, to be fair, most gods I know of are mortals
 
ngn
@J.Sallé then I'm thinking of parting with some of my precious savings and finally buying a thinkpad
 
@ngn ooooooh, that's cool. I believe a friend from college has one, he likes it very much
 
ngn
@J.Sallé they have a reputation of not breaking often
@J.Sallé also, they have the least nasty keyboards from the modern laptops I've looked at
 
@ngn What do you consider a nasty keyboard? hahahah
 
ngn
@J.Sallé you know, these flat keys that bend when you press them not exactly at the centre, and you're never quite sure if they registered a keystroke or not
 
5:27 PM
@ngn argh, I know exactly what you mean
 
ngn
@J.Sallé the mac type of key, I don't know the term
 
I think they're called chiclet keys, at least here in Brazil
 
ngn
@J.Sallé by the way, the eeepc's keyboard feels sooo good, something went horribly wrong with laptop manufacturers in the past 10 years
 
bend as in they don't stay horizontal or as in they literally deform?
 
ngn
@HyperNeutrino don't stay horizontal
 
5:29 PM
ok :P
 
@ngn yeah, my mom had one of those a few years back. tbh it was the only good thing about it :p
I'm saving some money so I can get a new PC set up with all the chrome
 
ngn
@J.Sallé desktop?
 
@ngn yeah
 
Buying GPUs is crap these days
 
I need a mechanical keyboard in my life >.>
@Pavel yeah, and expensive af
 
ngn
5:31 PM
@J.Sallé I've got one - a Kinesis Advantage
 
I'm glad that the GPU shortage coincided with a sharp increase in the effectiveness of IGPUs, but it's not the same as having a real GPU.
@ngn I'm kinda curious, do you use the keyboard that Dyalog sells with all the APL symbols printed on it?
 
ngn
@Pavel I was using a laptop at Dyalog, so I've never used those.
 
@ngn I've got my eyes on a Corsair K70 or K95
 
I kinda want one of those APL keyboards, but they're actually quite expensive
 
my dad brought home a mech(-ish) keyboard from his workplace that was quite nice but the space-bar didn't work so I can't use it and i still have to use a laptop keyboard :( it's not terrible though
 
ngn
5:35 PM
@Pavel They are. When you order any custom hardware in small amounts, it ends up being expensive, unfortunately. If you know how to configure your keyboard, you probably don't need them. Some customers buy them because they hired APL newbies or just because the keyboards look and feel cool.
 
I can't find any APL keycaps either ;-;
 
ngn
@Pavel differences in national kbd layouts make this even more complicated
 
also, I see most mech keyboards described by people have keys that are like 1-2 cm above the base and you can see a gap between the keys and the base; is there a special term for a keyboard where the keys aren't as flat as laptop keys but aren't as extreme as proper mech keyboards?
 
"sane"?
 
ngn
5:38 PM
@NieDzejkob I was wrong too :) So the threshold is >5 args?
 
@HyperNeutrino I think those are the usual membrane kbds
 
hm ok
 
Also, the biggest appeal mech kbds have to me is that they're tactile, so you can actually feel when the key has been activated
 
@ngn apparently, yes
I got confused because I forgot that x86_32 is not the same as i686 when reading this post
 
5:41 PM
yeah same, and also like when i hit the key harder with my finger it actually goes down and on laptop keyboards if i strike the key it only moves a slight amount and that feels weird :P not as much of a problem for normal typing but it feels weird when i'm spamming keys in video games :3 :P
 
@HyperNeutrino precisely. If you're playing anything that's fast-paced, feeling the key being activated instead of having to press it all the way down helps a ton
 
Anyone here who knows German? I'm having a bit of trouble with some structure, if you wouldn't mind helping
 
I could try to help you (B1 level, I don't know if that suffices ¯\_(ツ)_/¯).
 

 Das Neunzehnte Byte

Allgemeine Diskussion für codegolf.stackexchange.com auf Deutsch
 
5:50 PM
Git. >_<
 
¯\_(ツ)_/¯ Might as well try :P
@Pavel It's frozen (and I'm an RO :P)
 
It just occured to me that I don't know why The Nineteenth Byte is called that...
 
I was about to ask if a moderator flag is acceptable for asking to unfeeze a room
 
Ping a mod?
 
@NieDzejkob It resembles The Nineteenth Hole from actual golfing tournaments. (And is also made of 19 byets :))
 
5:51 PM
@Pavel Want me to unfreeze it?
 
I guess
 
@DJMcMayhem Yes please :P
 
Done
 
@NieDzejkob "The Nineteenth Hole" is a golfing term to refer to the bar at the end of the 18-hole course (IIRC), so "The Nineteenth Byte" is somewhat similar to that because this place is kind of a place to hang out when not actually golfing.
2
 
And causes a roughly equal loss in productivity as an actual bar.
 
5:54 PM
@HyperNeutrino And cause it's nineteen bytes long
 
that too :D
 
> (And is also made of 19 byets :))
 
There's a meta about all that
 
0
Q: Show replies in the transcript on mobile

DJMcMayhemI primarily use the mobile site for chatting. If someone pings me while I'm away, I'll get a notification about it later. This is really convenient, save for one problem: I have absolutely no way of telling what message they replied to. On desktop, there will be a little arrow next to their messa...

 
yeah I was expecting you to post it :P
 
5:58 PM
I would have earlier, but I literally just woke up when you posted that message lol
 
...and noticed the small arrow was missing? wow
probably you tried tapping where it did nothing
 
I noticed it was missing because I had no clue what they were replying too, so I was looking for it
 
can verify that it's missing. It's been that way for years
I generally try to figure out what it means based on context
 
Another minor feature that endlessly annoys me: To reply to a message on the starboard, I have to click on permalink, and then hit reply from the transcript, which means I end up with two tabs open. (Not to mention that it's like 3 extra steps)
 
@DJMcMayhem yeah. I basically avoid chat on mobile. Which generally serves me well
 
6:01 PM
oh god. heisenbug. ;-;
brb going insane. Especially as the bug is somewhere in The Powder Toy's renderer
 
@DJMcMayhem IIRC you can click on the message and then click the "reply" button in the bar that shows up at the top, no? or did they change it
 
or did you mean replying to things that are in the transcript?
 
that's also true for full version chat lol
 
(caretreply is wonderful)
 
6:04 PM
Announcement: APL Cultivation in 25 minute.
 
@EriktheOutgolfer good point
 
It's on Tuesdays now?
 
no, I don't think so, but Adám lately has some campus stuff or something (EDIT: oh vv)
 
oh okay
 
@HyperNeutrino Just this week due to a Jewish holiday.
 
6:05 PM
 
oh okay
 
@EriktheOutgolfer Time continuum and all that :-) Last change was due to company planning meetings.
 
Another (another) minor bug/missing feature that endlessly annoys me: To reply with an uploaded image, you have to hit reply, cut the :XXXXXX part, hit upload, and then edit it to paste that part back in
 
3 mins ago, by Erik the Outgolfer
that's also true for full version chat lol
 
ಠ_ಠ
 
6:07 PM
lol you could have replied with this instead, didn't you see it? :P
 
I'm not sure what you mean
The starboard isn't even visible on mobile
 
@DJMcMayhem So, in general, chat.SE annoys you? :P
 
@DJMcMayhem oh man the "upload..." button is greyed out on purpose >_<
 
Yes, but I love it too much to leave over the minor annoyances.
@EriktheOutgolfer If you start typing, yeah. For me, if I hit reply, the button is still there, it just deletes the :XXXXXX part once the actual upload happens
 
that's very misleading
 
6:10 PM
It would be nice if it worked the way discord does: Hit upload, pick your image, and then right an optional message to go with it
Although discord doesn't have replies
 
yeah discord only has pings
 
I think discord's chat is better in basically every way I can think of. There are only two things I dislike: 1) No replies. 2) You can't hit <up> several times to edit previous messages, only the last one
 
Also no starboard
 
@DJMcMayhem ...3) Discord Nitro costs
 
6:15 PM
Nitro is just animated avatar+emotes from anywhere+higher upload limit
Not really much at all
Starring would be nice
 
That doesn't bother me too much. It's a solid product without getting Nitro, so I just view it as an optional way to support the devs
 
and you can also "send yourself" instead of sending money to them :P
 
The only thing I don't like is their abuse service
Asked support if one specific thing was against TOS. They said it wasn't. I did it. Next day, my account got removed for breaking TOS with the exact thing I asked about as the reason.
They wouldn't put my account back :(
Just said to make a new one
 
@Blue What was the specific thing?
 
Downloading the contents of a server
 
6:18 PM
wut that's weird in many ways
 
Yeah, wasn't the nicest of services
 
like, make the servers public for the whole world to see, but not allow you to download their contents???
 
API abuse apparently
 
@DJMcMayhem Could you unfreeze the Brachylog chatroom?
 
6:19 PM
Sure
 
Even forwarded abuse the email chain I had with support but meh. That was a while ago
 
I think it's Fatalize who should be asking that...
 
Thanks!
 
6:54 PM
@Poke I got some of them questions
@Pavel pinned messages exist tho
and they're basically stars
 
And you can react with stars lol
 
But you don't get to see intresting contributions from several hours ago
 
Not really as good as starts, also only 50 pins/channel
 
@Pavel do you actually miss stuff from hours ago?
 
@NathanMerrill If I'm asleep I do
 
6:58 PM
you sleep? I hadn't noticed :P
 
Yeah it’s matrix multiplication
 
Does it have any default implementation in any built-in types?
 
that's a builtin ._.
well now I can use @-style function calls in Python :D
though I actually don't care that much; I added that to Proton just because map((@)&2,functions) or something like that :P
is this another one of those weird things implemented because numpy
 
@HyperNeutrino decorators...
 
@EriktheOutgolfer yes I know but that's not an operator
 
7:25 PM
I'm slightly embarrassed to say this...
But I have no clue how to use decorators.
 
they're mostly unnecessary :P
 
And I call myself a python dev. I should be ashamed
 
@deco def fn(): pass
is equivalent to
def fn(): pass
fn = deco(fn)
that's mostly all there is to it
 
and multiple decorators are applied from bottom to top
 
7:40 PM
actually, @ is the most useless operator in Python
 
> print(3 @ [1, 2, 3])
< True
 
7:57 PM
yeah @ was a really weird idea
 
the PEP says many people were actually in favor of it
 
it seems weird to have an operator that's unimplemented for all built-in types
 
@LuisMendo Thanks! :)
 
0
A: Sandbox for Proposed Challenges

BlacksilverReverse Code Golf: Primality check The point is to make a program as long as possible. Of course, there are going to be rules. No unnecessarily long names No comments No nesting functions for no reason. Your program must not get smaller if I pass it through a minifier. Challenge. Simple...

 
My bounty and Luis' have expired (for Best of 2017). What 2 users want to award the next bounties this week?
 
8:12 PM
@Mr.Xcoder I will.
 
Don't even have 500 rep myself. I was just curious :P
 
@H.PWiz Ok, thanks! 1 more to go...
 
@Mr.Xcoder I can give mine.
What was it again?
 
SGITW (Slowest Gun in the West): Build a digital clock in Conway's Game of Life (you can check the gist)
 
Now I have a very important question: @Hosch250, is that dog yours?
 
8:20 PM
Yes.
 
Do boop that nose in my behalf, please and thank you.
 
@J.Sallé "boop"?
I'm afraid I don't know much slang.
 
@J.Sallé Let's hope that's not NSWF.
 
Started.
 
8:24 PM
Shouldn't be, but you never know on UD
 
@Hosch250 it's not hahahahah
 
Great!
 
9 messages moved from The APL Orchard
 
Thanks, @Adám.
That was getting awfully off-topic.
 
Yeah it was. My bad :p
 
8:33 PM
@Adám ¬(¬(A ∧ (¬B)) ∧ ¬((¬A) ∧ B))
 
hellow
 
@Mr.Xcoder What language is that, and can't you remove some spaces and parens?
 
Oh was it ?
 
8:46 PM
@Mr.Xcoder Yes. You have to make a XOR function in your language, but you may only use NOT and AND for actual computation.
 
Eh, I won't bother to golf that anyway
 
0
Q: Simplify and Take Partial Derivative to a Polynomial String

Weijun ZhouIntroduction Write a program to calculate the partial derivative of a polynomial (possibly multivariate) with respect to a variable. Challenge Derivatives are very important mathematical tools that has been widely applied in physics, chemistry, biology, economics, psychology and more to handle...

 
@Mr.Xcoder There you go. It is indeed a real challenge.
 
"I won't bother to golf that anyway." Does.
 
8:56 PM
Without the restriction upon what we can use, 23 bytes: f(A,B){A=A&&!B||!A&&B;}
 
ungolfable answer ~Dennis golfed it
 
@Christopher nothing new under the sun
 
Physica, 27 bytes: ->A;B:!(!(A&&!B)&&!(!A&&B)) (Using OR too, 18 bytes: ->A;B:A&&!B||!A&&B)
 
TIL that there is a group of people that think the earth is flat and that the Flat Earth Society is "controllëd opposition". Conspiracy inside conspiracy
 
8:59 PM
Holy cow.
 
yeah
 

« first day (2586 days earlier)      last day (2250 days later) »