• What are you working on? January 2012
    3,401 replies, posted
[QUOTE=amcfaggot;34435136]i should have clarified. thread safety with lua must start at lua, otherwise you need to create multiple lua states[/QUOTE] That's exactly what I am doing now.
I just noticed you can import GitHub projects on Stack Overflow Careers. Pretty cool, I guess.
[QUOTE=horsedrowner;34434810][B]YES PLEASE.[/B] I know the Metro UI but I have no idea how I'm going to make a sexy design for this. Login screen. If you have [I]Remember password[/I] checked, it will automatically log in. [img]http://dl.dropbox.com/u/764206/WP7/Facepunch/Login_1.png[/img] Forums. Right now, clicking only gives a popup with the amount of users viewing clicked forum, and its ID. [img]http://dl.dropbox.com/u/764206/WP7/Facepunch/Forums_1.png[/img] Read threads. It's really fucking ugly, but again, shows that it works at least. [img]http://dl.dropbox.com/u/764206/WP7/Facepunch/Read_1.png[/img] Right now, implementing the Facepunch API is the most work. It's not difficult, but it is time consuming.[/QUOTE] Nice progress man! Great to see stuff coming out of the API so quickly.
Decided against text menu bars, they don't really seem to fit in with the rest of the layout. Discovered you can receive hotkeys by filttering events at application level as well, which nullifies my other reason for using them. I was thinking of either a silk toolbar like this: [img]http://i.imgur.com/leAbz.png[/img] Or just stick with my tabs, like this: [img]http://i.imgur.com/AMYHG.png[/img] The toolbar doesn't look quite right, and the tabs feel a little bit clunky. Which would you guys rather use? (informative for toolbar, heart for tabs?)
please don't use silk icons to use silk icons [editline]28th January 2012[/editline] the latter is a definite no, by the way
[url]http://puu.sh/eUc2[/url] Seaways
[QUOTE=amcfaggot;34435696]please don't use silk icons to use silk icons [editline]28th January 2012[/editline] the latter is a definite no, by the way[/QUOTE] I like silk icons :(
[QUOTE=Maurice;34435761]I like silk icons :([/QUOTE] I think he's saying not to use them just for the sake of using silk icons. Use them only when you actually need icons.
[QUOTE=amcfaggot;34435696]please don't use silk icons to use silk icons [editline]28th January 2012[/editline] the latter is a definite no, by the way[/QUOTE] So... don't use icons? Use a different icon set? I only put them up for the sake of asking you guys, they just happened to be the closest icons to hand. Do you think a textual menu bar would be better?
[QUOTE=r0b0tsquid;34435891]So... don't use icons? Use a different icon set? I only put them up for the sake of asking you guys, they just happened to be the closest icons to hand. Do you think a textual menu bar would be better?[/QUOTE] I say use silk icons. They may be overused but I don't think that's necessarily a bad thing. They look professional and appealing.
hah [editline]28th January 2012[/editline] if you need to use icons don't immediately turn to silk every single time, there are a large variety of other good looking icon sets out there, sometimes far more appropriate for what you're dealing with in different cases
This is a nice icon set I found recently [url]http://somerandomdude.com/work/iconic/[/url] [img]http://somerandomdude.com/wp-content/images/pages/iconic/icons_preview.png[/img]
Anyone know of any Squirrel tutorials? mainly embedding and using variables from a nut file?
[QUOTE=Intel 8080;34432208]You should put a LOCK prefix on the XCHG instruction, otherwise if two cores end up on the XCHG instruction in a decent sync, both will acquire the lock And you should really put a PAUSE instruction in there too, otherwise it'll be detecting possible memory order violations which slows it down a lot while its checking for them[/QUOTE] LOCK is not necessary on XCHG
[QUOTE=Ortzinator;34436468]This is a nice icon set I found recently [url]http://somerandomdude.com/work/iconic/[/url] [img]http://somerandomdude.com/wp-content/images/pages/iconic/icons_preview.png[/img][/QUOTE] A nice replacement of the silk icons for solid color style themes? Most excellent.
I made an interesting, but horribly slow not really cellular automaton while testing something: [IMG]http://dl.dropbox.com/u/5013896/forum/Facepunch/Programming%20WAYWO/1.21012/Cellular.png[/IMG] Colors spread to the right and down. Larger areas have precedence of smaller ones, wich is where these rectangular wrinkles come from. In other news, Firefox is now faster than Chrome again on my computer: [IMG]http://dl.dropbox.com/u/5013896/forum/Facepunch/Programming%20WAYWO/1.21012/1337%20Tabs.png[/IMG] I use Load Tabs Progressively, so I didn't notice them piling up. The exact number is completely accidental :v:
[QUOTE=swift and shift;34437272]LOCK is not necessary on XCHG[/QUOTE] XCHG is one of the like 30 instructions that LOCKS actually implemented on (most throws an UD), if it was unnecessary, why would they implement it on XCHG? I'm fairly sure that XCHG does not lock the bus between the read and write My point about PAUSE still stands though EDIT: Okey, I re-read the manuals, you're correct about what you said, its kind of stupid though, probably most XCHG's executed will not require a lock, and be slowing the entire processor down when its not required [quote]If a memory operand is referenced, the processor’s locking protocol is automatically implemented for the duration of the exchange operation, regardless of the presence or absence of the LOCK prefix or of the value of the IOPL. (See the LOCK prefix description in this chapter for more information on the locking protocol.)[/quote]
[IMG]http://i.imgur.com/rtuYc.png[/IMG] after small refactors in the api's design, i wrote up a test script which completes the full login process and gives you an access token which can be used for other fun i'll publish the api updates soon
[QUOTE=Intel 8080;34437894] My point about PAUSE still stands though [/QUOTE] Your point is somewhat valid, but if you're after great performance, you're not going to be using a spinlock anyway
I have been testing out my udp network layer and can't really think of how I should manage the packets correctly. I am thinking about just making a server and client version of the packet manager. But I can't decide dsjghurhgowuirhgisfhgjkdsfgh
[QUOTE=swift and shift;34438246]Your point is somewhat valid, but if you're after great performance, you're not going to be using a spinlock anyway[/QUOTE] If you wanted great performance, you should probably either do something else if the lock is already taken by another thread, or write the code so a lock is not needed In some cases a spinlock is the best thing to do though
Enhanced the hud and working on buildings right now. Will add some rpg elements later. [URL=http://imageshack.us/photo/my-images/851/totallyhappy.png/][IMG]http://img851.imageshack.us/img851/3882/totallyhappy.png[/IMG][/URL]
[QUOTE=Hexxeh;34428839] Sending the userID/username and password hash is effectively unavoidable, one of the side effects of the fact it's a scraping API. If anything, access via the API is more secure than accessing Facepunch normally, since you have the option of SSL. [/QUOTE] It would make more sense to use something like OAuth. Since you're providing the API you can take the user's credentials and issue access tokens for external applications to use. It would be more "secure" if the provider were facepunch.com, but it's still safer than letting any application take the credentials and pass on the md5'd hash.
[QUOTE=Sebixxx;34438295]Enhanced the hud and working on buildings right now. Will add some rpg elements later. [URL=http://imageshack.us/photo/my-images/851/totallyhappy.png/][IMG]http://img851.imageshack.us/img851/3882/totallyhappy.png[/IMG][/URL][/QUOTE] That looks awesome. I have two questions: What is it written in? Are you using a library for physics/collision detection, or did you write it yourself? Also, that's a really nice color scheme
[QUOTE=swift and shift;34438246]Your point is somewhat valid, but if you're after great performance, you're not going to be using a spinlock anyway[/QUOTE] [QUOTE=Intel 8080;34438290]If you wanted great performance, you should probably either do something else if the lock is already taken by another thread, or write the code so a lock is not needed In some cases a spinlock is the best thing to do though[/QUOTE] congrats to both of you on your wonderful discussion about performance, because implementing lock/unlocks to lua degrades performance dramatically in any circumstance
Experimenting with terrain generation again: [img]http://i.imgur.com/72JX3.png[/img]
Well, enough about that. The lock now us used only for setting a var which needs to use a global variable. Oh, I also implemented a Lock function for Lua so you can be sure another Lua state won't be modifying a file while another is. Locking twice on the same state won't halt either: [lua] Lock(function() Print("This is a test: ") Lock(function() Print("Okay\n") end) end) [/lua] Outputs: This is a test: Okay Now for the fun part: [url]http://self.arb0c.net/chat.lua[/url]
[img]http://puu.sh/eWa6[/img] Shit... :v:
[QUOTE=bobthe2lol;34439430][img]http://puu.sh/eWa6[/img] Shit... :v:[/QUOTE] And why is that relevant to this thread?
[img_thumb]http://i.imgur.com/6re6C.png[/img_thumb] My First steps into actual legit programming. Edit: Yes, that is an acii Mandelbrot :3
Sorry, you need to Log In to post a reply to this thread.