« first day (862 days earlier)      last day (4312 days later) » 

23:01
-1
Q: How to split a string (Sketch)

user1395480I am sorry, but I do know a lot abour c. I have String of 55 caracter String str = "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww"; //55 caracter The string can be very long. I would like to split the String in each 64 caracters String str = "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
How do you pronounce, "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww"?
Spoiler: You can't.
"dubya dubya dubya dubya dubya dubya" etc.
23:02
@AndreiTita It's double u!
goodnight lounge
@Johnsyweb Like /wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww/
@Rapptz You of all people should know
@R.MartinhoFernandes Like a regular expression?
I don't speak american English. :(
23:04
"I am sorry, but I do know a lot abour c."
I often think that questions that start with an apology should be automatically filtered somehow.
Every day is a school day. Today I learned the word "Allophone"!
~Sigh~
No matter how I try. It just don't work as a Texture1D.
Why u do dis 2 me, D3D? ;~;
I wonder how hard it would be to make a speech synthetiser that can read IPA.
I had a lecturer who insisted on saying "three double-yous" instead of "double-you double-you double-you". Though it makes sense, I found it really pretentious for some reason because he knows nobody else called it that and was basically just showing off.
Ell
Ell
23:08
Showing off? :L
Tomalak doesn't like being one-upped in English.
Ell
Ell
people usually say " dub dub dub dot" here
dub?
my old boss said that
Where the hell do you live?
23:08
slightly more acceptable
Ell
Ell
uk
@Rapptz It's short for "double-you", phonetically.
I say dubdubdub too for shortness.
@R.MartinhoFernandes should be rather easy shouldn't it? the parts of IPA are all independent
Ell
Ell
Anyone saying 3 double yous sounds technologically less able to me for some reason, not sure why
23:09
@thecoshman You need to string consonant and vowel sounds together somehow. Can't just concatenate the sound of each symbol.
@R.MartinhoFernandes I'd be shocked if none existed currently.
@Ell Yeah, that's a non-sensical viewpoint but I totally share it. Just some subconscious thing?
Plus, there are modifiers and shit.
@R.MartinhoFernandes hmm... true
As if they're reading it in the most basic way, having never heard of the internet before
@R.MartinhoFernandes yeah, but those are all well known aren't they?
23:10
Well if I had to pronounce www I'd say double-u three times.
but guess what
I don't say it
So this is a non-issue you pretentious fucks.
:(
@thecoshman Can be combined arbitrarily.
@R.MartinhoFernandes ¬_¬ where's my table
fuck me I'm tired; I'm going home. BAI!
I think you can't just do it with a database lookup.
Ell
Ell
23:11
Yeah
adios
At least not general enough.
Ell
Ell
Bye :)
@LightnessRacesinOrbit G'night!
that shitty string question needs 1 more VTC
23:13
The vowel sounds should be easy since their frequencies are well established.
@R.MartinhoFernandes I suspect you could come pretty close, but not just looking at one character at a time -- you'd look at pairs of characters at the very least. At the same time, given that there are screen readers that can do even a halfway reasonable job of producing understandable output from normal English, it's next to impossible to imagine that doing the same with IPA would be any more difficult.
@R.MartinhoFernandes well, the base sounds you can. it's just working out how you can blur them together properly
Ell
Ell
And points of inflection
and IPA should give a rather concrete definition for the sound
@JerryCoffin Yeah, it's definitely easier than that, since it's somewhat deterministic, unlike English.
Ell
Ell
23:15
English isn't deterministic? O.o
It's context sensitive but not non determinsitc?,
you can't really believe that?
@R.MartinhoFernandes I'd certainly think so, anyway.
wind up the wind
determine that bitch
Ell
Ell
With context I could :P
are you sure?
Ell
Ell
23:17
Meh Okay haha
someone has always wondered before :P
54 hour wank session, lol
Ell
Ell
heh
24 would probably have been funnier
Ell
Ell
23:20
I wonder where @maxmp went
Didn't he used to be a regular?
@FredOverflow ¬_¬ easily amused ain't you
Ell
Ell
I hate school :(
I'm so lazy its not even funny
Sack up.
Ell
Ell
Sack up?
23:27
Hmm, found some AT&T thingy that seems to fail at some consonants.
Ell
Ell
I've used the at & t thing loads
Just to do random text
So, this is what /wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww/ sounds like: dl.dropbox.com/u/13779444/2041f213b56687de8e9ffaa6dc491643.wav
Ell
Ell
I read "consonaughts"
@R.MartinhoFernandes rofl copters come to mind
Meh, it sucks though.
It doesn't even have all vowels.
Can't render /y/.
23:31
I feel bad for people who ask for help on something vaguely related to math but all they get is a link answer
lol it got upvoted
Ell
Ell
I found it okay for sentences
I just don't understand how it can ever be natural
Ell
Ell
I had a thought the other week though. What if someone simulated air flow through a voicebox and mouth?
the complexities of the Wide compiler
That's a really small compiler. o_O
What can it do so far?
23:32
it's a prototype
@Ell I think that's too complex.
you can make functions, call them recursively, they can return values, and you can make variables, and you can access C++ global variables and call C++ functions.
@Ell Your program wouldn't be able to make the groan emulating the strain you're putting it under with all that compuation you'd be doing. :D
Ell
Ell
Yeah its definately overly complex, but I think it would give accurate results, we know how the jaw and tongue move etc.
You could make it do sex groans xD
when I'm done figuring out how to split the analyzer and code generator properly, then I'll add some integer stuff, conditions and whatnot.
23:34
i++ + ++i ? <3
for you initial version, are you including much standard library stuff?
OOH
@thecoshman Wide v1.0 is going to be C++ libraries only, most likely.
LET ME WRITE THE WIDE STANDARD LIBRARY.
Aww.
not a chance in hell
23:35
That's cheating. =[
What?
I'd be a great library writer. D:
lol
all I'm saying is that half the advanced C++ in your renderer or more came from me :P
it's not so much cheating as realising the C++ is a beast, and you are never going to have a viable alternative that just servers all links to it
and the other thing is that even I'm not actually sure what constitutes idiomatic Wide, and I invented the damn language.
@thecoshman Well, this is pretty much it.
there are a shitload of existing C++ libraries, and I'll make a far better case for Wide adoption being able to use them seamlessly than having my own libraries.
unfortunately, right now, that doesn't look quite so great.
(fuck you Clang).
Xeo
Xeo
lol
why clang btw?
Xeo
Xeo
23:37
What's exactly the problem with integrating C++?
what, "Why use Clang?" or "Why fuck you Clang?".
Xeo
Xeo
@thecoshman Do you want to mess with GCC's MELT?
oh, windows :P
@Xeo Basically, all of Clang's components are really strongly coupled.
any hoops, time to hit the hay
23:37
my Wide components are very loosely coupled.
Xeo
Xeo
No, Windows isn't the issue, I think. He might aswell develop in a vbox.
@DeadMG Hm
night all
for example, if you want to do overload resolution, you have to tell clang where in the source file you're doing it from.
and for me, I don't have a C++ source file.
and half the objects required are Clang-parser-specific.
Xeo
Xeo
@DeadMG For error reporting, huh
@Xeo Maybe.
Xeo
Xeo
23:39
@DeadMG Well, if you do echo "int main(){}" | clang -x c -, you also don't have a source file per-se.
in any case, it can often be difficult to get what I need out of Clang because it's simply not designed to be as flexible as I need.
right now, I'm fighting the code generator.
LLVM's types are structurally unique, except you can have named types.
so Clang creates one type for std::basic_ostream, then makes another and names it so it's not the same.
Hm.
@DeadMG Can you teach me to make a parser some day?
then decides that std::cout is one type, but toLLVMType(decltype(std::cout)) is another.
The base of a generic parser/lexer.
I think I'm gonna need it...
Xeo
Xeo
@DeadMG decltype((std::cout)), maybe?
no wait, nvm
23:41
@Xeo No, it's not literal.
I mean I call name lookup in the API, and it gives me back an AST node, which has a method to get the type, and then the code generator has a method to convert that type to the LLVM type.
but it's not the same LLVM type as you get if you access the global variable std::cout in the LLVM module.
so if you generate a function, whose return type is llvmtype(decltype(std::cout)), and then do return std::cout, you will get an LLVM type error.
Xeo
Xeo
Well, how does Clang go around thatt problem when parsing C++?
@Xeo I'm honestly not entirely sure. It's something to do with incomplete types.
when you ask Clang for the type of std::cout, it generates a placeholder.
Xeo
Xeo
How about asking on the mailing list / #llvm?
then later, it replaces this placeholder with the real type.
@Xeo I am.
Xeo
Xeo
23:43
@DeadMG Consufing.
@Xeo Yeah. But it doesn't quite update everything with the real type.
leaving me with the placeholder, which it kindly accurately generates.
@JerryCoffin I guess syllabic decomposition as a first step would help. Once you have syllables you can just concatenate their sounds together (for some definition of "just"; there are ways to specify how syllables interact together, but I don't think they overcomplicate the design). And breaking down syllables in IPA is not complicated.
Does function calls incur in breaking the processor pipeline?
@lvella They can do if the processor can't predict the address.
Xeo
Xeo
So, @DeadMG, how exactly do you plan to integrate C++ anyways? Can users just mix it in wherever they want?
23:45
@Xeo Not exactly.
so, if I call a function pointer, or vtable, it will mostly certain stall the pipeline?
the short is that if I can implement it, you can do it.
the long is that "what I can implement" may well have a complex answer that I don't really know yet.
Xeo
Xeo
You might simplify the whole thing for yourself if you say that C++ code can never leave a certain subsystem, but your types can go into and out of that subsystem.
user1357851
I was looking for 'the walking dead' on the internet, but I tyepd in 'the working dad'
@lvella No. If the CPU has seen that function call or vtable lookup before, it will likely have the address on hand, or simply look ahead.
user1182183
23:47
Dammit if I keep playing with the rotations like this I won't have any car left over to rotate in 2 minutes >_>
@Xeo Nah.
if I want to have a halfway decent C++ interface, then C++ objects need to be first-class Wide objects.
Xeo
Xeo
Hm.
they have to exist in the Wide type system and be real Wide types.
the main issues for me right now are
firstly, Clang's API is not intended for this kind of close-coupled interaction with an external component, the documentation is very unhelpful, etc.
the second is that my own type system is still incomplete so
@DeadMG What you mean by "on hand"? Will it be on cache?
@lvella Yes, the CPU will predict function pointer calls the same way it will regular branches.
some things work, not really by accident, but
the "simple" version works and I haven't needed to implement the more complex version yet.
like lvalues- right now I tell Clang that every function argument is an lvalue.
although obviously it isn't
I don't properly deal with lvalue/rvalueness of C++ types at all.
or even Wide types, really.
Xeo
Xeo
23:51
@DeadMG Hmm... if you want those types to work exactly like they did in C++, it's like you're just bolting Wide on top of C++, kinda like C++/CLI or C++/CX. Or some compiler extension.
Seperating C++ into a subsystem would be cleaner. IMO, anyways.
how so?
Xeo
Xeo
Obviously, I don't know how easy that'd really be.
@Xeo More like C++ on top of C, but without the source compatibility
what exactly do you mean by separate subsystem, anyway?
Xeo
Xeo
Lemme think a bit how to best formulate it.
Yeah, the AT&T thing only works for English.
23:54
@R.MartinhoFernandes That's so racist.
It's silly to have an IPA TTS that can't even do all vowels.
Xeo
Xeo
Mmm, is Coliru down or is that my shitty interweb?
isup.me says it's just me, but eh...
I only get a blank page from it.
working fine here
Hm.
It pronounces zurück [ʦuˈʀʏk] almost as English "look". So much fail :(
23:57
Should I support Stage-Changes in my HLSL markup?
That is, setting RasterizerStates, BlendStates, etc?
Regular Effects could do it but at the moment I'm not having a powerful need to be changing the state of the graphics context / device.

« first day (862 days earlier)      last day (4312 days later) »