« first day (794 days earlier)      last day (4146 days later) » 

user142019
1:00 PM
Problem with books is that you cannot update them. You cannot add content and have that suddenly appear in everbody's copy.
 
Here is source of that stuff I wrote: bitbucket.org/pubby/book/src/…
 
user142019
Or fix a bug in your book.
 
@Zoidberg'-- Online books you can
 
@Zoidberg'--: man bash still gives me a smile from time to time: "BUGS: It’s too big and too slow."
 
@Pubby Ok, I installed that. I can set up a cronjob to pull the default branch, process it and host the output if you want.
 
user142019
1:00 PM
@Pubby oh online books. Then yes.
 
user142019
The Monad.Reader publishes in PDF format. I like that.
 
@R.MartinhoFernandes Ok, you might want to wait a while before the structure gets decided though
 
How do I build that?
 
I'm not sure if it works better to have a single document, one per chapter, etc
 
$ asciidoc indices.txt?
 
1:01 PM
Yeah, that should work
 
Hmm, I need to install source-highlight.
 
I like to use my Markdown to PDF thing.
:|
 
user142019
I like Jekyll.
 
Yeah, Jekyll is nice.
 
user142019
I also like Sphinx but that's more for documentation than for blogs.
 
user142019
1:03 PM
But for books it's fine IMO.
 
Hi guys, i need some help, could you please any one help me?
 
user142019
 
user142019
I haven't worked on that for a few eternities.
 
@Pubby Is there a way to run it over all the things at once?
With Jekyll, I just run $ jekyll --pygments on the root dir, and BAM everything is ready.
 
1:05 PM
it took over a year, but some one finally recognised my gnu
 
i need to integrate the c program with the aspell dictionaries under ubuntu
 
user142019
@R.MartinhoFernandes doesn't seem like it but I might be wrong.
 
@R.MartinhoFernandes 404
 
@DeadMG I shut the server down just now.
:P
 
1:08 PM
@R.MartinhoFernandes if it does, it's very slow
 
@R.MartinhoFernandes I don't know
 
46 secs ago, by R. Martinho Fernandes
@DeadMG I shut the server down just now.
@thecoshman Should be up again. It's not very different from what was in the jsfiddle.
 
not like it's anything special lol
 
Stupid laptop needs restarting
fallback to phone I have
Long foot better computer at work I do
Aware of spelling mistake I am
 
user142019
I have some more ideas on how I want to design Zoidlang.
 
1:15 PM
Design what now?
 
user142019
Zoidlang.
 
Which is...
 
user142019
Need a programming language? Why not Zoidlang?
 
Because it'll be shit
 
user142019
:P
 
1:17 PM
@Zoidberg'-- So that it is like Vogon poetry?
 
is it ASCII art?
 
user142019
Fuck. I used [[packed]] and wondered why it didn't compile. Forgot I was using C...
 
user142019
@wilx huh?
 
@Zoidberg'-- That is not standard. Don't you fucking tell me clang is polluting the global attribute namespace.
 
user142019
I don't know the correct syntax either, but [[packed]] always seemed to compile.
 
user142019
1:19 PM
Maybe clang silently ignores invalid attributes.
 
user142019
Or it indeed pollutes the global namespace. :c
 
@Zoidberg'-- lol, yeah, that is how they are spec'ed.
 
@R.MartinhoFernandes I think they just made [[]] into __attribute__(()).
 
user142019
__attribute__((packed)) does compile.
 
So how does one make a programming language?
I've never actually.. delved into that topic before.
 
1:22 PM
1) write a spec 2) talk about how cool your language is 3) never finish the compiler
 
@R.MartinhoFernandes so is this part of this thing?
 
@thecoshman Dunno. It's just the little test Pubby did.
 
user142019
> I am working on a project where I am required to create a page fault handler that uses memory from a different computer connected via a network as opposed to redirecting page faults to the local hard disk.
 
I was testing if I had everything set up nicely for building it.
 
user142019
lol isn't that slow as hell?
 
1:24 PM
@Pubby sounds familiar...
 
I wrote some preliminary style guide: jsfiddle.net/bDLKM/3 (speak up if you wanna argue over style, hehe)
 
wait so this is a thing?
 
@Pubby depending on the TA, I would argue the you should avoid things like not using braces for one lines ifs or elses
 
@thecoshman I agree in most cases braces should be added
 
> Long function and template parameters get indented Haskell-style:
 
