« first day (645 days earlier)      last day (4303 days later) » 

1:00 PM
So?
 
@Ell You can control a VM more easily than you can control the CPU; a CPU is hardware, a VM is software.
The language you compile to the bytecode the VM runs is irrelevant.
 
Hi
 
Ell
@RadekSlupik I'm just saying if we had a c++ vm, it wouldn't automatically make everything managed
you would still have to manage your own memory etc. ?
 
Just wondering
would you guys call MSDN a "reliable source"?
 
Ell
@Daniel hi :)
 
1:03 PM
@nightcracker For what?
 
@nightcracker: I guess this is some kind of religious issue for you or something. The citation is to a reference from a reliable source that precisely explains the OP's issue. Yes, there might be other cases where that source has incorrect or inapplicable information, but this is not one of those cases. The MSDN page, in this case, has precisely the same information, just phrased slightly more clearly. — David Schwartz 8 mins ago
for standard C stuff
 
C++ language? No. C++ implementation, WinAPI, .NET? Yes.
 
well, this is about C language
 
@Ell yup.
 
Whatever. If you want to reference anything, reference the standard.
 
1:04 PM
@Ell but I want to say, it's more easy to manipulate the environment if it's a VM.
 
Using derivative sources just makes more room for silly mistakes.
 
Ell
@RadekSlupik how would finding where segfaults be easier with a vm? Not arguing, I just want to learn :L
 
They're not authoritative.
 
@Ell Hallo
 
@CatPlusPlus: exactly.
 
1:05 PM
If you're running on VM and have segfaults, then VM is bad.
But of course C++ loves performance over safety, so.
 
Ell
what would happen instead? when you dereference a null pointer in a vm?
 
It could check if it's valid.
 
@Ell The VM will complain and spit out a backtrace.
Or something else.
 
Ell
are there any c++ vms?
 
Sandboxing = Fun
 
1:07 PM
@Ell “C++ VM” is a strange word. You compile the C++ code to bytecode which is executed by the VM.
C++/CLI does that, AFAIK.
 
C++/CLI is managed, not sure if VM'ed though
 
C++/CLI (Common Language Infrastructure) is a language specification created by Microsoft and intended to supersede Managed Extensions for C++. It is a complete revision that aims to simplify the older Managed C++ syntax, which is now deprecated. C++/CLI was standardized by Ecma as ECMA-372. It is currently available only in Visual Studio 2005, 2008, 2010 and 2012, including the Express editions. Syntax changes C++/CLI should be thought of as a language of its own (with a new set of keywords, for example), instead of the C++ superset-oriented Managed C++ (MC++) (whose non-standard keyword...
 
@Ell there's cling
But that's more of an interpreter than a VM.
 
You can also write a VM that runs ARM machine code on an Intel machine, or whatever.
 
Wow. More than a thousand downloads for my 64-bit GCC 4.7.1. Nice :)
 
1:10 PM
But VM bytecode is often higher-level with some possibilities of abstraction (i.e. functions instead of labels).
 
Ell
why don't we use cling then? o.O It would make things a lot easier. Then just make the release version native. Or maybe not.
 
@Ell Cling is very ROOT-centric and not quite fast though. Compiling C++ isn't fast...
 
hey didn't someone ask about quadruple precision support?
 
Ell
ROOT?
 
lol dynamically compiling C++ code.
 
1:11 PM
in C/C++
 
Would be slow as hell.
 
@Ell CERN C++ framework.
 
In the ideal world, computers wouldn't exist.
 
just sent this as a DR: codepad.org/YxdXcg2g
 
1:15 PM
"Computer science has just as much to do with computers as astrology has to do with telescopes"
why do I feel as if the C++ typing system is overly complex
 
If you want a simple type system, use assembly.
 
Ell
@nightcracker what makes you feel it is?
 
@Ell That's his question.
 
Ell
oh yeah :L Doh!
 
I want to write a program.
 
1:18 PM
@RadekSlupik: what kind of program?
 
@nightcracker That's the problem. xD
 
Ell
write an emulator :D
 
Oh yeah, fun. An x86-64 emulator.
 
The thing I might hate the most about C++ is the lackluster standard library. The motto "you don't pay for what you don't use" turned into "you're not getting anything because you'd have to pay".
 
