|
also some papers i skimmed http://lite.mst.edu/media/research/ctel/documents/LITE-2003-04.pdf http://www.sciencedirect.com/science/article/pii/S0169814100000251 first one has some relevant sounding refs im strugglin to track down (like LCD legibility under different lighting conditions as a function of character size and contrast)
|
# ? Mar 19, 2014 23:44 |
|
|
# ? Jun 11, 2024 08:09 |
|
python is pretty great...
|
# ? Mar 19, 2014 23:44 |
|
a dark editing area within a light frame that has light ui elements in it just looks like my text editor has gangrene or something, idk there's just something offputting about it. very few programs do dark ui in an aesthetically pleasing way. usually they use #FFFFFF text on a dark grey background (which looks awful) when what they need to use a slightly lighter grey for the text, but that's just like the basic poo poo they'd need to get right.
|
# ? Mar 20, 2014 00:08 |
|
which is why sublime text is great, too bad it's just a text editor I tried making intellij look like sublime but ended up with crappy random UI elements that cannot change color, font misalignments, and just general bullshit like crazy highlight colors that don't invert properly.
|
# ? Mar 20, 2014 00:21 |
|
Nelson MandEULA posted:python is pretty great... nah.
|
# ? Mar 20, 2014 00:25 |
|
python is the language we deserve, not the language we want
|
# ? Mar 20, 2014 00:27 |
|
python is pretty great for quickly prototyping an algorithm and then when things get serious 'import numpy' and/or make c code out of it with cython
|
# ? Mar 20, 2014 00:41 |
|
Shaggar posted:
has anyone figured out a good way to represent lambdas in traditional brace/block structured languages? or is it practically impossible without significantly overhauling the way a language's compiler parses the code (and making everyone mad)?
|
# ? Mar 20, 2014 00:44 |
|
Tokamak posted:has anyone figured out a good way to represent lambdas in traditional brace/block structured languages? or is it practically impossible without significantly overhauling the way a language's compiler parses the code (and making everyone mad)? scala
|
# ? Mar 20, 2014 02:02 |
|
what's wrong with javascript's lambdas? (I don't write js)
|
# ? Mar 20, 2014 02:19 |
|
apt gangbang posted:what's wrong with javascript's lambdas? (I don't write js)
coffeetable fucked around with this message at 07:42 on Mar 20, 2014 |
# ? Mar 20, 2014 07:31 |
|
also unrelated but ppl might be interested: epic's new license terms for the Unreal Engine are $20/month and 5% royalties for the full source code https://www.unrealengine.com/blog/welcome-to-unreal-engine-4
|
# ? Mar 20, 2014 07:58 |
|
I literally just got an email bug report from a "samsung subcontractor" in china about how an android app i made 3 years ago on my htc shitbox doesn't work on galaxy s4s
|
# ? Mar 20, 2014 08:05 |
|
Otto Skorzeny posted:can someone remind me what's wrong w/ clojure again? i'm picking it up again i think dynamically typed (setting aside core.typed for now), like all lisps a pain to edit without paredit (but simple once you learn that), the stack traces are horrible (you can kind of improve this situation with some libraries, and with practice reading them, but this seems to be a common issue with JVM dynamic languages where much of the stacktrace comes from the hosted runtime. compare with groovy, for example). but its shortcomings are more than made up for by the awesome concurrency primitives and persistent data structures and immutability by default everywhere also leiningen and having a stupid easy REPL to jack into for debugging and exploratory programming loving own bones Deus Rex fucked around with this message at 11:32 on Mar 20, 2014 |
# ? Mar 20, 2014 11:26 |
|
coffeetable posted:js lambdas are js functions, and the biggest problem with js functions is late binding. if you have a function f, then "this" is why you never write object-oriented javascript, ever
|
# ? Mar 20, 2014 11:28 |
What is Hack? Hack is a programming language for HHVM that interoperates seamlessly with PHP. Hack reconciles the fast development cycle of PHP with the discipline provided by static typing, while adding many features commonly found in other modern programming languages. Hack provides instantaneous type checking via a local server that watches the filesystem. It typically runs in less than 200 milliseconds, making it easy to integrate into your development workflow without introducing a noticeable delay.
|
|
# ? Mar 20, 2014 17:50 |
|
ahaha so i just looked up what HHVM stands for
|
# ? Mar 20, 2014 17:57 |
|
double sulk posted:What is Hack? dont forget it is written in ocaml
|
# ? Mar 20, 2014 18:05 |
|
and the hack ide runs in a web browser. naturally it is ocaml compiled to js
|
# ? Mar 20, 2014 18:05 |
|
Monkeyseesaw posted:objc as a language is pretty ok but the core framework has some huge loving holes. there's *still* no official url-encode string method so you have to pull bullshit like this from random github gists or blog posts. they just added a base64-encoding function to the ios frameworks in ios7. that was... 4 months ago? yeah the frameworks are schizophrenic, some areas have tons of convenience while others miss basic functionality for years. you can file bugs all you want but they'll be marked as dupes
|
# ? Mar 20, 2014 18:23 |
|
the only cool thing in obj is the arc everything else is super dumb
|
# ? Mar 20, 2014 18:25 |
|
ARC is pretty sweet
|
# ? Mar 20, 2014 18:48 |
|
double sulk posted:What is Hack? in future software development books there will be a chapter about facebook's (modified) spiral model. sunk cost fallacy and hacker philosophy form a negative feedback loop, causing each iteration of a project to come up with increasingly costly and abstract solutions to fix problems encountered in the last abstract solution. has anyone sat down and said: hey facebook has made some big design and architectural changes over the years; lets rewrite the platform to remove the overhead and comprises that come from iterating on an old, monolithic, PHP codebase. or have they been secretly writing a PHP to asm compiler that outperforms the best optimising c-lang compilers? oh, i see they created a fully interactive visualisation tool for dependancies (in 2011), becuase the old line and node diagrams just can't cope... https://www.facebook.com/notes/facebook-engineering/visualizing-facebooks-php-codebase/10150187460703920
|
# ? Mar 21, 2014 01:09 |
|
hackbunny posted:in fact I think the earliest version of javascript didn't even have arguments.callee, and you had to use the function's name, or the name of a variable that contained the function (how'd you write recursive anonymous functions? you couldn't) do not use arguments.callee or arguments.caller. it's flat out removed in strict mode, since it prevents the JS engine from JITting or inlining.
|
# ? Mar 21, 2014 04:13 |
|
Suspicious Dish posted:do not use arguments.callee or arguments.caller. it's flat out removed in strict mode, since it prevents the JS engine from JITting or inlining. how do you recurse in an anonymous function then? e: how is getting a function pointer going to interfere with jit? it's type metadata, not code e2: genuinely curious, I love compiler design & theory hackbunny fucked around with this message at 09:51 on Mar 21, 2014 |
# ? Mar 21, 2014 09:46 |
|
hackbunny posted:how do you recurse in an anonymous function then? y combinator
|
# ? Mar 21, 2014 10:15 |
|
Malcolm XML posted:y combinator ugh, seriously? twist your code into a mobius pretzel instead of allowing arguments.callee with restrictions? e: tried my hand at functional programming: JavaScript code:
e2: don't say JavaScript code:
hackbunny fucked around with this message at 11:05 on Mar 21, 2014 |
# ? Mar 21, 2014 10:33 |
|
hackbunny posted:how do you recurse in an anonymous function then? just give it a name. code:
|
# ? Mar 21, 2014 11:47 |
|
Tokamak posted:has anyone figured out a good way to represent lambdas in traditional brace/block structured languages? or is it practically impossible without significantly overhauling the way a language's compiler parses the code (and making everyone mad)? The lambda isn't really the problem in that example, and I don't think the lexical syntax for anonymous functions is really the problem in most languages with them. I'm not sure what non-brace/block-structured languages do it much better?
|
# ? Mar 21, 2014 13:19 |
|
if you think the problem in that example is the syntax you're also the problem
|
# ? Mar 21, 2014 14:19 |
|
Deus Rex posted:just give it a name. Right. Named function expressions only declare the name within their own line, so they're perfect for the "recursive anonymous function" use case.
|
# ? Mar 21, 2014 14:57 |
|
Malcolm XML posted:y combinator oh right you can write that, we're in javascript so we don't even have the simply typed lambda calculus
|
# ? Mar 21, 2014 16:18 |
|
hackbunny posted:how do you recurse in an anonymous function then? it doesnt block jitting the arguments array makes it basically impossible to do data flow analysis involving parameter variables, because anything that could cause a call to user code (i.e. basically everything) could reflectively modify the arguments array, which iirc is specced to alias the parameters and the callee stuff blocks you from doing any useful call-graph or escape analysis, e.g. to try to help with the above so you can have something like function(x,y,z) { return x+y+z } which you might think would be really easy to prove a lot of things about but the implicit conversions as part of the first plus could invoke user code that does thisFunction.callee.arguments[2]++ or something like that or just stash the callee somewhere so now you cant prove anything about all the known callers or something
|
# ? Mar 21, 2014 17:15 |
|
rjmccall posted:everything in loving javascript makes it basically impossible to do data flow analysis
|
# ? Mar 21, 2014 17:58 |
|
rjmccall posted:but the implicit conversions as part of the first plus could invoke user code that does thisFunction.callee.arguments[2]++ or something like that Hm, are you sure? I thought Function.prototype.arguments was flat out removed in ES5.
|
# ? Mar 21, 2014 18:03 |
|
E: ignore this
|
# ? Mar 21, 2014 18:44 |
|
Suspicious Dish posted:Hm, are you sure? I thought Function.prototype.arguments was flat out removed in ES5. who the gently caress cares what the loving ecmascript standards committee did maybe that poo poo matters if you agonize over putting all of your javascript code in pretty little precisely-versioned script tags go gently caress yoursefl out in the real loving world deprecation is meaningless and browsers will support this poo poo forever
|
# ? Mar 21, 2014 19:30 |
|
rjmccall posted:who the gently caress cares what the loving ecmascript standards committee did "use strict"
|
# ? Mar 21, 2014 19:33 |
|
Sure, you have to support the old code, but you can just give it lovely performance. Browsers are already killing fancy JIT optimizations for non-strict-mode code.
|
# ? Mar 21, 2014 19:33 |
|
|
# ? Jun 11, 2024 08:09 |
|
rjmccall posted:who the gently caress cares what the loving ecmascript standards committee did you are my hero
|
# ? Mar 21, 2014 19:38 |