1:26 PM
@thecoshman that was ugly
 
I think that looks god awe-full, but the commas at the end of the lines
'Lisp-style' as you seem to call it
 
@thecoshman I thought you were the one who recommended that to me! Maybe it was Fred.
 
@Pubby good lord no :P
 
Pretty much any style looks ugly when you get extremely long function signatures
 
Hi guys i need some help related to c program & aspell dictionary, please could any one help me?
 
1:28 PM
it makes sense to have the comma at the end of the line, that way each line either ends with a comma or the closing bracket
 
int long_function_name(int x,
                       int y,
                       int z) {

}
 
Hmm, cron does not appear to be running the job.
 
^I've seen that done too but I find it hard to read
 
@R.MartinhoFernandes Fire it.
 
1:29 PM
@Pubby I would be tempted to not start each param on a new line, some of them make sense to keep together, like two pairs, one for pos' and one for size
 
@Pubby that's the way I do it lol :(
 
@Pubby I do that too.
 
@Rapptz me too, though obviously not for such a short line :P
 
@Pubby: Is that for dead trees book or just e-book?
 
@Rapptz, thanks rapptz, but unfortunately i cant able to ask question.
 
1:30 PM
@wilx Dunno yet. Haven't decided.
 
why
 
Hi there. i'm reading stuff about interrupt masking. however it not clear what "maskable" means : does it mean interrupt is totally ignored and the int handler will never be executed, or does it mean interrupt is simply delayed and will be executed later ?
 
@Pubby surely it would depends how good it is :P
 
@Pubby: IMHO, for dead trees book you have to think about space issues, thus using one line per function parameter is suboptimal.
 
@Mohanraj So you hope to circumvent that restriction here?
 
1:31 PM
@thecoshman It would probably be better than 90% of the shit that gets published
@wilx Yeah, I've heard that too
 
@Pubby probably, but that means nothing, hence 90% of stuff that get's published is shit
@Mohanraj I am guessing that is for a reason
 
I think I have seen this happen before.
People wondering about what would happen when Kyrostat was done.
 
@R.MartinhoFernandes yeah, someone had a good rant
 
And then... yeah.
 
People get too ambitious and end up not doing anything at all
Happened to 95% of my projects.
 
1:33 PM
@R.MartinhoFernandes lol, innocent eyes
hey! I've done stuff!
 
doing stuff is hard
2
 
@thecoshman Yeah, you made it compile.
 
admittedly nothing that we couldn't have just used a library for :P
 
@Pubby it is..
 
@R.MartinhoFernandes yeah... compile... just not linking :P
I've actually taken a step backwards... I've started twating around with making a build system :D
 
user142019
1:34 PM
Use of undeclared identifier CHAR_BIT. Isn't that in <stdint.h>?
 
35 * * * * cd ~/book; ./update.sh
 
@Zoidberg'-- limits.h AFAIK
 
user142019
Oh <limits.h>.
 
Shouldn't this run at 14:35?
 
Stupid scope question: If I put a typedef in a namespace, can other people use it through another way other than using namespace x;?
 
user142019
1:36 PM
Woohoo my code compiles.
 
Not to sure on the timings of cron jobs, it's been a while since I looked into setting up jobs
@Zoidberg'-- but does it blend link?
 
@Rapptz x::typedef? I don't get the question.
 
user142019
@thecoshman no main function but that doesn't matter since I don't want one either. I'm solving that ASAP (by simply not linking crt0.o).
 
@thecoshman I will just make everything stars, then it is supposed to run every fucking minute.
 
@R.MartinhoFernandes okay I think that answers it. Sounds annoying enough that it shouldn't cause issues.
 
user142019
1:37 PM
And -fnostdlib -fnodefaultlibs.
 
@R.MartinhoFernandes doesn't cron go down to seconds?
@Zoidberg'-- your doing kernal code right? gcc has special flags for that
 
user142019
@thecoshman Oh cool.
 
check out the man page
 
@thecoshman Not since I ever used it.
 
it's some sort of flag for allowing 'non hosted' code
@R.MartinhoFernandes I must be mistaken then
 
user142019
1:39 PM
-ffreestanding it has.
 
yeah, that's the one :P
 
user142019
Stupid clang.
 
user142019
If I compile with -std=c11 it errors on asm, yet without -std=c11 it does compile _Static_assert. T_T
 
isn't the flag still -src=C++0x
 
