|
Shaggar posted:I meant use java or c# to replace swift. they used objc cause steve made them cause it was nextstep they already tried java and it didn't work. no uptake. apple was actively pushing java on devs to no avail. also, times change. java is now owned by an extremely hostile vendor who would want a huge cut of mobile revenues. even if they wanted to bring back java as an option, it wouldn't be viable from a business perspective.
|
# ? Jan 23, 2016 00:31 |
|
|
# ? May 24, 2024 20:08 |
|
Notorious b.s.d. posted:they already tried java and it didn't work. no uptake. apple was actively pushing java on devs to no avail. why do you think oracle is being actively hostile
|
# ? Jan 23, 2016 00:42 |
|
FamDav posted:why do you think oracle is being actively hostile oracle is competently managed, and they want to make money off their assets. aggressive rent-seeking is the obvious way to make money off java sun lost a lot of money on nearly everything they did, in no small part because sun didn't do things like sue their prospective customers over java. pushing java was a much safer choice in the 1990s
|
# ? Jan 23, 2016 00:45 |
|
i'm trying to implement some other team's artisanal hash function in java, but have never used java before so I have no idea what I'm doing (as usual) i can express the function fine in python: code:
code:
any help would be appreciated
|
# ? Jan 23, 2016 00:58 |
|
idk maybe this. java shorts are signed so max val is 32767Java code:
|
# ? Jan 23, 2016 01:26 |
|
compuserved posted:i've tried using java.util.Arrays.copyOf to create a new byte array with only the first two bytes of digest_bytes (that should correspond to getting the first four characters of the digest in the python example, right?), but i get totally stumped there. I think you want copyOfRange to get a copy of the first 2 bytes, and then I think ByteBuffer has all the stuff to extract unsigned ints and poo poo from it.
|
# ? Jan 23, 2016 01:28 |
|
Just now, I wrote this:code:
code:
|
# ? Jan 23, 2016 01:29 |
|
CPColin posted:Just now, I wrote this:
|
# ? Jan 23, 2016 01:31 |
|
CPColin posted:Just now, I wrote this: ok
|
# ? Jan 23, 2016 01:42 |
|
Bloody posted:i continue to be displeased that c# numeric value types don't implement some IAddable and IMultiplyable or whatever interfaces it would be so much more convenient to be able to define genericized higher-level math that way but nope gotta have a FirFilter.Process(float) and FirFilter.Process(double) and FirFilter.Process(decimal) Haskell typeclasses meet this criteria. I think typeclasses don't play that nicely with subtyping inheritance hierarchies, but if you have typeclasses the use cases for subtyping through inheritance probably become vanishingly small. This is why people like dynamic duck typing because mainstream statically typed languages suck at making generic code like this. C++ can kind of do this, but it uses compile-time duck typing.
|
# ? Jan 23, 2016 02:03 |
|
i spent half of today getting 80% of my save methods working using a single stored proc and then in the process of getting the other 20% to work hosed it all up and now only like 10% works i should have created separate procs
|
# ? Jan 23, 2016 02:05 |
|
yeah duck typing is a means to an end there but i'd rather be able to enforce it with an interface or some extensionmethods-style fuckery or something
|
# ? Jan 23, 2016 02:06 |
|
CPColin posted:Just now, I wrote this: me too
|
# ? Jan 23, 2016 02:51 |
|
CPColin posted:Just now, I wrote this: Did you really not check any return values? Shameful.
|
# ? Jan 23, 2016 04:29 |
|
Pass 'em all, let the code in the methods sort 'em out, I say.
|
# ? Jan 23, 2016 04:46 |
|
comedyblissoption posted:An ideal programming language should let you orthogonally say that type Foo implements interface IBar without having to make modifications to the source of type Foo. This method of indicating interface implementation should extend to primitive types. Honestly, I would be happy if it just extended to like, collections classes, so that immutable collections could show up without being absolutely horrible.
|
# ? Jan 23, 2016 05:18 |
|
JSON technically isn't valid if you use single quotes for strings. time to sperg out and rewrite all of my JS objects with double quotes.
|
# ? Jan 23, 2016 05:25 |
|
have any of y'all used this phoenix thing? http://www.phoenixframework.org/ thinking about building a little threaded chat app to play around with react/redux some more and I think I want to make the backend in something I haven't used before. phoenix looks like it has a bunch of asset management poo poo I would completely ignore but the channel stuff seems neat? of course i'd have to learn erlang and elixr on the way to using this and idk how hard that is but it seems more fun than making yet another node or python backend
|
# ? Jan 23, 2016 06:16 |
|
elixir owns bones and so does erlang. i haven't messed with phoenix but it's supposed to be fine or whatever. like rails or something idk. phoenix could be worse than cobol on cogs and it wouldn't matter because any time in the erlang (and elixir) eco system is going to make you happy and blow your mind.
|
# ? Jan 23, 2016 06:43 |
|
phoenix kinda just seems like rails re-implemented in a far more confusing language, not really digging it the hell are y'all in this thread using for building web applications with realtime (re: i want a websocket) communication and a decent model layer? i wish python's async story wasn't still messy as gently caress, and i wish node had an orm and migration library worth a drat is it naive to think that in two thousand and loving sixteen i shouldn't have to build authentication endpoints and a user model from scratch for the 30000th time abraham linksys fucked around with this message at 08:12 on Jan 23, 2016 |
# ? Jan 23, 2016 08:07 |
|
abraham linksys posted:phoenix kinda just seems like rails re-implemented in a far more confusing language, not really digging it Its creators claims it is in fact not rails: https://dockyard.com/blog/2015/11/18/phoenix-is-not-rails
|
# ? Jan 23, 2016 08:18 |
|
abraham linksys posted:phoenix kinda just seems like rails re-implemented in a far more confusing language, not really digging it ruby is a far more confusing language than erlang or elixir could ever be, even if they tried
|
# ? Jan 23, 2016 08:26 |
|
dehumanize yrself and face to functional programming
|
# ? Jan 23, 2016 08:26 |
|
yeah tbh i'm kind of being a baby about elixir because, much like how you're not gonna learn ruby from the rails DSLs, the phoenix DSLs sorta hide what's really going on and making it a little extra confusing. also annoyed that i'm learning how to build stuff from poorly-written blog posts because the official guide is pretty limited but that's just web development in 2016 i guess i think i generally Get functional programming thanks to javascript (outside of pattern matching but i get the concept) so i'm interested to see how it works in elixir if nothing else
|
# ? Jan 23, 2016 08:34 |
|
javascript is not a functional programming language in either sense of the word
|
# ? Jan 23, 2016 08:36 |
|
abraham linksys posted:yeah tbh i'm kind of being a baby about elixir because, much like how you're not gonna learn ruby from the rails DSLs, the phoenix DSLs sorta hide what's really going on and making it a little extra confusing. also annoyed that i'm learning how to build stuff from poorly-written blog posts because the official guide is pretty limited but that's just web development in 2016 i guess If you dont mind spending some money, pragmatic programmers has a book on Phoenix in early acces. And also a good book on Elixir.
|
# ? Jan 23, 2016 09:04 |
|
abraham linksys posted:i think i generally Get functional programming thanks to javascript (outside of pattern matching but i get the concept) so i'm interested to see how it works in elixir if nothing else haha
|
# ? Jan 23, 2016 09:33 |
|
Zemyla posted:When OSX came out in 1999, Java was still poo poo from a butt and Microsoft was still trying to ritualisticaly murder Apple (and C# didn't even publically exist yet), and Apple wanted to use NeXTSTEP which they'd acquired along with reacquiring Steve Jobs. when OS X came out Java was a first class language for it E:F;B ~Coxy fucked around with this message at 10:41 on Jan 23, 2016 |
# ? Jan 23, 2016 10:35 |
|
abraham linksys posted:phoenix kinda just seems like rails re-implemented in a far more confusing language, not really digging it
|
# ? Jan 23, 2016 11:00 |
|
why do people always claim that JavaScript is a functional language.
|
# ? Jan 23, 2016 12:29 |
|
because they havent actually used a functional language before and maybe theyre coming from java?
|
# ? Jan 23, 2016 12:56 |
|
idk if javascript is a functional language but you can do a thing that looks and feels like functional programming in javascript so w/e
|
# ? Jan 23, 2016 12:57 |
|
comedyblissoption posted:C++ can kind of do this, but it uses compile-time duck typing. C++17 is going to finally make it formal. maybe. possibly. well, almost certainly. I think
|
# ? Jan 23, 2016 13:16 |
|
abraham linksys posted:idk if javascript is a functional language but you can do a thing that looks and feels like functional programming in javascript so w/e you mean map a function over a list right?
|
# ? Jan 23, 2016 14:57 |
|
St Evan Echoes posted:use signalr
|
# ? Jan 23, 2016 15:25 |
|
CommunistPancake posted:javascript is not a functional programming language in either sense of the word it has closures and first-class functions, which wasn't a given at the time compare to vbscript for a taste of what could have been
|
# ? Jan 23, 2016 15:46 |
|
elixir world is gonna become a dsl hell for the same sort of reasons that the ruby/rails world did
|
# ? Jan 23, 2016 15:52 |
|
asp.net development is going to basically be at 100% on osx/linux by the end of the year and it's gonna be great because real companies use java and c# and those kinds of jobs will still be around when the tech bubble pops
|
# ? Jan 23, 2016 15:57 |
|
people are probably not going to start hosting their poo poo with asp.net on linux asp.net has worked just fine on mono for y'know 10 years and it didn't start a revolution. and before that, sun used to sell a 100% compatible asp classic on solaris/linux. that didn't exactly set the world on fire either
|
# ? Jan 23, 2016 16:15 |
|
|
# ? May 24, 2024 20:08 |
|
lol "mono is fine"
|
# ? Jan 23, 2016 16:21 |