« first day (1730 days earlier)      last day (3233 days later) » 

user1804599
3:00 PM
But yeah, maybe you have UB in the string moving function.
 
Ell
Set to federer
 
user1804599
That wasn't an issue for me back then since I didn't use std::string; I stored char* and an integer directly.
 
user1804599
I suggest just implementing arrays in some way and implementing strings in your lisp instead of in C++.
 
user1804599
This is not much of a big deal with strings, but with hash tables and such it's a pain to get it to work with the GC otherwise.
 
@rightfold I have a solution
I just use normal C++ structs
 
user1804599
3:07 PM
OK! Problem solved!
 
but I just make the GC information seperate
and instead of trying to pass around the object structs, I pass around the GC structs
 
user1804599
you know what would be cool?
 
user1804599
if you store everything in a relational database.
 
Ell
That is a bad idea
 
3:08 PM
my big mistake was trying to get to the GC object from the Lisp object
that's very hard
 
Ell
Why do uou like databases so much?
 
going from the GC Object to the lisp object is piss easy
 
user1804599
@Ell ACID, indices, and easy querying in many different ways.
 
just a linked list (with implicit next-pointers) /cc @olrp
and boost intrusive has all that
@Ell he fell in love with sqlite virtual tables for a week
@orlp yay
 
user1804599
I just realised how I can easily unit-test the interpreter.
 
user1804599
3:13 PM
Breakpoint instruction. :)
 
just like the puppy said. And you yourself about an hour or two ago
 
user1804599
@sehe I should still give them a try.
 
user1804599
I do have a use-case in mind for them.
 
I thought hard about it. Couldn't think of a compelling use case except using RO legacy data in-place
 
user1804599
Querying multiple data sources with joins.
 
user1804599
3:15 PM
SQL is terrific.
 
user1804599
I think ABAP has support for relational databases built-in (even in its type system).
 
user1804599
But its implementation is proprietary and SAP and hence expensive and terrible.
 
user1804599
DSL which doesn't fit my domain.
 
Ell
But databases are for storage :o
And retrieval of stored stuff
int 80
Breakpoint instruction
 
@orlp I said this upon first encountering your problem.
1 hour ago, by Puppy
@orlp struct heap_object { object* o; info i; };?
 
3:27 PM
that's not the same though
 
it pretty much is.
 
what I do is just add and subtract to the this pointer
 
you just replaced object* o; with a slightly different means of getting to the object from the heap_object.
the fundamental strategy is completely identical.
 
user1804599
OK.
 
user1804599
The only thing I still need for making hello world work is an instruction which loads a string literal.
 
3:29 PM
 
user1804599
Oh, wait, also an instruction which can read a field.
 
3:48 PM
field of gold
 
user1804599
nonono
 
user1804599
field of a struct or element of a tuple
 
anit-joke-or-culture-reference-lobster
 
user1804599
inb4 lefdfold
 
3:51 PM
lewdfold
 
user1804599
:3
 
what, you couldn't spring for vowels?
 
@Puppy he has invisible-vowel syndrome
 
his parents must have been C programmers
 
user1804599
I don't like vowels.
 
user1804599
4:04 PM
Vowels are for losers.
 
you just used like, 10 or 20
 
user1804599
12.
 
@rightfold vowels are for dutchmen
 
@Prismatic so cute
 
4:26 PM
It's sweating it
 
lol >100%
 
2 CPUs
 
100% should be both cores then
 
hmm, "🍌\u032A" is supposed to be banana + some combining thingy that goes below-ish... but when I combine it with banana, it appears below and to the right, where the next character would be...
is this correct?
 
4:42 PM
@melak47 🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌
 
dudes yer fuckin' bananas
 
??!?
I was asking about the combining character combining way over there, not what banana looks like :/
 
