[QUOTE=FoohyAB;49141516][video]https://youtu.be/aUm5SmrYI-A[/video]
Collisions in ue4 'just work' and I love it[/QUOTE]
lil' crosspost from the ue4 thread because my life is music visualizers apparently
Boss man came into my office today. I'm at 50% for my 11wk co-op, and he wanted to talk about how it'll end. He said typically they wait til week 10 to discuss this, but he said they already know...
They want to transition my co-op directly into full-time employment by January. I'm so ecstatic, and it hasn't even really hit me yet. Just wanted to share my happiness :)
Content:
CSV is a shit format. That table formatter I posted the other day has a CSV counterpart, and today I experimented with expanding lists and objects into columns a la 'objectname.propertyA', 'objectname.propertyB', 'listname.1', 'listname.2'...
[img]http://i.imgur.com/1q8WKsP.png[/img]
Actually got around to optimizing the Table formatter however, it now wraps content better and is about 200% faster. :)
[QUOTE=garry;49140845]We like to call it LuaShit[/QUOTE]
Every so often Garry, as his father Zeus did before him, comes down from Mt. Olympus to fraternize with the commoners and impregnate human women
I've been doing a bunch of small things here and there over the past few days.
Firstly, at the recommendation of one of my friend's, I finally decided to start learning how to use some versioning control, specifically Bit Bucket.
I set up a couple repo's and got everything working.
Secondly, I did a whole bunch of optimizations for billboard detailing. Before, I would bind a unique texture for every point that needed to be sent to the geometry shader, but now I finally use a sprite sheet and just vary the texture coordinates (now avoiding having to do a loop on the cpu, greatly decreasing frame time)
Lastly, everything that was just done in the editor now got ported over to my separate engine.
The performance gap is incredible.
This scene contains over 720k detail sprites (some with more vertices than others). In my level editor I get 4 fps, but in my engine I get 60 fps, and I'm not doing any sort of culling whatsoever.
[t]http://i.imgur.com/ni8inrJ.png[/t]
Progress!
So are lambdas functional programming? If so, are function pointers lambda? and if so, is C functional?
either war, how did anybody do anything ever without some kind of lambda? I'm doing some Java stuff and have to install openjdk 8 to get lambdas.
[editline]19th November 2015[/editline]
But you can't use arguments with anonymous functions...
why the fuck does anyone use java?
(I'm using it because though 99% of what I'm trying to do is do-able in C, the tool (byacc) for C is way less comprehensible than for Java (javacc))
I think you can use arguments, like this:
[code](int firstArg, String secondArg) -> /* do something */;[/code]
[QUOTE=proboardslol;49144445]-snip-[/QUOTE]
Languages are different? Who knew?
a few melee attacks!!!
「JANKENPON」 - punches three times really fast in succession
[IMG]http://38.media.tumblr.com/ceb654e221bacbcf33e10f445f875050/tumblr_inline_ny00cxaSN91sbsrdl_500.gif[/IMG]
「CHARGE UPPERCUT」 - charges aura up and releases it as a punch
[IMG]http://31.media.tumblr.com/a71603df7291a3d027ad3dccfa24fa1a/tumblr_inline_ny00dkZe8w1sbsrdl_500.gif[/IMG]
「GUARD BURST」 - takes a defensive stance against bullies and charges aura up, releasing it later dealing damage to everyone nearby
[IMG]http://33.media.tumblr.com/369902c9e2ff72f0aa4ea7aa53817360/tumblr_inline_ny00hd3Lmr1sbsrdl_500.gif[/IMG]
「HOWLING GALE」 - dash forwards so fast that after a moment the time of opponents is compressed, leaving them open to multiple attacks
[IMG]http://33.media.tumblr.com/dec3323703194d4539c52691f3155e2e/tumblr_inline_ny00l3boAX1sbsrdl_500.gif[/IMG]
Functional languages hurt my brain.
languages with functions and conditionals hurt my brain
Working on Rant syntax highlighting for Atom.
[img]http://i.imgur.com/dYyLCDo.png[/img]
Once you hit 300MB JSON files you should really start considering binary formatting or protobuf or something.
[img]http://i.imgur.com/bEA6JPJ.png[/img]
[QUOTE=Berkin;49148528]Working on Rant syntax highlighting for Atom.
[img]http://i.imgur.com/dYyLCDo.png[/img][/QUOTE]
Also consider doing some autocomplete functions, it's very easy to implement in Atom and helps users alot!
My current project is not very interesting: A C#/.NET Client for Meteors DDP Protocol. ([URL="https://github.com/JohnnyCrazy/DDPClient-NET"]DDPClient-NET[/URL])
Meteor is a pretty cool real-time web-framework and became very popular the last months/years. With the C# Client you would be able to do real-time desktop apps connected to some Web-Interface.
It features authentication, remote method-calling and receiving live data from MongoDB (which is used by meteor). There were some other clients, but they were either outdated or did implement it in a strange way. It's not finished yet, but should be soon.
[QUOTE=Berkin;49130716]Ah yes. Thank you for reminding me why I stopped doing Android dev.
Oh and [I]fuck[/I] Gradle in particular.[/QUOTE]
but what I want seems SO simple
it seems SOO doable
and I need it SOOO much
but I'm watching these udacity videos just to figure out what the fuck xml is
[QUOTE=POLOPOZOZO;49149295]but what I want seems SO simple
it seems SOO doable
and I need it SOOO much
but I'm watching these udacity videos just to figure out what the fuck xml is[/QUOTE]
What exactly is the complication here? If you're having trouble understanding Activities, literally the most basic unit of an Android application, I don't think the problem is with Android.
[editline]20th November 2015[/editline]
Gradle is really lame though.
[QUOTE=Rocket;49149406]He seems to have a problem with understanding XML so I think he might be in a little too much over his head.[/QUOTE]
I think I'm getting POLO and Berkin's posts mixed up, my bad. POLO, you're off the list. Berkin, you're on it.
[QUOTE=Berkin;49148528]Working on Rant syntax highlighting for Atom.
[img]http://i.imgur.com/dYyLCDo.png[/img][/QUOTE]
Any chance you'd do this as a TextMate theme? They work in Sublime and VS Code.
[editline]xx[/editline]
PSA on that note, [URL="https://code.visualstudio.com/Updates"]VS Code just went beta, open source, and gained plugin support[/URL].
Applied to be an adjunct prof of comp sci at my community college.
While I'm still attending
Well shit, APM absolutely refuses to properly publish my package, so it looks like I won't be able to put it online. It's technically [I]there[/I], but APM keeps giving me "tag creation failed" errors, then shuts down. Oh, and if I try to unpublish the package to do it over again, it says I'm "unauthorized".
Now I'm basically barred from using the "language-rant" name on APM, and I can't properly publish a package with any other name. Just fucking great.
[QUOTE=Rocket;49147417]No, no, and no. Lambdas are anonymous functions, the mere existence of them doesn't make a language functional. Function pointers are not anonymous.
Functional programming is based on lambda calculus. Basically, it means there's no state. A function's output depends only on its input, so there are no side effects.[/QUOTE]
I don't understand, how can you do something without state? This has been an issue for me trying to pick up functional languages, I just don't understand how something can not have state.
[QUOTE=Ac!dL3ak;49150293]I don't understand, how can you do something without state? This has been an issue for me trying to pick up functional languages, I just don't understand how something can not have state.[/QUOTE]
Think about how you use strings. Strings are immutable. What happens when you want a new one? You give it to a function, it creates a new one with the change. Now if you represented your class as a string (like JSON), and you directly passed every string-class that gets changed by a function and it gave you new string-classes back, then suddenly you don't have state any more and your program still works.
Plus, you have guarantees about what your function will do. No longer will it give non-deterministic output for the same input, assuming you use deterministic library calls and shit like that.
[QUOTE=DoctorSalt;49150318]Think about how you use strings. Strings are immutable. What happens when you want a new one? You give it to a function, it creates a new one with the change. Now if you represented your class as a string (like JSON), and you directly passed every string-class that gets changed by a function and it gave you new string-classes back, then suddenly you don't have state any more and your program still works.
Plus, you have guarantees about what your function will do. No longer will it give non-deterministic output for the same input, assuming you use deterministic library calls and shit like that.[/QUOTE]
This doesn't apply anywhere close to everywhere in functional programming though.
The only language I know of that does this consequently (cumbersomely) is Haskell.
Got anonymous functions to work in Java! really cool workaround I found from [url=http://stackoverflow.com/questions/5107158/how-to-pass-parameters-to-anonymous-class]this dude[/url] on stackoverflow. Java is the best language ever now!
I remember there was a dude on MXC once. I forget the teams, but one was something like "manic depressives". One contestant was supposed to represent bipolarism. He comes out and goes "YEAH I CAN DO THIS!", gets knocked out almost immediately and screams "I'M SUCH A DISAPPOINTMENT WHY WAS I BORN" as he falls to the water below
This is my interaction with technology.
[editline]20th November 2015[/editline]
this is it haha (starts at 7:21)
[url]https://youtu.be/rgeDmggSfOA?t=7m21s[/url]
[QUOTE=Sidneys1;49149642]Any chance you'd do this as a TextMate theme? They work in Sublime and VS Code.
[editline]xx[/editline]
PSA on that note, [URL="https://code.visualstudio.com/Updates"]VS Code just went beta, open source, and gained plugin support[/URL].[/QUOTE]
I'm not familiar with how to create a TextMate bundle, but I'll look into it.
[editline]20th November 2015[/editline]
[URL="https://atom.io/packages/rant"]psst[/URL]
[QUOTE=Ac!dL3ak;49150293]I don't understand, how can you do something without state? This has been an issue for me trying to pick up functional languages, I just don't understand how something can not have state.[/QUOTE]
It's not without state. The state is just explicitly passed.
[QUOTE=Tamschi;49150583]This doesn't apply anywhere close to everywhere in functional programming though.
The only language I know of that does this consequently (cumbersomely) is Haskell.[/QUOTE]
Never really been a problem to be honest.
so i'm playing around with nextbots
spent all day making sure that these assholes try to give way to the player instead of just walking through him
[vid]http://files.1337upload.net/Desktop_11.20.2015_-_22.29.35.04.webmhd-f30fc0.webm[/vid]
right now the player gets stuck for a couple of fractions of a second when passing through crowds, but it's already a lot better than it was previously
i wonder if i could improve it by disabling collisions between the npcs and the player entirely and slowing down the player whenever he's passing through crowds
[QUOTE=Darwin226;49151274][...]
Never really been a problem to be honest.[/QUOTE]
I know it's not an issue for everyone :v:
Personally I prefer mixed-paradigm languages like F#, but now with C# 6 I currently don't have much incentive to use it. (F#'s class definitions are too verbose in comparison, unless that changed recently.)
The main difference for me is that it's a bit easier to reuse generic code in F#, but C# generics are good enough for most of what I do.
[editline]20th November 2015[/editline]
[QUOTE=Rocket;49151762]A better way to put it is "without mutable state." Once you define something, it's going to be equal to that in that scope forever. x = 1? x had better always equal 1.[/QUOTE]
However, there could be [I]another[/I] x that hides the previous x and says "" instead.
F# and whatever it's based on (OCaml?) support this iirc. It's pretty useful (though I assume bad style to some).
[editline]20th November 2015[/editline]
Interesting, editing that post broke the 👌 I pasted in there.
[QUOTE=Tamschi;49153778]I know it's not an issue for everyone :v:
Personally I prefer mixed-paradigm languages like F#, but now with C# 6 I currently don't have much incentive to use it. (F#'s class definitions are too verbose in comparison, unless that changed recently.)
The main difference for me is that it's a bit easier to reuse generic code in F#, but C# generics are good enough for most of what I do.
[/QUOTE]
It of course depends of what sort of code you're writing, but in the F# projects I work on there are relatively few full-blown classes. Records, ADTs and (named*) tuples are a lot more important, as they are trivial to create, in 1/20th of code what it would take in C#.
* You can have tuples with named members if your tuple is a part of a (single-case) ADT
[code]
type Person = Person of name: string * bornOn: DateTime
[/code]
[img]http://i.imgur.com/kHKWn9r.png[/img]
If anybody remembers, i once told i should write a tool that takes a dll that's written in VC++ as input and then gets all the exported functions inside, unmangles them and generates a .NET wrapper.
Well, i started working on it.
[url]https://msdn.microsoft.com/en-us/library/windows/desktop/ms681400%28v=vs.85%29.aspx[/url]
[editline]20th November 2015[/editline]
and undname
Sorry, you need to Log In to post a reply to this thread.