• What are you working on?
    5,004 replies, posted
[QUOTE=jmazouri;50114605]You reminded me that I coded a similar thing a few months ago, except with CEFSharp. Yours is probably way smoother, though - mine runs pretty badly in fullscreen because I'm not using GPU acceleration. I threw it up here: [url]https://github.com/jmazouri/Backy[/url][/QUOTE] You did it pretty much the same way, But your code is cleaner. Also regarding github I only use it for big projects, Little onces like this I never use version control for. You would probably be better reading this guys code as it may make more sence, But I will start cleaning mine up today and post it.
[QUOTE=proboardslol;50116875]Bullshitting philosophy. One of these is generated by my program, and the other is written by a famous German Philosopher. Without googling, figure out which is the machine. Rate Rainbow for #1, rate clock for #2 [quote][...] roman or is it perhaps advanced in the [B]thronging brain[/B], but if he had sharply separated ideas. But is merely a subjective, the expression of which is the world, the first volume, also in [B]The loss[/B] of a thought without its sufficient reason. As the form, and indeed in general; phenomena of the will, I.e. Schulze Kritik der Natur, which we are therefore made responsible. Therefore it is always the will to any series of his doctrine, becomes his mind; therefore the sensation and insipid through circumlocution. Towards a connection between a judgment, which this takes place. But for example, the ancient languages, as an accommodation, it is, is to be found blind windows for [...][/quote][/QUOTE] The fact that there is a capital in the middle of the sentence where it doesn't belong makes it pretty obvious.
Hey guys need your opinion Which is more cyber-worldly, and makes you want to play more? Agree for the first image, disagree for the video. [IMG]http://i.imgur.com/0DAUzqm.png[/IMG] Shamelessly copycat-ing superhot visual [video=youtube;SgExOY9mZMM]http://www.youtube.com/watch?v=SgExOY9mZMM[/video]
[QUOTE=helifreak;50117134]The fact that there is a capital in the middle of the sentence where it doesn't belong makes it pretty obvious.[/QUOTE] And the fact that the first extract makes sense and follows a coherent thought, whereas the second one is just a jumble of unrelated words and sentences.
My parser now supports multiple arguments for functions. It's also pretty easy to add new operators and functions. Just instanciating either the operator type or the function type and passing them a delegate is enough. [IMG]http://i.imgur.com/46ChnVF.jpg[/IMG] Next is variable input and output types along probably along with support for multi-line input. [B]Edit:[/B] Nevermind the obvious bug, I noticed and fixed it right after I posted this.
[QUOTE=hakimhakim;50117416]Hey guys need your opinion Which is more cyber-worldly, and makes you want to play more? Agree for the first image, disagree for the video. [IMG]http://i.imgur.com/0DAUzqm.png[/IMG] Shamelessly copycat-ing superhot visual [video=youtube;SgExOY9mZMM]http://www.youtube.com/watch?v=SgExOY9mZMM[/video][/QUOTE] I think they both have their merits. The first one is obviously a more modern and abstract style, but I don't think it represents a cyber world as much as the second style. The second style is similar to what you will often see in 90s movies when they try to depict computers and the cyberworld, and personally I think a style like that could allow for more creativity than the minimalism of superhot.
[QUOTE=BackwardSpy;50117479]And the fact that the first extract makes sense and follows a coherent thought, whereas the second one is just a jumble of unrelated words and sentences.[/QUOTE] Yeah I probably should have chosen a post modernist...
[QUOTE=hakimhakim;50117416]Hey guys need your opinion Which is more cyber-worldly, and makes you want to play more? Agree for the first image, disagree for the video. [IMG]http://i.imgur.com/0DAUzqm.png[/IMG] Shamelessly copycat-ing superhot visual [video=youtube;SgExOY9mZMM]http://www.youtube.com/watch?v=SgExOY9mZMM[/video][/QUOTE] I'd prefer a self-made anime look over a copycatted design :v edit: welp pageking, I wouldn't have posted if I knew. I'm trying to write a working .mid file parser for my piano game so that it can be used for learning songs & autoplaying songs. MIDI really shows its age. Implenting this is kinda annoying, which is making me think about making my own file format. Since the parser isn't working yet, I can only show the video of my game receiving midi signals through a midi channel, sowwy :c [video] [url]https://www.youtube.com/watch?v=aT09uXPYmsQ[/url][/video]
[QUOTE=Tamschi;50116835]I was about to comment this on your original post, but then decided against it :v: A lot of the existing libraries probably don't support it at all, since node's single-threaded (and without coroutines utterly horrible) continuation environment makes some guarantees regarding state integrity during code segments even without atomic operations and explicit synchronisation. It's normally really easy to put in semaphores where absolutely necessary and to avoid the issue elsewhere though. That and most web applications are (hopefully) (a)synced on DB transactions anyway so there wouldn't really be an issue in the problem semantics.[/QUOTE] To be honest, I'm not exactly sure what kind of witchcraft JavaScriptCore is doing under the hood.. This works without any synchronization primitives at all: [IMG]https://dl.dropboxusercontent.com/u/27714141/Screenshot%20from%202016-04-12%2018-25-34.png[/IMG] Shouldn't this string get corrupted at one point?
[QUOTE=voodooattack;50119198]To be honest, I'm not exactly sure what kind of witchcraft JavaScriptCore is doing under the hood.. This works without any synchronization primitives at all: [IMG]https://dl.dropboxusercontent.com/u/27714141/Screenshot%20from%202016-04-12%2018-25-34.png[/IMG] Shouldn't this string get corrupted at one point?[/QUOTE] I don't know how Javascript handles multithreading. But in most other languages, data could(probably) be lost when two threads read and write to the same memory location at the same time.
[QUOTE=FalconKrunch;50119320]I don't know how Javascript handles multithreading. But in most other languages, data could(probably) be lost when two threads read and write to the same memory location at the same time.[/QUOTE] Yeah, I think everything is atomic in JavaScriptCore from what I've seen.
It's all fun and dandy until deadlock occurs.
[QUOTE=Fourier;50119460]It's all fun and dandy until deadlock occurs.[/QUOTE] I've been trying to induce a deadlock but I couldn't so far. This is so weird.
They occur at the brightest times, when you think you have it all figured out.
[QUOTE=voodooattack;50119198]To be honest, I'm not exactly sure what kind of witchcraft JavaScriptCore is doing under the hood.. This works without any synchronization primitives at all: [IMG]https://dl.dropboxusercontent.com/u/27714141/Screenshot%20from%202016-04-12%2018-25-34.png[/IMG] Shouldn't this string get corrupted at one point?[/QUOTE] Strings are implemented as ropes in most JS engines, so probably not. But of course "probably" is an extremely dangerous word in multi-threading... Or anywhere, for that matter. [editline]12th April 2016[/editline] It does appear that JavaScriptCore uses ropes as well, from a quick glance at the source: [url]http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/runtime/JSString.h#L209[/url] [code]// A string is represented either by a String or a rope of fibers.[/code] [editline]12th April 2016[/editline] So basically it really depends on how you're serializing the access to the string. [editline]12th April 2016[/editline] Try timing the equivalent completely sequential code and the parallel version? [editline]12th April 2016[/editline] Oh wait, are you synchronizing console output? [editline]12th April 2016[/editline] Am I asking too many questions?
Stochatta is up, not complete though, but you can generate some sentences. Wait a few seconds for the sentence to load. [url]http://alissa.ninja/stochatta/[/url]
I made a markov bot whose corpus is public streaming twitter posts
[QUOTE=Map in a box;50119839]I made a markov bot whose corpus is public streaming twitter posts[/QUOTE] We've been over this; she'll become a neo nazi
[QUOTE=proboardslol;50119981]We've been over this; she'll become a neo nazi[/QUOTE] She was a neo nazi non-aryan hating demon lord whose sole goal was to take over the planet and enforce her policies. I basically recreated Tay. [editline]12th April 2016[/editline] What is a question anyway
[QUOTE=ECrownofFire;50119623]Strings are implemented as ropes in most JS engines, so probably not. But of course "probably" is an extremely dangerous word in multi-threading... Or anywhere, for that matter. [editline]12th April 2016[/editline] It does appear that JavaScriptCore uses ropes as well, from a quick glance at the source: [url]http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/runtime/JSString.h#L209[/url] [code]// A string is represented either by a String or a rope of fibers.[/code] [editline]12th April 2016[/editline] So basically it really depends on how you're serializing the access to the string. [editline]12th April 2016[/editline] Try timing the equivalent completely sequential code and the parallel version? [editline]12th April 2016[/editline] Oh wait, are you synchronizing console output? [editline]12th April 2016[/editline] Am I asking too many questions?[/QUOTE] I'm not doing any synchronization of any kind.
[QUOTE=hakimhakim;50117416]Hey guys need your opinion Which is more cyber-worldly, and makes you want to play more? Agree for the first image, disagree for the video. [IMG]http://i.imgur.com/0DAUzqm.png[/IMG] Shamelessly copycat-ing superhot visual [video=youtube;SgExOY9mZMM]http://www.youtube.com/watch?v=SgExOY9mZMM[/video][/QUOTE] They're very different approaches. I think Superhot has a lot more polish and overall makes better design choices, but that doesn't mean your approach by itself is necessarily wrong. (It really needs a lot of polish and revisiting of certain choices though, since it's not very user-friendly right now.)
[QUOTE=proboardslol;50119803]Stochatta is up, not complete though, but you can generate some sentences. Wait a few seconds for the sentence to load. [url]http://alissa.ninja/stochatta/[/url][/QUOTE] I hadn't ever heard of markov chains until I saw them in this thread, and I got inspired to try my hand at making one, but my implementation doesn't work anywhere near as well as the others I've seen here. [IMG]http://puu.sh/ogcry/9597ea09e8.png[/IMG] This is from some woodworking book I grabbed from project gutenberg. It doesn't get caught up looping as much with larger sample texts, but even then it takes several tries to get a single reasonable sentence.
Working on some uni assignments, where it's clear that Windows handles networking differently from Linux. This example is from my linux workstation, and 10-11 seconds is about the average time it takes to scan the full port range using normal TCP connect. [IMG]http://i.imgur.com/VHBeuGG.png[/IMG] However, when I ran the same code on Windows, it took well over 2 minutes to scan the local machine. :why: [editline]13th April 2016[/editline] [QUOTE=CopperWolf;50121965]I hadn't ever heard of markov chains until I saw them in this thread, and I got inspired to try my hand at making one, but my implementation doesn't work anywhere near as well as the others I've seen here. [IMG]http://puu.sh/ogcry/9597ea09e8.png[/IMG] This is from some woodworking book I grabbed from project gutenberg. It doesn't get caught up looping as much with larger sample texts, but even then it takes several tries to get a single reasonable sentence.[/QUOTE] Looks pretty good, how large is the search tree for that? I recently did a really bad implementation of Markov chains at a hackathon. It used definitions from Urban Dictionary to generate the text.. [t]http://i.imgur.com/Tf60ViT.png[/t]
[QUOTE=CopperWolf;50121965]I hadn't ever heard of markov chains until I saw them in this thread, and I got inspired to try my hand at making one, but my implementation doesn't work anywhere near as well as the others I've seen here. [IMG]http://puu.sh/ogcry/9597ea09e8.png[/IMG] This is from some woodworking book I grabbed from project gutenberg. It doesn't get caught up looping as much with larger sample texts, but even then it takes several tries to get a single reasonable sentence.[/QUOTE] How many prior words is yours looking for? I'm using 3rd order markov chains, which means that it uses the last 3 words to check for what the next word ought to be. Actually, mine get 3rd, 2nd, and 1st order markov chains, and then select which one is the most relevant via a log function, so that 30 occurrences of a 3rd order markov chain is more relevant than 80 occurrences of a 1st order chain. Also what words are you selecting? are you including punctuation as a separate word, or do you tack the punctuation to the end of words and call it a single word? I've found that the more vague the source material is, the more sense the sentences make. I truncated my database of "war and peace" and replaced it with philosophy books by german philosophers. Real philosophy sounds vague enough to a non-philosopher that computer-generated philosophy may imitate reality. I'm basing this idea after the Sokal Hoax, where a physics professor published a philosophy paper in a respectable philosophy journal that was total nonsense to prove that philosophy as an academic discipline has fallen a long way since its Kantian and Cartesian foundings
[QUOTE=NicDasomeone;50121982] Looks pretty good, how large is the search tree for that? [/QUOTE] I didn't use any kind of tree structure, just python dictionaries. Although for all I know, those could have some kind of trees in them. The source text for this was only 56 KB, minuscule compared to the 4,329 KB KJV bible I was originally using. I switched over because the runtimes were ridiculous on the bible. A separate preprocessing step converts those 56 KB to 225 KB of specially-formatted text that can be loaded into a markov chain faster than plain text, so that I only get horrible runtimes during the first preprocessing. [QUOTE=proboardslol;50122071]How many prior words is yours looking for? Also what words are you selecting? are you including punctuation as a separate word, or do you tack the punctuation to the end of words and call it a single word? [/QUOTE] It only does first-order, but during preprocessing I can specify whether to make links out of characters or out of words, as well as how many characters/words to use in each link. The segment I posted was made from 2-word segments. Usually if I go by 1-word segments it's total gibberish, but 3 or more and it just quotes the source verbatim. I've had decent results with 7-character links, too, but going by character can make it invent new words. Punctuation is considered part of the word it follows. Also the space after each word is part of the word. I considered using higher-order chains, but I'd have to overhaul a significant portion of my code to do that, and I'm far too lazy for that.
[QUOTE=CopperWolf;50122168]I didn't use any kind of tree structure, just python dictionaries. Although for all I know, those could have some kind of trees in them. The source text for this was only 56 KB, minuscule compared to the 4,329 KB KJV bible I was originally using. I switched over because the runtimes were ridiculous on the bible. A separate preprocessing step converts those 56 KB to 225 KB of specially-formatted text that can be loaded into a markov chain faster than plain text, so that I only get horrible runtimes during the first preprocessing. It only does first-order, but during preprocessing I can specify whether to make links out of characters or out of words, as well as how many characters/words to use in each link. The segment I posted was made from 2-word segments. Usually if I go by 1-word segments it's total gibberish, but 3 or more and it just quotes the source verbatim. I've had decent results with 7-character links, too, but going by character can make it invent new words. Punctuation is considered part of the word it follows. Also the space after each word is part of the word. I considered using higher-order chains, but I'd have to overhaul a significant portion of my code to do that, and I'm far too lazy for that.[/QUOTE] Sounds pretty good! Have you ran it against a much larger text to see how the output changes? I ended up using 8 character steps, with a search-tree-ish JSON object. Turns out that loading, and then subsequently parsing a 5MB JSON object for every 8 characters will very nearly kill your computer.
[thumb]http://51.254.129.74/~anon/files/1460518542.png[/thumb] [thumb]http://51.254.129.74/~anon/files/1460518399.png[/thumb] Road rendering! The road is defined as a single line in the Tiled map editor.
speaking of markov chains, I've made my own pretty recently. i neglected a small mountain of homework and i have two midterms tomorrow. whatever. i think it was worth it. here's some samples of what it put out. I threw in a university alert message, some crappy gary stu love story one of my high school classmates wrote (its so bad i remember it to this day), and some shitty memes [quote] The University Police Department reminds the campus community to be a creep University Police Department is currently investigating a suspicious incident which occurred in a hovel hahahaha, you live in a hovel hahahaha sorry that wasnt flirting I swear Im just trying to be aware of your surroundings and notify the police immediately if you see anything suspicious. She WAS a goddess doing something even the bravest soldier would not dare do: confess his true feelings to his love. I collapsed on my desk. I have over 300 confirmed kills. Unlike engineering, there's no aspect of engineering than any actual engineer, but I've met lots of other engineers who aren't as good as me at physics, so I'm guessing that's not just any book, but The Fault in Our Stars. My heart wrenched in pain. The Fault in Our Stars was Lily's and my favorite tree in the face of the continent, you little shit. Alert: The University Police Department reminds the campus community to be a way where I can be anywhere, anytime, and I think you're CuTe. our conversations included talking about John Green's greatest work, and wishing for a broken nose without fighting back or seeking retribution, because the perfect guy, and it's because the perfect guy, and it's because the guy stopped punching after that. Alert: The University Police Department reminds the campus community to be aware of her presence I was worried. Her eyes held something horrible, as if she witnessed a tragedy. Was the tragedy me? Wow. I really love Jo? I was scared. You were the most brilliant guy I ever knew, and you will drown in it. You're fucking dead, kiddo. Alert: The University Police Department reminds the campus community to be your girlfriend. I reacted too quickly, said no, and hooked up with another guy that same day. That night of the white roses. Hi *REDACTED* I didn't see you at least I would have held your fucking tongue. But you should listen to me. Sam and I have hungaround this girl for more than a year before falling in love. The two of us started out as usual. I should do something impossible. I sighed and told me on the cheek, and gazed at me with a victim inside showering. The suspect fled in an unknown male suspect entered the women's restroom and opened the shower curtain with a look I couldn't recognize. I looked at her in amazement. At first, they didn't notice our presence, then Jo cleared her throat. Then and again, she could have just made up the whole thing about Jori and told me on the cheek, and gazed at me challengingly. Apparently so, Jo. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will wipe you the fuck out with precision the likes I went over to a small cafe near our school after school and drank. I drank until I was still depressed about the ones who aren't as good as me at physics [/quote] honestly, i did his shitty story a favor
Just did a technical interview at Curve Fever. Full-time Unity C# programmer so it'd be quite a cool gig. I think it went well. The interviewer had to point out some small mistakes in the algorithm but overall it's fine. I also wrote it quite well, and documented it well. I could notice that that was very much appreciated. I ended up reducing a 4-deep nested for loop, even though I didn't have all the time in the world. Once the interview was over I realized I made a dumb mistake where I used int* instead of int**, but that's ok. Not going to be paranoid over it. I'll hear tomorrow if they want to invite me over for a full interview.
[QUOTE=Asgard;50123658]Just did a technical interview at Curve Fever. Full-time Unity C# programmer so it'd be quite a cool gig. I think it went well. The interviewer had to point out some small mistakes in the algorithm but overall it's fine. I also wrote it quite well, and documented it well. I could notice that that was very much appreciated. I ended up reducing a 4-deep nested for loop, even though I didn't have all the time in the world. Once the interview was over I realized I made a dumb mistake where I used int* instead of int**, but that's ok. Not going to be paranoid over it. I'll hear tomorrow if they want to invite me over for a full interview.[/QUOTE] Nice! I once sent idea of new snake game to them but never got an reply. I think you will have nice time there.
Sorry, you need to Log In to post a reply to this thread.