Write a program so that you have to press a button every X hours or something bad, but otherwise undescribed, will happen.
 
Ell
1:19 PM
I was thinking gameboy advanced but :L
 
exec("executable");
// x86-64 emulator
 
@nightcracker How is that? The Standard library has a lot. Just not always the right things.
(I'm looking at you, std::string!)
 
Nope
Always just not the right things.
 
C++ has batteries included. :P
 
Couldn't disagree more.
 
1:21 PM
@nightcracker I think you're not accustomed to the Standard library enough.
 
Woop woop, my MonadLog works and is so cool and totally not even my idea.
[*Main]
> test
[game/DEBUG] step 1: a = 42 b = 69
[game/INFO] step 2: a * b = 2898
2898

[*Main]
> runIdentity $ test
2898
 
Is that haskell or?
 
@rubenvb Compared to Python stdlib, C++ stdlib practically doesn't exist.
3
@nightcracker Yes.
 
That.
 
Does Python have an ISO standard?
 
1:22 PM
No, thankfully.
 
Ruby does. :P
 
(AFAIK)
 
@nightcracker If run in IO, logging happens; if run in Identity, logging can be completely optimised out. :v
 
So stupid. xD
 
1:23 PM
Being ISO standard is hardly a good thing.
 
That.
 
@CatPlusPlus Would that statement be true when you consider boost as well?
 
@rubenvb Bit less.
 
Fuck ISO with their expensive free documents.
5
 
1:24 PM
And one thing.
The Python documentation.
Wow.
 
Python's documentation is awesome.
It answers all the questions!
 
OK, Qt.
 
It's one of the few docs where I don't have to skip through 5 chapters of bullshit before I finally know my answer.
 
beat that.
 
Python.
 
1:25 PM
Python doesn't have a GUI.
 
False.
 
It has stuff like PyGTK
 
Also, the C standard library is so random. :P It has qsort and bsearch, but not dynamic arrays, and FILE is in all-caps.
 
qsort is a joke
 
1:26 PM
@RadekSlupik C99 has variable length arrays.
 
It's most common implementation isn't even a quicksort
 
@RadekSlupik Tcl/Tk does not count as a GUI.
That's just F-ugly
 
@rubenvb What.
 
@rubenvb I disagree.
@rubenvb I agree.
 
@rubenvb: and let's not forget PyQt :D
 
1:27 PM
PyQunt.
 
Qt is still awesome.
 
Web interfaces FTW.
 
PySide > PyQT.
 
Yeah, let's HTML everything... not;
 
Web interfaces are terrible and you're terrible.
 
1:28 PM
Oh by the way, I remember something
 
Web interfaces are great and you complain too much about web interfaces.
 
If you thought PHP was bad
try ASP.net
 
ASP.NET > PHP
The only thing worse than PHP is Zimbu, although both are jokes.
 
ASP.NET < PHP in my books
 
FUNC MAIN() int
  IO.write("Hello, World!\n")
  RETURN 0
}
 
Ell
1:31 PM
IO is stdout/cout/whatever?
 
Probably stdout. It could have been any file, though. xD
I don't know. Zimbu is silly, stupid and designed by an idiot who must burn in hell for eternity.
With his unbalanced closing braces.
AND ALL-CAPS KEYWORDS!!
 
Ell
anyway I must back to writing java for a cross platform vm <3
 
Java? Use Python.
 
Ell
python has no jmonkey engine :L
 
lol game development
 
Ell
1:37 PM
and is dynamically typed
 
Ell
ooh interesting
jruby?
I might try this
 
I'm going to write a VCS.
 
Ell
why? o.O
write an IDE.
 
Ell
1:41 PM
actually no, write a parser :D that takes an input EBNF and parses
 
Finish it if you like.
I'm going to abandon it.
 
Ell
:/ why?
 
Writing an IDE is boring.
Writing a VCS is fun!
 
Ell
write a parser!
 
You generate parsers, silly.
 
Ell
1:42 PM
Write a parser that parses stuff according to an EBNF definition, not one that generates another parser!
 
Also why would you use a Java game engine.
 
Well, my VCS needs to parse repositories' contents.
 
Why would you use Java.
At the very least use Scala.
 