I only get hexboxes with Vista 64 font-o-matic:(
 
@MartinJames set Segoe UI Symbol as font :D
 
dude
you're using Windows Vista?
 
4:45 PM
maybe he hasn't gotten around to installing 7 yet. Don't be a bully
 
it's only been 8 years
 
@Puppy Inorite, it's sad:(
 
you're sad
that you're still on Vista
 
@Puppy I have no overriding, (or overloading), need to upgrade on this box.
 
4:50 PM
Vista is shit
there ya go
;p
 
A̪̪̪̪̪̪̪̪̪ 🍌̪̪̪̪̪̪̪
hm, here the bridges are to the right-ish for both the banana and the A...
@MartinJames just upgrade virtually :p
 
@melak should be below but this poor rendering behavior is not unusual
 
@R.MartinhoFernandes alright I guess. At first I thought my text selection code was broken because it looked like I was deleting the base character but the combining marks were staying...but they were actually attached to the character to the left :D
oh, does DirectWrite have font fallback? maybe it's picking the banana from Segoe UI and that's why crap is misaligned
 
On my phone the A shows a bit misaligned.
 
user1804599
 
5:00 PM
The banana shows the bridge a tad to the right and not below.
 
user1804599
it looks like this on my machine
 
Ell
Okay I gave up and installed Linux mint
But that doesn't even want to boot
 
The banana sounds like some custom placement because it kerns very well
 
Ell
Something ain't right about this whole endeavor
 
5:01 PM
@rightfold o.O what
 
Ell
Maybe my mobo firmware is fucked since I updated it
 
alright, more consistent if I put it all in Segoe UI
 
user1804599
@melak47 OS X has special text rendering mechanisms for rendering emoji in colour.
 
does it also have special mechanisms for not combining combining marks?
 
user1804599
No idea.
 
user1804599
5:02 PM
This is Chrome though.
 
user1804599
Let's see in TextEdit.
 
Ell
I can't fail badly enough to be unable to install Linux mint surely
 
Windows 8 does colour emoji too.
It's an OpenType feature
 
user1804599
 
user1804599
Fuck Chrome.
 
5:04 PM
Same font?
 
user1804599
Yes.
 
I guess the banana counts as bold :p
 
god dammit can't even point the banana the same direction. what good is unicode
 
docker build is so annoying
 
5:06 PM
It's a banana.
 
user1804599
-- Python vs. Perl 6:
>>> len("A̪̪̪̪̪̪̪̪̪ 🍌̪̪̪̪̪̪̪")
19

> 'A̪̪̪̪̪̪̪̪̪ 🍌̪̪̪̪̪̪̪'.chars.say
3
 
Do you complain about different looking 'a's in different fonts as well?
 
user1804599
Also lol Chrome:
 
user1804599
 
@R.MartinhoFernandes I was kidding :/
 
5:08 PM
lol Chrome so good at fonts
 
user1804599
Why does Chrome not use OS X' text rendering libraries?
 
user1804599
Cross-platform code reuse perhaps.
 
@rightfold Python is right.
 
I think they use DirectWrite on windows, so that shouldn't be an excuse
or was it ANGLE or something, and that uses directwrite on windows?
idk.
 
user1804599
@R.MartinhoFernandes in Perl 6 the result depends on what you told it you want it to count as a "character".
 
user1804599
5:10 PM
The setting is lexically scoped.
 
lol perl
 
lol
How terrible
 
user1804599
The default is graphemes IIRC.
 
@R.MartinhoFernandes so combining marks are counted as characters?
 
user1804599
But yeah it's a horrible thing to make this lexically scoped.
 
user1804599
5:11 PM
It should be a parameter.
 
user1804599
Or different methods.
 
@melak no.
 
Depends on how you define a character :v
 
Python is still right.
 
ok, so what does the 19 count
 
user1804599
5:11 PM
It depends on what you define as length.
 
19.
:p
 
The length of the string.
 
Codepoints
 
Python's result also tends to be of more use
 
user1804599
Strings in Python are sequences of strings.
 
user1804599
5:13 PM
len returns the length of the sequence. :p
 
user1804599
Mill strings won't be sequences and you can't ask for their length. You first have to convert them to sequences in some way.
 
0
Q: Why $T(n) = 2t(n/2) + \log n$ is in $ O(n)$?

UserMoonMy professor said that $T(n) = 2t(n/2) + \log n$ is in $O(n)$ I checked with Master Theorem and I did not really understood why. By Case1 (which would give us exactly $O(n)$) we have $a = 2, b = 2, f(n) = \log n$ $\log n = O(n^{\log n - c})$ for c > 0 well, if c must be > 0, then $n^0$ gives...

wat
How on earth
 
@R.MartinhoFernandes do you know how to wirte an escaped surrogate pair in a string literal? msdn says L"\UD869DED6", but the compiler complains that that's an invalid character :/
 
Got it
 
5:35 PM
ah, in 2015 you don't have to write them as surrogate pairs anymore :)
 
\u1F34C banana! :D
 
It'd be \xD869\xDED6
 
I prefer \u1F34C :\
 
Don't use \u and \U for invalid code points
 
5:38 PM
why is banana invalid? :/
 
The surrogates are.
 
right
but \u1F34C is not the surrogate pair
 
That's two characters, though.
 
user1804599
Shouldn't it be \U0001F34C?
 
technically I guess, but it doesn't seem to care :v
 
ἴC
It doesn't care because it's valid. It's not what you mean, though.
 
whoa, I guess they're sortof standard compliant!
 
It's "ἴC".
I'd appreciate a warning about this.
 
what?
 
C is not counted in the character code.
It's the letter C on its own.
 
5:42 PM
o ἴC
 
Surrogates are an encoding thing, \U is for codepoints
 
"\u1f34C" is "\u1f34" "C"
 
guess those zeroes are important afterall :)
 
