[IMG]http://puu.sh/1LAXs[/IMG]
Ah, i finally got what i wanted.
Tokens get split by a whitespace, whitespaces inside quotes don't count.
Turn those 3 lines of text at the top into a static bar thing using only 1 line. Would look nice.
[QUOTE=Brandy92;39154363]Turn those 3 lines of text at the top into a static bar thing using only 1 line. Would look nice.[/QUOTE]
[img]http://puu.sh/1LBpX[/img]
Okay, i made the console look a bit more sexier. :D
[QUOTE=cartman300;39154525]
Okay, i made the console look a bit more sexier. :D[/QUOTE]
How about what the Python console does. Giving a one line description of what and then giving you 4 functions to print out copyright etc.
[img]http://i.imgur.com/5UvsL.png[/img]
I need to start porting my games server to Linux but I know absolutely fuck all about Linux. Should be fun.
Just to show you guys how that function wizardry is done:
[img]http://i.imgur.com/Mbxke.png[/img]
[QUOTE=Mega1mpact;39154801]Just to show you guys how that function wizardry is done:
[img]http://i.imgur.com/Mbxke.png[/img][/QUOTE]
This only works in python 2, but:
[code]
class face:
def __repr__(self): return 'butts'
`face()`
[/code]
The backtick operator was removed when Python 3 was designed, however. It was 'more effecient' as well, as it resulted in a single instruction being emitted in all cases, whereas the repl (eval, repr, and friends) all emit at least 2.
But if you're trying to optimize your repr() calls in python you are so far up shit creek without a paddle, you're basically going to be experiencing a world of hell cast in the form of reagan's trickle down economics, except its an economy of poop.
[QUOTE=Kamshak;39154119]cool, is it much faster than just xoring 4 bytes?[/QUOTE]
With strings of 2kb and above, it's two to four times faster.
One could probably optimize the function to reduce the overhead some more, making it faster for smaller strings. In particular, I think the alignment could be a lot faster, and GCC doesn't optimize the last array of constants as well as I'd hoped.
[QUOTE=cartman300;39154348][IMG]http://puu.sh/1LAXs[/IMG]
Ah, i finally got what i wanted.
Tokens get split by a whitespace, whitespaces inside quotes don't count.[/QUOTE]
Not to be picky, GPL isn't really "do what you want", BSD or MIT on the other hand...
[QUOTE=ben1066;39155375]Not to be picky, GPL isn't really "do what you want", BSD or MIT on the other hand...[/QUOTE]
I meant "Do what you want as long as you don't sell it".
[QUOTE=cartman300;39155401]I meant "Do what you want as long as you don't sell it".[/QUOTE]
They can still do that though.
[QUOTE=ben1066;39155375]Not to be picky, GPL isn't really "do what you want", BSD or MIT on the other hand...[/QUOTE]
"do what you want so long as you include this license and make it obvious that you're distributing a modified version"? Seems pretty damn close to me, Or did I skip over a major part of the license agreement?
[editline]9th January 2013[/editline]
[QUOTE=cartman300;39155401]I meant "Do what you want as long as you don't sell it".[/QUOTE]
Not really, they can sell it according to the GPLv3 license.
[QUOTE]When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.[/QUOTE]
I never really understood GPL. Can you make a heavily modified version of something that was licensed under GPL and sell the compiled binary of the heavily modified version without having to share the source code?
It's kind of a reason why I never really went into modding the Quake engine, because I don't want to have to pay for a commercial license to keep my source closed.
Granted, selling open source software is dumb, but it's only really stupid on the part of people that actually buy it.
[editline]9th January 2013[/editline]
[QUOTE=Hentie;39155519]I never really understood GPL. Can you make a heavily modified version of something that was licensed under GPL and sell the compiled binary of the heavily modified version without having to share the source code?[/QUOTE]
No. You can sell the compiled binary, but the GPL requires ANY publicly distributed version to be open source.
[QUOTE=ECrownofFire;39155552]Granted, selling open source software is dumb, but it's only really stupid on the part of people that actually buy it.[/QUOTE]
Red Hat would disagree with you.
But that's mainly because it's bad business to call your customers stupid.
[QUOTE=Hentie;39155519]I never really understood GPL. Can you make a heavily modified version of something that was licensed under GPL and sell the compiled binary of the heavily modified version without having to share the source code?
It's kind of a reason why I never really went into modding the Quake engine, because I don't want to have to pay for a commercial license to keep my source closed.[/QUOTE]
[QUOTE]6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:[/QUOTE]
You have to release the source ( from what I understand ).
In terms of open source games what you're actually selling is your content.
[QUOTE=Lexic;39155616]In terms of open source games what you're actually selling is your content.[/QUOTE]
Yeah, even RMS says that selling art assets is okay.
Also bear in mind that "Release the source" does not mean you [i]have[/i] to make it publicly accessible on github or whatever.
Last time I checked all it actually [b]requires[/b] is that if someone writes you a letter including proof of purchase you mail them back your source in printed form.
You certainly don't have to give it to anyone who hasn't paid for the product. (Though anyone who gets it from you can give it to anyone else freely)
[QUOTE=Lexic;39155657]Also bear in mind that "Release the source" does not mean you [I]have[/I] to make it publicly accessible on github or whatever.
Last time I checked all it actually [B]requires[/B] is that if someone writes you a letter including proof of purchase you mail them back your source in printed form.
You certainly don't have to give it to anyone who hasn't paid for the product. (Though anyone who gets it from you can give it to anyone else freely)[/QUOTE]
The terminology is pretty confusing at times, but the last line of that section:
[QUOTE]Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.[/QUOTE]
makes me believe otherwise.
Ah, damnit with the licenses, I'll keep it unlicensed.
[quote]6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
[/quote]
AFAIK boils down to
[quote]
You must do one of these 5 things:
1) If you sell a physical product, include the source with the product
2) If you sell a physical product, include an offer to provide the source in physical form (with a time-limit) or an internet location where the source can be found
3) Above but non-physically
4) If your product is available for download, provide instructions on how to locate and download the source next to the download link
5) chuck it about on the torrents as long as the torrent description offers one of the above
[/quote]
[editline]9th January 2013[/editline]
[QUOTE=cartman300;39155782]Ah, damnit with the licenses, I'll keep it unlicensed.[/QUOTE]
no licence = legally no one may use, edit or even look at your code unless you give them written permission.
Go for the MIT license.
You can sell GPL software.
MIT license master race
[QUOTE=Lexic;39155846]no licence = legally no one may use, edit or even look at your code unless you give them written permission.
Go for the MIT license.[/QUOTE]
...
Okay, i'm totally confused now...
Anyway, i will use MIT license then.
[QUOTE=cartman300;39155976]...
Okay, i'm totally confused now...
Anyway, i will use MIT then.[/QUOTE]
What are you confused about?
All code that you write (unless you write it under the conditions of a contract) belongs privately to you under copyright law.
Unless you explicitly grant permission (Note the first line of the MIT license!) to a person to possess/modify/whatever your code then legally they are not allowed to do anything with your code if they happen to acquire it and the law is on your side should they start doing it.
Even if you put it up on your website for anyone to visit, unless you license it you can sue them for using it. #funfact
Make website, post useful code, wait for big companies to use them, sue, profit.
[editline]9th January 2013[/editline]
Too bad they probably won't do it because there's no license tho
Someone should make a code minimap recorder. I mean these, but animated:
[img]http://i.imgur.com/pF0hZ.png[/img]
[url]http://tldrlegal.com[/url]
Answer to all your license questions.
After a good few hours, I got text working :dance:
[img]http://i.imgur.com/n0NZ9.png[/img]
Sorry, you need to Log In to post a reply to this thread.