Ell
because developing in c++ is annoying the hell out of me
 
At least you'll have some fun.
 
Ell
1:42 PM
not the c++, the whole building the libraries et al
 
Instead of dying out of boredom.
 
Java is one big design pattern.
 
Ell
hmm. jruby is installed.
that was easy :D
 
@Ell Me too, but why Java god.
 
Ell
@CatPlusPlus well I just saw jmonkey and it looked good so :L
 
1:43 PM
Use Scala or Frege.
 
Use Haskell or Python.
 
Frege is Haskell-like for JVM.
 
Ell
I don't like functional languages like haskell
 
can anyone suggest a good book on opengl?
 
Ell
scala is lisp-like? or scheme? I don't know?
 
1:44 PM
No, it's not LISP.
 
Später.
 
Ell
is scala it's own thing?
 
You'd Google it by now.
Functional languages are fun.
 
Ell
but we're having a conversation, right?
Does android support any language using the java jvm?
 
Yes.
Well, I'd think so.
I know it runs Scala with no problem.
 
Ell
1:50 PM
I'll assume it will run JRuby then
 
Ell
hmm. ruby 1.8.7
I might just use java
I don't see the problem with it, personally
 
classes, classes everywhere
 
Ell
but not a drop to drink.
glasses, glasses everywhere
 
haha
hahaha oh wow
1
Q: in python, why update of dict that was appended yet to array, changed the array

eligromy code will be more clear I think- someList = list() foo = {'a':'b'} someList.append(foo) print someList >>> [{'a':'b'}] defaultbazz = {'a':2, 'b':'t', 'c':'gg'} for k, v in defaultbazz.iteritems(): foo[k] = v print someList >>> [{'a': 2, 'c': 'gg', 'b': 't'}] Shouldn...

"it's seems to me uninterpreted behavior.."
uninterpreted behaviour
 
2:00 PM
Ha, interesting
Bounties on SO main:
 
?
I almost never do bounties
 
apparently, if no answers are accepted, the top rated answer automatically gets half the bounty
 
user1182183
haaai, does any1 here know RegEx? ; x I can't really understand it well, has anyone a good tutorial? I want to detect something like "<number from 0 to 255><anything><number from 0 to 255><anything><number from 0 to 255><anything><number from 0 to 255><anything><number from 0 to 65536>"
 
The only answer currently on a certain question is by the same person who put up the bounty
me
so do I get half of my own rep back?
 
@Tomw: let's find out :)
 
2:03 PM
and is the remainder destroyed or is it returned to me?
It would amuse me greatly if there happened to be a bug in that feature...
 
something along the lines of, half rep is awarded, then because the bounty wasn't really satisfied, the whole amount is returned
someone would be using it to farm rep if that were the case, sadly
 
user1182183
@chris Thanks I'll look into it :)
 
AFAIR bounties are never reimbursed.
Only in some cases by a mod, if question disappeared before bounty ran out.
 
Ell
@GamErix heres one i just wrote: (?:<[0-9]{0,3}><.+?>){4}<.+?>
not sure how well it works :L
 
user1182183
2:06 PM
@Ell oo gotta test that on regexpal.com
 
user1182183
I'll see if it works
 
ah
well that's likely to be a waste of 250 rep then
 
Ell
@GamErix do you need capturing groups?
 
user1182183
@Ell What's "capturing groups" :$
 
Ell
@GamErix do you want to be able to get the value of the numbers/anything's or just check that the string matches the expression?
what language are you using?
 
user1182183
2:08 PM
I just need to check if it matches
 
user1182183
if yes, ban for IP advertisin
 
Ell
okay :)
 
user1182183
the application that provides regex funxtions is made in cpp, while a script uses the functions
 
user1182183
or well at least block the message
 
Ell
does it work well enough?
 
user1182183
2:10 PM
if(regex_match("192.168.1.1:8080","(?:<[0-9]{0,3}><.+?>){4}<.+?>"))
{
print("BAN THE SUCKER");
}
else
{
print("New message for everyone! :)");
}
 
user1182183
prints the else.. :x
 
user1182183
New message for everyone
 
Ell
what language is this?
 
user1182183
PAWN
 
Ell
2:11 PM
PAWN?
 