user1804599
\u takes four digits and \U takes eight digits.
 
user1804599
No more, no less.
 
5:44 PM
now it's literally encoded as L"\x1F34C" though o.O
 
lol, is it?
That's broken
(How did you ascertain that?)
 
user1804599
With a compiler that's bad at string literals in general it's best to put the text in a file and read it at runtime.
 
lolwut
What's your code?
 
std::wstring line = L"\u0001F34C";
 
5:47 PM
Capital U
 
user1804599
Use \U, not \u.
 
Gee, it's not that complicated
 
ah, small u for 4
 
user1804599
See en.cppreference.com/w/cpp/language/escape for everything you want to know.
 
> In all native string types and encodings, universal character names are represented with a prefix \U or \u followed by the code point. -- MSDN
I took that literally :D
so...how does DirectWrite still print a banana if I screw it up? :S
nevermind, I can't even screw up right
 
user1804599
5:49 PM
Except that this is UB; it doesn't mention that:
 
user1804599
\U0001\
F34C
 
(Also L"\x1f34c" is not valid. What you meant was L"\x1" L"f34c")
\x is maximal munch
 
user1804599
I have Sphinx sources in a GH repo and I want the rendered site as a GitHub pages site.
 
user1804599
But I don't want the generated HTML in the master branch.
 
You can't have it in master anyway, GH serves from gh-pages
 
user1804599
5:56 PM
Yes, I know.
 
user1804599
I want the sources in master and the HTML in gh-pages.
 
Then... do that? What's the problem
 
user1804599
With a pre-push hook.
 
user1804599
I don't know how to implement that.
 
Write a script that runs that and commits the result to the other branch?
 
5:57 PM
You need a second clone that's on gh-pages
 
user1804599
I could make a script that runs Sphinx, copies the HTML to a temp directory, checks out gh-pages, copies back from temp directory, checks out previous branch.
 
user1804599
But this seems really convoluted.
 
generate, git commit -am "generated html from master <SHA1>" in hook?
 
Clone gh-pages to the _build
 
user1804599
It'd be nice if git checkout - would still work afterwards without switching to gh-pages.
 
user1804599
6:22 PM
This seems to work:
 
user1804599
#!/bin/bash
set -e

if [ "x$(git rev-parse --abbrev-ref HEAD)" = xmaster ]; then
    TEMPDIR="$(mktemp -d -t '')"
    LC_CTYPE=en_US.utf-8 make html
    cp -R _build "$TEMPDIR"
    git checkout gh-pages
    cp -R "$TEMPDIR/_build/html/." .
    git add -A .
    git commit -m 'Update HTML'
    git checkout -
fi
 
6:36 PM
wow
 
@rightfold there is such a thing as stash
 
watch this ted talk....must watch
highly recommend it :)
 
I'm bored just reading the title
 
hmm
I have just determined
oh no wait, I have that stuff.
never mind
 
6:53 PM
@TheArtist the fluffy one that smokes weed?
 
user1804599
Best band and song names ever: youtube.com/watch?v=_GjQm6x6zQg
 
I saw a wild @jaggedSpire, but then she ded, liek so ded
 
user1804599
7:08 PM
Gah, new iTunes takes seconds to respond to play control keys.
 
@nabijaczleweli so very ded.
 
@jaggedSpire 3ded5me
 
i dont like metal
 
I'm playing Terraria, and the mumble chat was blocking my health bar.
 
You can move or disable the overlay you know
 
7:12 PM
@jaggedSpire once more, the lounge is standing on your way of success
 
@CatPlusPlus madness
 
I recommend disabling since it's unstable as fuck
 
my phone gps is not working without gapps
 
user1804599
 
Rust syntax feels like line noise
 
nice and informative documentation
 
user1804599
Thanks.
 
7:51 PM
Hi, I'd like to get the title text of a window using win32, now that I have a window handle. anyone knows how can I do that ?
 
no.
literally nobody, on the entire planet, knows how to get the title of a window.
 
let's write an opens source speech recognition software
 
@user994572 sigh
 
I've done that...but the msdn help doesn't give a concrete example..and I have no clue how to go about it.
 
7:57 PM
@nabijaczleweli you are good googler, can I ask you to google for me when I need something?
 
@khajvah Yes
@user994572 Wait a min, whipping up an example
 
@nabijaczleweli ok, I want an open source speech recognition software
 
let me show what I already have...
 
@user994572 Please not dump into chat
 
inb4 a 200 lines of code
 
7:59 PM
no i'll pastebin first
 
@user994572 Coliru pls
 

« first day (1730 days earlier)      last day (3233 days later) »