Why don't you use C++?
@thecoshman Not for C11.
 
user142019
1:41 PM
I'm not compiling as C++ and no, clang uses -std=c++11.
 
ah yes :P
but why not C++?
 
_Static_assert -- lol, they are mad
 
user142019
Didn't think of using C++, actually.
 
@Abyx C always adds keywords like that.
 
_Mad_case
 
1:43 PM
@Zoidberg'-- fool of a took
 
user142019
@Abyx there is a header that #define static_assert _Static_asserts. Same with noreturn and _Noreturn.
 
@Abyx It's by convention: underscore followed by capital is a reserved identifier
 
sbi
I am hitting a brick wall with a compiler error re std::tr1::function. Can you look at this simplified version of my code:
struct foo {};

struct  foobar {
	void bar() {
		std::tr1::function<void(foo&)> func = std::tr1::bind(&foobar::baz, this);
		// ...
	}
	void baz(foo&) {}
};
tr1/bind_iterate.h:45: error: no match for call to '(std::tr1::_Mem_fn<void (foobar::*)(foobar&)>) (foobar*&)'
tr1/functional_iterate.h:207: note: candidates are: _Res std::tr1::_Mem_fn<_Res (_Class::*)(_T1)>::operator()(_Class&, _T1) const [with _Res = void, _Class = foobar, _T1 = foobar&]
tr1/functional_iterate.h:213: note:                 _Res std::tr1::_Mem_fn<_Res (_Class::*)(_T1)>::operator()(_Class*, _T1) const [with _Res = void, _Class = foobar, _T1 = foobar&]
tr1/bind_iterate.h:45: error: return-statement with a value, in function returning 'void'
What's it complaining about?
I am sure it's something very simple, but I have been banging my head against it for half an hour now, and I see nothing.
 
I take it std::tr1::bind is resolved at compile time
 
sbi
@thecoshman What?
 
1:45 PM
@sbi try just (void)std::tr1::bind(&foobar::baz, this);
 
missing a parameter I think, add a std::placeholders::_1 as a last parameter in bind
 
ah, yep, placeholder
 
@sbi derp... I was reading that as part of the class deceleration, not in a function
 
user142019
> cannot link -lgcc
 
sbi
Oh damn! All this time I have been looking for an error in the constructor of function!
 
user142019
1:46 PM
Even with -fnodefaultlibs it wants to link -lgcc. WTF.
 
is it std::tr1::placeholders::_1? Because that sounds annoying to type
 
sbi
@thecoshman You decelerate classy?
 
user142019
Oh wait fuck this. I'll need a custom linker script anyway.
 
@Zoidberg'-- I used all of -nostdlib -fno-builtin -nostartfiles -nodefaultlibs.
 
sbi
Thanks, @Andrei, @R.Martinho, it now compiles.
Sigh.
 
1:47 PM
@sbi sh you
 
user142019
-c flag is what I need. I'll set up a build system in a few minutes.
 
@Zoidberg'-- lolwut you suck
 
user142019
Why? I want one object file per .c file and link them all using a linker script.
 
@Zoidberg'-- Because you forgot that.
 
sbi
Even when you know it must be something very simple before you ask, the answer is still embarrassing.
 
user142019
1:49 PM
And this time I can actually use a linker script because I have GNU ld now, and on OS X I only have llvm-ld. ;_;
 
@sbi not as embarrassing as wasting an hour before just asking
 
user142019
Like, Clang is mostly compatible with GCC. libc++ uses the same ABI as GCC. GDB and LLDB have an almost identical UI. Yet the fucking linker is completely different and not compatible with anything.
 
sbi
@thecoshman Well, good then that I only wasted half an hour...
 
There's no need to std::forward if you can use T const&, right?
 
I don't like to ask questions here because I feel like they're stupid questions but I do sometimes anyway.
 
1:51 PM
@Pubby Yeah, maybe.
 
@sbi but that's neither here nor there
 
sbi
@Rapptz Well, look at my question. Really stupid, but I'd rather ask a stupid question here than waste even more of my valuable time.
@thecoshman Actually I clearly wasted it here, where I am now, rather than there, wherever that is.
 
Yeah there is ultimately a point in which you have to ask.. but alas.. pride is a weird thing.
 
@sbi there is not here, nor here, but there, but not that there, obviously
 
user142019
I'm using bitfields and I should feel bad.
 

« first day (794 days earlier)      last day (4146 days later) »