user1182183
Small Embedable ScriptIng Language
 
Oh gods not that stupid language.
 
Ell
you might need to escape some characters
 
Also that regex matches literal <>.
Also what do you want to parse IP for?
 
Ell
oh you're parsing IP's?
 
2:12 PM
If it's a ban list, then just compare it dammit.
 
Ell
sorry I thought you wanted the <> in there
 
user1182183
ye but I need to detect 183 join! 255 THIS 213 AWESOME 233 SERVER ON PORT 8888!!
 
Ell
so you don't need the <>'s?
 
You're only going to get false positives with that.
 
user1182183
Anti-IP:Port advertising
 
user1182183
2:13 PM
no
 
user1182183
Well I won't ban them, Just block the message
 
Ell
you wont be able to do that
 
Invest in a better admin team on whatever server you're running.
 
user1182183
Hm, so no possible regex solution to block the msgs? :x
 
user1182183
all other Anti-Cheats work perfect
 
2:16 PM
Anti-cheat engines are not magical regexes to detect spammy messages.
 
user1182183
Ye ofcourse my anti cheat isn't that ; P It's for anti-money, speedhack, etc
 
user1182183
but this is just to prevent advertising when no moderator is online (hey we are all people and csan't be 24/7 online)
 
They'll just figure out the way to circumvent the filter.
Stop wasting time.
 
user1182183
yeah but it will block the noobs and spam bots : X
 
And possibly play a game with more mature community.
 
user1182183
2:18 PM
I'd like to play DR2 but the community is dead....
 
user1182183
just because activision suspended the MP servers
 
user1182183
and no-one who will create a MP, even if the source is available
 
user1182183
hehe
 
Ell
dr2? o.O
 
user1182183
Dark Reign 2
 
user1182183
2:19 PM
in 2008 i met really great people there
 
user1182183
I still have contact with most of them
 
Ell
so you want to play this mp but there are no servers? so you want to write your own server?
 
user1182183
yeah, but I am no good in C heh
 
Ell
oh :L
 
user1182183
take a look: https://code.google.com/p/darkreign2/source/browse/source/multiplayer/multiplayer.cpp
is it possible to make a server with this info? If yes I can look for a volunteer :$
 
Ell
2:22 PM
isn't this the source to a server?
 
user1182183
no, the "actual" servers are from a library called WON, the game had only the part where it connects to, the servers of WON weren't 'touchable' by the DR2 devs
 
user1182183
so they didn't give me the source code of it
 
Ell
right. looks like you're going to have to write a server then :L
or get the WON library
 
user1182183
The won library is there, just the won servers are completely shut down xd
 
user1182183
(and the servers source isn't available anywhere)
 
user1182183
2:25 PM
and if you want to buy east.darkreign2.won.net you have to pay something ranging .. above a few thousands of dollars
 
user1182183
>_>
 
user1182183
not something for me..
 
Ell
well if you have the WON library
then you can just compile that server linking against the library
 
user1182183
"TitanAPI"..
 
user1182183
2:27 PM
API :$
 
Ell
hmm
 
user1182183
the DEVS said there was support for directconnect but I dunno howto, well, use it, LAN works GREAT.
 
user1182183
(just hamachi, the monopol giant, limited the users in a network to 5)
 
user1182183
hmm why has regex be so hard to understand
 
Hamachi is hardly the only VPN solution out there.
It just has nice UI for newbs.
 
user1182183
2:35 PM
Any recomendations? :]
 
user1182183
"freeware" plz
 
user1182183
I'm not a noob, I know how to use the console xD
 
You can setup OpenVPN network in 2 or 3 hours.
Only it involves magical stuff like editing configuration, creating and distributing certificates.
 
user1182183
BTW I also thougth about this: I can enable VPN in Windows, so people can connect and use my internet and local lan
 
Hamachi sucks ass.
It causes kernel panics.
 
user1182183
2:36 PM
but when they actually connect, they have connection to my PC biuit not the internet nor my lan
 
ICS is not really VPN.
 
user1182183
just my pc
 
user1182183
how come? O_O
 
user1182183
nono, not ICS, network and config > new incoming connection
 
Dunno, never used that.
 
user1182183
2:37 PM
they actually need to authenticate with username/passwd
 
user1182183
like a real vpn
 
user1182183
just the VPN's I connect to work and give me internet
 
user1182183
but I can't to others? XD
 
It's probably just VPN client combined with ICS sillyness.
 
user1182183
I looked for VPN Server software but I can't find anything, It's all software that let's me connect to someone elses vpn :/
 
2:39 PM
OpenVPN.
 
user1182183
do the ones who connect also require OpenVPN?
 
user1182183
or just the windows VPN client
 
does Stackoverflow use mysql internally?
 
I don't know anything about Windows VPN client.
It's safe to bet you need OpenVPN everywhere.
 
user1182183
its a question about openVPN :P
 
2:40 PM
The client is just double-clicking premade config file.
 
user1182183
for eg , you look with google for "FREE VPN"
 
user1182183
then you get details like IP, username, and password
 
user1182183
you can just connect to that with windows
 
user1182183
and I think openVPN requires the client to have openVPN too?
 
Probably. I don't know what Windows VPN client does, what protocol does it use.
 
user1182183
2:41 PM
hmm lemme look
 
user1182183
takes some time to find..
 
user1182183
well at leats it uses PPTP
 
user1182183
PTPT
 
user1182183
or something like that
 
user1182183
PPTP/L2IP/IPsec/SSTP/IKev2
 
user1182183
2:46 PM
those are all supported by the windows build in vpn cclient
 
user1182183
and maaany encryption protocols
 
Well, go setup OpenVPN network and connect to it with that client.
You'll see if it works.
 
user1182183
and it's a direct connection or do I have to create some account on the openVPN website?
 
It's software, not service. Though they probably do have paid service, too.
 
user1182183
i'm installing it right now, i'll see what will work ^^
 
2:55 PM
afternoon
 
user1182183
3:09 PM
ok configuring takes longer than I thought it will be..
 
user1182183
can anyone help me configuring openVPN ? xD Will give TeamViewer pass ;x
 
char* p = new char[5];
delete[] p;

VS

char* p = new char[5];
char* q = p;
delete[] q;

will the second code have the same result as the first ?
 
user784668
Why does it matter?
 
user784668
In real code you'd use std::vector.
 
i'm just wondering
 
3:28 PM
Hey… anyone have experience with dlib?
Or any kind of secondhand impression?
 
Never heard of it.
@Jonas Yes, it's equally bad.
 
I'm looking for a conjugate gradient solver, and it looks like pretty much the only game in town. Looks pretty good, a broad library of algebra and expression templates… but oddly little evidence of a userbase.
The alternative is to stick with Java. :P
 
Well… pages like that are sort of evidence of a lack of user base. It's been around for a few years at least.
 
3:47 PM
I don't know what planet you're on, but on Jupiter we use std::string for that.
 
new char[] is more appropriate than std::string or std::vector when you want a blob of bytes.
But it's less appropriate than ::operator new() or calloc.
So, there isn't really a good use case that I know of…
 
user784668
@Potatoswatter In C++, a blob of bytes is spelled std::vector<char>.
 
@Fanael Eh… overkill. std::temporary_buffer or whatever it's called, maybe.
 
user784668
Alternatively std::array<char, N> if it's of fixed size.
 
user784668
@Potatoswatter Why is it an overkill?
 
3:52 PM
Because it's resizeable. It has features that end up being dangerous for that use case.
 
user784668
Wrap it if you have to. Or just don't use these features.
 
Wrapping it would be more work than starting from scratch. Hmm, there is no std::temporary_buffer, I was thinking of a GNU extension :(
 
user784668
@Potatoswatter What? How is getting the right copy and move semantics and exception safety from scratch less work than writing a bunch of oneliners?
 
@Fanael There's no copy or move semantics in a blob of bytes.
 
vector doesn't magically resize itself.
 
user784668
3:57 PM
@CatPlusPlus It does on every operator[] call!
 
wut
 
user784668
@Abyx sarcasm
 
ah
 
Anyway… you can derive from std::vector<char> and = delete everything that copies, moves, and resizes, or you can write a constructor that calls operator new and a destructor that calls operator delete and be done with it.
 
3:59 PM
afaik, though, it just devolves straight to new.
 

« first day (645 days earlier)      last day (4303 days later) »