[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 323
Thread images: 27

File: 1471577075821.jpg (633KB, 2000x1126px) Image search: [Google]
1471577075821.jpg
633KB, 2000x1126px
previous thread: shit
What are you working on?
>>
>>56154748
me second from the right in the front row
>>
What's with the red circles?
>>
Satori
>>
(defun pajeet-destroyer (n)
(dotimes (i n)
(format t "~%~:[~d~:;~:*~{~c~^~}~]"
(append (and (zerop (rem i 3)) (coerce "fizz" 'list))
(and (zerop (rem i 5)) (coerce "buzz" 'list)))
i)))
>>
>>56154786
This is what the botnet found:
http://montreal.ubisoft.com/en/women-at-ubisoft/

The botnet also shits this out as related:
http://gamerant.com/ubisoft-excuses-for-no-females-in-assassins-creed-unity/

Basically it's some SJW bs. Probably the red circles are for some waifu bs.
>>
>>56154748
The smell in there must be unbearable.
>>
>>56154869
looks like a pretty open room. do you have hyper active olfactory senses ore something?
>>
>>56154880
No, I'm just repulsed by the smell of fish
>>
>>56154832
>"~%~:[~d~:;~:*~{~c~^~}~]"
Holy shit Lisp is ugly.

def pajeetDestroyer(n):
for i in xrange(1, n+1):
print(((not i % 3 and "fizz") + (not i % 5 and "buzz")) or i)
>>
File: 1460523436430.png (8KB, 349x308px) Image search: [Google]
1460523436430.png
8KB, 349x308px
>>56154889
>>56154869
>>56154748
>>
>>56154889
i don't understand. is there a joke here or do you hallucinate around women?
>>
>>56154898
>not i % 3 and "fizz"
Wouldn't work, for 3 you would have "fizz" + False and it would throw a type error.
>>
>>56154898
No, that's just CL's format syntax. Of course it's ugly.
>>
>>56154923
>i don't understand
Apparently.
>>
What does it feel like to be loved by a woman
>>
>>56154938
Indeed.
>>
can I hire someone to think for me?
would make decisions much easier
>>
What is the best way to create a custom google map?
With the API? It looked like generating a kml file was the best way but they don't work anymore, I guess.
I want to automatically put points on a world map with some data.
>>
https://youtu.be/FGQAP0GxlW8?t=24m13s

>Mark's Haskell solution was an order of magnitude smaller than Ada or C++
>with the most documentation and one of the shortest development times
>they picked a graduate student and gave him 8 days to learn Haskell
>his solution was the second shortest

>DARPA evalutator calls it "too cute for its own good"
>high-order functions are just a trick
>>
>>56155085
their api is obviously going to be the best choice unless you're a master at forging login dictionaries

this sounds like one of those projects though that would be easier and faster to just do manually
>>
>>56155116
tl;dw, but
>>Mark's Haskell solution was an order of magnitude smaller than Ada or C++
doesn't the whole haskell compiler use 1GB or something?
>>
SICP or Practical common lisp or On lisp?
>>
>>56155174
GHC today is less than 200MB, which while big yes is typical for a fast optimizing compiler of a statically typed language, but the anecdote I linked (which starts at 24:13, which I directly linked to) was from the mid-90s, and the program in question on the order of 50 lines of code compared to the 300-1000 of the other languages tried.
>>
>>56155197

SICP, then the other one.
>>
>>56155244
can i study sicp using CL?
>>
typedef vector<long long> vll;

vll BigInt::karatsubaMultiply(const vll &a, const vll &b)
{
int n = a.size();
vll res(n + n);
if (n <= 32) {
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
res[i + j] += a[i] * b[j];
return res;
}

int k = n >> 1;
vll a1(a.begin(), a.begin() + k);
vll a2(a.begin() + k, a.end());
vll b1(b.begin(), b.begin() + k);
vll b2(b.begin() + k, b.end());

vll a1b1 = karatsubaMultiply(a1, b1);
vll a2b2 = karatsubaMultiply(a2, b2);

for (int i = 0; i < k; i++)
a2[i] += a1[i];
for (int i = 0; i < k; i++)
b2[i] += b1[i];

vll r = karatsubaMultiply(a2, b2);
for (int i = 0; i < (int)a1b1.size(); i++)
r[i] -= a1b1[i];
for (int i = 0; i < (int)a2b2.size(); i++)
r[i] -= a2b2[i];

for (int i = 0; i < (int)r.size(); i++)
res[i + k] += r[i];
for (int i = 0; i < (int)a1b1.size(); i++)
res[i] += a1b1[i];
for (int i = 0; i < (int)a2b2.size(); i++)
res[i + n] += a2b2[i];
return res;
}


BigInt is done. BigFloat comes next.
>>
>>56154923
Virgin
>>
>>56155335
my girlfriend doesn't smell like fish so i have no idea what's wrong with your senses, but it seems like you need to get it sorted out.
>>
>>56155291
There is no reason to use cl when there is superior scheme.
>>
>>56155040

Fleeting.
>>
>>56155483
is it used somewhere outside MIT?
>>
>>56155546
There is racket which does have libraries. But like with any lisp chances of getting a job are slim to none.
>>
>>56155571

Lisps are to sate your desires for a better programming experience. Getting a job with one would only be icing on the cake.
>>
>>56155346
YOU'RE A STUPID VIRGIN OH MY GOD.
This is why we Anime in the op!
>>
>>56155756
I love lisps, best languages! But they are kinda "useless" very much like haskell. Helps you achieve enlightenment tho.
>>
File: Lisp.png (40KB, 555x513px) Image search: [Google]
Lisp.png
40KB, 555x513px
>>56155756
>>56155787

>lol who needs types
>sorry this function only takes a cons cell, enjoy your exception

Lisps are fucking shit.
Use Haskell.
>>
>>56155801
Never heard of typed racket?
>>
>>56155801
Types are archaic crapware that should not exist in modern programming languages. But Haskell takes it to the next level and turns types into a purified form of crystallized autism.

>hurr durr muh type theory!!!11oneoneeleven
It shouldn't even be a field of study. It's like a bunch of autists got together and started worshipping archaic compilers.
>>
>>56155833
see >>56155801
>lol who needs types
>sorry this function only takes a cons cell
>>
>>56155841
>here, let me add this incomprehensible type framework to solve a minor inconvenience
>there, fixed it!
>>
>>56155849
>>56155841
>>56155833

Wew lad, this will trigger bunch of autists
>>
>>56155849
>minor inconvenience
>incomprehensible
>>fixed it
>>
>>56155801

Stop this meme.
>>
>>56155918
>meme
It's true and it's a major flaw in all lisps

Might as well be using Java if you want all these runtime exceptions
>>
>>56155849
>not having a typechecker buddy tell you exactly what needs changing when knee-deep in refactoring shit code into good code
>>
Learning Clojure because Lisp >>>>>>>>>> Haskell

What should my first program be?
>hard mode: something actually useful
>>
>>56155938
Write a version of lisp that's actually good
>you can't
>>
>>56155937
>needing a type checker
>needing to massively rework your code because of types
>>
>>56155948
>>needing a type checker
whoops, forgot to add
>not having all your errors fail silently
>>
File: 1425593845210.jpg (51KB, 473x555px) Image search: [Google]
1425593845210.jpg
51KB, 473x555px
This is now a Lisp vs Haskell turf war thread.
>>
File: magic.png (36KB, 707x394px) Image search: [Google]
magic.png
36KB, 707x394px
>>56155953
do this in lisp
>>
>>56155951
>he thinks type errors are a actually nontrivial source of code issues
They account for like less than 5% of errors but add 100% to the time it takes to plan and write your code
>>
>>56155971
>he's never used a language with expressive and fully inferred types
>>
>>56155967
It's almost 1:30am and I'm going to bed. Maybe in the morning.
>>
>>56155971
>They account for like less than 5% of errors
Not when you're using a half decent type system and don't employ code monkeys.

Examples of a shitty type system designed by code monkeys would be the one where you pretend types don't exist but in reality have distinct kinds of values of which certain functions can only handle some.
>>
>>56155979
>Haskellfags actually believe this
>>
>>56155986
>modern Haskell
>fully inferred types
>>
>>56155932

It's not really a flaw if you know what you're doing.
>>
>>56155971
>the only purpose of types is for preventing errors
Not every language is Java, anon
>>
>>56156025
>Might as well use Java
It's so simple to read Lispers minds because they're so simple minded.

Maybe I could've done better, maybe I should've greentexted "Might as well use Javascript"
After all, there aren't any problems if you know what you're doing
>>
>>56155991
I dare you to write a well-typed expression that GHC can't infer that it ought to be able to.
>>
>>56156044

Well, it's always been said that Javascript was created under the premise of bringing Scheme to web browsers, and I'd say it has succeeded in doing so. It's a fully-fledged and incredibly powerful language. Well designed, to boot.
>>
>>56156079
Scheme is strongly typed language its not fucking python or javascript.
>>
>>56155159
>would be easier and faster to just do manually
Any alternatives to google maps?
I have a location (city,state or long/lat), some tags and a picture for each entry.
>>
Fucking hell the Python multiprocessing overhead is no joke.

I managed to cut my program's execution from 20s to 35s by splitting the job into four processes.
>>
>>56156103
no I suppose not for adding pictures

and google is a far better service than something like mapmyrun or mapquest

Just learn their api. This project can be done in probably 20 lines of code, it'll just take some time invested. If you have no experience at all with providing login data you are in for a lot of learning though
>>
>>56156192
Give Cython a try
>>
>>56155801
Please stop. You're not only embarrassing yourself by this avatarfagging but also make decent Haskellfags look bad.
>>
I'd just like to interject for a moment. What you’re referring to as eggs, is in fact, salt/eggs, or as I’ve recently taken to calling it, salt plus eggs. Eggs are not a whole meal unto itself, but rather another free component of a fully functioning meal made useful by salt comprising a full meal as defined by Chef Ramsey.
Many food consumers eat a modified version of salt every day, without realizing it. Through a peculiar turn of events, the version of salt which is widely used today is often called “eggs”, and many of its consumers are not aware that it is basically salt. There really is eggs, and these people are eating it, but it is just a part of the meal they use.
Eggs is the main ingredient: the food in the meal that brings the nutrients to the other body. The main ingredient is an essential part of a meal, but useless by itself; it can only function in the context of a complete meal. Eggs is normally used in combination with the salt seasoning: the whole system is basically salt with eggs added, or salt/eggs. All the so-called “eggs” distributions are really distributions of salt/eggs.
>>
>>56156425
>I don't have any real counterpoint so I will try to insult you with words I don't understand
>>
>>56156446
I'm a type theoretician by training, so I have plenty counterpoint to your silly arguments. My point is that you deliberately incite flames with your condescending and aggressive attitude and in effect make the whole Haskell community look as bad.
>>
File: 1464723576745.jpg (38KB, 362x346px) Image search: [Google]
1464723576745.jpg
38KB, 362x346px
>>56156468
>>
>>56156468
Thank you for CORRECTING THE RECORD.
4 cents has been deposited in your account.
>>
So I realized I don't have a good grasp of big O.
In terms of size, from good to worse, the order is
1 > log n > n > n * log n > n2/3/etc > x to the Nth power > n!
Right?
>>
>>56156617
I think so
>>
>>56155979
>implying that's haskell, not lisp

(deftype square-matrix (&optional type size) 
`(and (array ,type (,size ,size))
(satisfies equidimensional)))

(defun equidimensional (a)
(or (< (array-rank a) 2)
(apply #'= (array-dimensions a))))
>>
>>56156425
I fear that you do not know what avatarfagging means my fellow newfag. Sadly you keep using that word in almost every thread.
>>
>>56156617
well yes, smaller is better.
But actually, while x to the nth power may be smaller than n!, i think n to to the nth power is bigger than n!
because n * n * n * ... > n * n-1 * n-2 * ...
so that would be the worst i can think of, unless you get even more ridiculous like n to the power of n to the power of n to the power of n ..
>>
>>56156832
>my fellow newfag
So you're admitting to being a newfag yourself?
>>
any intellij tutorials? I seriously can't even get a project started for TDD, how is this worse than visual studio

the website documentation is so bad
>>
>>56156854
Visual studio just works and for intellij you just have to select jdk... Whats the problem?
>>
>>56156840
what about (fib n) ^ (fib n)
>>
>>56156874
What about it?
>>
>>56156840
>unless you get even more ridiculous like n to the power of n to the power of n to the power of n ..

I cannot even imagine any such algorithm.
>>
>>56156892
forall n. n -> (n -> n -> n -> n)
>>
>>56156832
>I fear that you do not know what avatarfagging means my fellow newfag.
That colorscheme and hasklig are unmistakable.
>>
Kek, Hascucks can't even into dependent types without ugly nonnative workarounds.

* (type-of (make-array '(2 2) :element-type 'bit))  

(SIMPLE-ARRAY BIT (2 2))


or, more complex,

(deftype sorted-array ()
`(and (array number *)
(satisfies sorted-p)))
(defun sorted-p (seq &optional (pred #'<))
(reduce pred seq))
>>
>>56157002
>using a built in colour scheme and a particular font (Fira Code, not hasklig) is now avatar fagging

>>56157024
TypeInType
>>
>>56157002
It's clear that you do not know what avatarfagging is it looks like.
>>
>>56157002
I recognise that position anywhere, it's unmistakable, you're >>56156425

Please stop avatarfagging by defending the same position
>>
>>56156977

I meant a genuine use case.
>>
>>56157031
>nonstandard GHC extension
>native
Face it, Lisp has a more expressive type system than Haskell. And that's not including the compile time calculations you can do with types and macros.
>>
>>56157077
Not to add ease of creating DSLs
>>
>>56157077
GHC is the standard
>>
Previous thread: >>56145542

>>56157077
GHC Haskell is what most people mean by Haskell
Nobody cares about the ""official"" standard
As >>56157088 says, GHC is basically its own standard
>>
While we're on the subject of Hasmeme, is LYAH actually good or is it patronizing for people who are already programmers?
>>
>>56157102
use either haskellbook.org or this
http://www.seas.upenn.edu/%7Ecis194/spring13/lectures.html
into
https://github.com/NICTA/course
into
http://www.scs.stanford.edu/14sp-cs240h/
>>
>>56157070
Whoops, meant to say
forall n. [n -> n -> n -> n]

A function that takes a type and gives you back a list of all tryadic functions of that type (e.g. in a testing framework) would be O(((n^n)^n)^n)


>>56157102
The drawings are abhorrent
>>
>>56157156
or without typeclasses/implicits or some kind of data type analysis

forall n. [n] -> [n -> n -> n -> n]
(i.e. you give it all possible n's and it gives you all possible tryadic n functions)
>>
>>56157127

Thank you. If I actually invest some time in learning haskell, I can start memeing about typeclasses, monads, and various other meme subjects.

That would be fun.
>>
>>56157156
>O(((n^n)^n)^n)
Are you sure that grows slower than O(n!) for sufficiently large n?
>>
>>56157229
>slower
faster i mean
>>
>>56157229
n! is in O((n/e)^n), by Stirling's approximation.
>>
>>56157069
>no u
Great argument, buddy. You still haven't explained why you keep coming up with these condescending invectives.
>>
>>56157203
It's mostly quite simple. A typeclass is just like a constraint or a set of dictionaries for ad hoc polymorphism (i.e. function overloading).

Where you'd do this in C++:

to_string(int x) {...}
to_string(char x) {...}
to_string(string x) {...}


You'd do this in Haskell
class Show a where
show :: a -> String
-- forall a. (Show a) => a -> String
-- i.e., for any "a", if it instantiates Show, it can be converted to a string via "show"

instance Show Int where
show n = --implementation
instance Show Char where
show c = [c] -- a string is a list of chars
instance Show String where
show s = s -
- actual prelude does the equivalent of "$s"


If C++ eventually add concepts, it will be like this


>>56157229
>>56157252

n^n = n * n * n * n ... (n lots)
n! = n * (n-1) * (n-2) * (n-3) .. 1

https://www.wolframalpha.com/input/?i=(n%5En)+-+n!
>>
>>56157332
class Show {
virtual string to_string() = 0;
};
>>
>>56157332
by "$s" I mean it actually encloses it with quote marks, which is sometimes annoying
>>
>>56157341
Yes, this works in this case.
But not in this case.

class Read a where
read :: String -> a
>>
>>56154748
Which is the best language if i want to extract data from excel files?
>>
>>56157352
That's what overloading operator>> is for.
>>
>>56157373
As I said, it's analagous to C++'s function overloading. It provides a kind of constrained ad hoc polymorphism.

But if you do this:

template <typename T> 
void print(T x) {;
std::cout << x;
}


and then call readAndPrint with something that doesn't have a <<, the first thing it will tell you is it couldn't instantiate print for T, etc. And that's at the usage end.

if you do this in Haskell:
print :: a -> IO ()
print x = putStrLn (show x)


It won't compile and will give you an error for the function, well before anyone actually calls it.

The correct signature is:
print :: (Show a) => a -> IO ()
>>
>>56157410
print*

I was going to do a readAndPrint example but it's non trivial in Haskell because you'd need to explicitly pass a type

It might be a lot easier now we've got explicit type annotations
>>
>>56157357
C, it's very easy to write an Excel parser
>>
File: Q5wV9Uj.png (571KB, 700x700px) Image search: [Google]
Q5wV9Uj.png
571KB, 700x700px
I have to get good at TI-basic to cheat in my classes apparently
>>
>>56157357
Any language will do.

It's one or two lines in C#. Give me examples of your input and desired output.
>>
>>56157357
java has a good library to do it with the apache hssf

You can do all sorts of shit like functions and multi-paged iterations
>>
ok I never studied past cs 22 so bear with me

Lets say I have a set of characters in an unknown encoding that notepad++ or notepad just display as [nul][nul]vjdka[nul][eol] etc.

Is there a text editor that can decode these in a uniform fashion? You would think they would just be \x169482\x61412 etc when just displayed without attempting to decode them right?

I've been able to load them into java but of course it is impossible to display because it's invalid utf-8
>>
>>56157717
Why don't you just open it with a hex editor?
>>
>>56157332
>A typeclass is just like a constraint or a set of dictionaries for ad hoc polymorphism (i.e. function overloading).

The memes are starting to make some sense now.
>>
>>56157357
>>56157494 This. There are libraries in Python as well - xlrd and xlwt - that deal with reading/writing/extracting information from Excel if you need to mock something up fast in slow snake language. The intern at work cooked up something neat for extracting data over several different types of work-based spreadsheet and spitting out a uniform spreadsheet.
>>
>>56157494
I wish everyone would use CSV.

string[][] csvData = input.Split('\n').Select(x => x.Split(',')).ToArray();


CSV > Shitty proprietary formats
>>
>had a plan to optimize my program and add multithreading this week
>before optimization the parallelizable part took up 80% of the execution time
>after optimization the parallelizable part takes up 40% of the execution time
>adding multithreading is now pointless due to Amdahl's law and not worth the overhead

I should be happy but I feel a bit miffed.
>>
>>56157901
var ayy = ReadAllLines(@"C:\temp\test.csv").Select(row => row.Split(','));
>>
>>56157743
ok I'm beginning to understand..

what a hex editor does is show the relation between your sets of data [F2],[BD], etc. and the characters they map to a,F, etc.
some encodings use more than one set for a character, I'm betting you can use whatever amount of hex characters you want which is why notepad can't display just anything, it has to know how far to read the hex sets

But there must be more information in the file, right, each encoding library has to know somehow that that character is intended to take more than one set. Does it just set aside a few hex characters that are specifically intended to start a sequence or something?

>>56157901
csv doesn't have nearly the depth needed for most sets of data you'd have though
>>
>>56154787
a cute.
>>
File: 1428791078302.jpg (13KB, 238x211px) Image search: [Google]
1428791078302.jpg
13KB, 238x211px
>>56157921
using static System.IO.File;

>Unironically doing this
>>
>>56157977
>Unironically saying Unironically
>>
>>56157921
f=open('C:\temp\test.csv')
arr=f.readlines()


there's a beauty in simplicity ;)
>>
>>56157779
Good.

Some syntax features make use of this, such as the syntax:
[a ... z]

This works for anything with an Enum instance (Enum is a type class providing enumerated values)

because Bool, Int, Integer, Natural, etc instantiate it, you can use this syntax for all those types - as well as if you define your own type

data StaffType = Janitor | Moderator | Administrator | Hiro
deriving (Enum)
-- deriving is a kind of "built-in" way of instantiating certain type classes
list = [Janitor .. Administrator] -- includes Moderator


You can define some very generic behaviour this way
For instance, there is a typeclass:
class Bounded a where
minBound, maxBound :: a


By combining this with enum, we can say this:

allValues :: (Bounded a, Enum a) => [a]
-- Given some a that is Bounded and an Enum, we can construct a list of a's
allValues = [minBound .. maxBound] -- all values between min and max


Since type classes work by inferring types, and this is just a polymorphic value (a value with many types), we might need to explicitly use type annotations to construct a specific instance

allIntegers :: [Integer]
allIntegers = allValues
-- allValues where a is Integer
-- in GHC 8 there's new syntax for explicit type application
-- allIntegers = allValues @ Integer


But a lot of the time, we don't need to:

functionThatOnlyTakesAListOfIntegers(allValues)
>>
>>56157996
f=open('C:\temp\test.csv').readlines()

;)
>>
>>56158012
aight you got me
>>
>>56157996
Your code doesn't even do the same thing though.

Step it up-.
>>
Should a config file use ini or cfg for its extension?
>>
>>56155313
why not use a vector of booleans?
>>
>>56156055
pretty much anything with GADT's or OverloadedRecords, or OverlappingInstances
>>
>>56154923
I'm currently living with 4 girls. Never do that. Seriously, sometimes 2 or 3 of them enter the period at the same time. I feel like I'm in bloodborne.
The smell is putrid, there's blood everywhere. Fuck, women are disgusting creatures...
>>
>>56158005

Interesting. I ought to start reading those resources to get a real understanding of the syntax.
>>
>>56158045
INI if you're using the appropriate standard, CFG if you're making your own config file format.
>>
>>56158113
There aren't a million syntax things like that, that's the main thing that comes to mind, it's just an interesting use.

The other use would be do notation for monads

If you've got certain GHC extensions enabled then there are more, for instance
OverloadedLists
-- now you can use list syntax for other types such as sets, vectors, etc

OverloadedStrings
-- same for strings.
-- exists for pragmatic reasons, is basically a subset of OverloadedLists (i.e. Char lists)

MonadComprehensions
-- desugars list comprehensions like [ x | x <- mx, x > 3 ] into more general monad comprehensions

But there are other things which you might consider syntax that are really just typeclass functions, like == and > and others


Oh, I forgot, this is for literals too.
So if you loaded up GHCi and did ":t 0" (what is the type of 0)
you don't get "Int" you get (Num a => a), i.e. anything that is a Num
(another example of a polymorphic value)
(so 0 can also be a double, a natural, a fraction, etc)

Similarly for floating points
>>
>>56157921
>>56157996
>>56158012
Holy fuck dudes, are you all retarded?
\t is the tab character
also, >windows
>>
fucking hell why does my body get so impaired after only 16 hours of medium load? Why does it run so inefficiently and require such a massive amount of energy to function even normally?

who the fuck designed this garbage?
>>
>>56158177
The @ sign escapes that you dumb fucking faggot.
>>
>>56158199
Sounds like a really shitty language, wow.
>>
>>56157977
>not doing it constantly for convenience

If there's a namespace issue, VS will let me know. It won't compile if a method call is ambiguous.

using static System.Console;
using static System.IO.File;
using static System.Environment;
using static System.Linq.Enumerable;
using static System.String;
using static System.Math;
>>
>>56158177
hurr

f=open(r'C:\temp\test.csv').readlines()
>>
File: Cl5Dg0VUkAAKATi.jpg (58KB, 1199x663px) Image search: [Google]
Cl5Dg0VUkAAKATi.jpg
58KB, 1199x663px
>>56158208
>>
>>56158208
Consider taking a break from shitposting.
>>
File: disgusting.jpg (75KB, 450x450px) Image search: [Google]
disgusting.jpg
75KB, 450x450px
>>56158210
>>
>>56158210
>VS
You should probably end yourself senpai.

>>56158231
It's C#, it IS a shitty language, it's a fact.
>>
>>56158237
>VS is recognised as being one of the better if not the best IDE available right now
>C# and .NET are one of the few redeeming qualities of Microsoft, easily outperforming more or less any comparable high level language and competing with lower level languages just fine.

If you're going to shitpost at least do a tiny bit of research first so you don't look like a complete retard.
>>
>>56154931
>No, that's just Craig's List's format syntax.
>>
>>56158237
>You should probably end yourself senpai.
Yeah, all the programmers at 40,000+ companies should kill themselves I guess.

I know your shitposting, but you can do better than this, anon.
>>
>>56157922
would like an explanation of this from someone, I couldn't find it explained anywhere on the web
>>
>>56158237
Literally the only thing Microsoft has ever done right is Visual Studio and C#.

Feel free to go shitpost in a Win10 thread, though.
>>
>>56158259
>>VS is recognised as being one of the better if not the best IDE available right now
No sane person considers VS a good IDE.

>>C# and .NET are one of the few redeeming qualities of Microsoft, easily outperforming more or less any comparable high level language and competing with lower level languages just fine.
Every sane person considers both C# and .NET Pajeet enterprise trash.
However, since you are a winbaby your opinion doesn't matter.

>>56158274
>Yeah, all the programmers at 40,000+ companies should kill themselves I guess.
Yes, all the pajeet coders in the world should end themselves, exactly.

>>56158303
>shitpost
I fear that you do not know what shitposting is, facts are not shitposting. You should stop using words that you do not know what they mean, samefag.
>>
>>56158310
Okay, I'll bump you to a solid 6/10 on the bait scale.

Almost thought you were a reasonable person about to give a convincing argument.
>>
>>56158333
(You)
>>
Anything on parametric equations in a 3D space where orientation matters? Trying to do some cool stuff in [spoiler]Roblox[/spoiler]
>>
>>56158310
>Literally no facts and barely any opinions just an attempt to look cool in front of all your internet friends for hating on Microsoft blindly

3/10, must try harder.
>>
My newly implemented tool outperforms what we've been using by three orders of magnitude guys.

It used to take 15 minutes to process a sample but now I can process 400 samples in under 5 minutes.
>>
>>56158350
You are wrong actually, I never once in my post said that I hate Microsoft.
Nice try at samefagging though, F for effort.
>>
>>56158360
What tool were you using?

>>56158348
>Roblox
when i was younger script builders were the shit
>>
File: me.jpg (93KB, 640x640px) Image search: [Google]
me.jpg
93KB, 640x640px
Dear /dpt/,

is it possible to embed a C/C++ dll inside a C# which wraps the C/C++ dll?
Or in other words can a C# dll have something like a static Main method that is automatically called before anything else is used so I can load the C/C++ dll there?

I'm currently at an indoor swimming pool and can't test it myself.
>>
>>56158360
I know that feel.
>>
>>56157473
That's how I started programming. I wrote formula solvers for 11th grade Calculus. Teacher said it was fine because "I still put in the work". Good days.
>>
>>56158371
PInvoke
>>
>>56158378
I believe that these things should be allowed as long as you can prove that you made it
>>
>>56158371
>is it possible to embed a C/C++ dll inside a C# which wraps the C/C++ dll?
Yes, but I'm not certain of the best way to do it.

You could always embed as a resource, extract it during initialization, and then P/Invoke it.
>>
>>56158367
It's a tool for inferring the pedigree and introgression structure of a population of several hundred plants based on NGS data.

The original was made by another group and was a very messy Perl abomination.

Mine is C wrapped in some Python for handling pain-in-the-ass parsing.
>>
>>56158378
lel I'm just going to be lazy and write everything in python then make an interpreter to ti-basic

that way I can get around all the special characters too, because when I'm interpreting I can replace them in
>>
>>56158371
>>56158389
>>56158393
Just FodyWeave that bitch.

https://github.com/Fody/Costura

NuGet tool that embeds whatever libraries you want into the DLL or EXE.
>>
File: 1470006548862.jpg (26KB, 393x382px) Image search: [Google]
1470006548862.jpg
26KB, 393x382px
>>56154748
>previous thread: shit
did did you just break the chain, you stupid faggot?
>>
>>56158389
>>56158393
I know how to use the C/C++ dll from a regular C# program and I have the C/C++ dll file in memory
My problem is how to automatically load the C/C++ dll from inside the C# dll

>>56158411
tldr
>>
>>56158478
>My problem is how to automatically load the C/C++ dll from inside the C# dll

I'm not entirely sure what your use-case is here, but you could always add a static constructor to your class/classes in the C# DLL that calls the required parts of the unmanaged code.

Otherwise, from the initial application, if you call a section of the C# library that depends on the embedded C/C++ unmanaged code, then the unmanaged code will be called.

It sounds like you want to load the entirety of the unmanaged code into memory. If you want that to happen, the unmanaged DLL contains that logic and you call whatever initialization method residing in the C++/C code.
>>
>>56158587
I basically want to create a cross-platform imaging library in C#
And I want all my dependencies (like libjpeg-turbo) inside of it to avoid dll hell

Using a class with a static constructor sounds like a good idea, thanks
>>
Does anyone here have experience with C++ Primer the book? I'm currently reading through chapter 2 and there's a section on const pointers/references that is so fucking dense it's nauseating. Does anybody know if I can just get a basic grasp for pointers/references and move on or do I need to know literally all of this shit? I figured I could just revisit the section when I need it.
>>
>>56158411
>pushing your own library without revealing that you are responsible for it

Distasteful, at best.
>>
>>56158799
>implying

I didn't write that, but it's made my life much easier.
>>
>>56158799
it has more than one contributor, no way in hell is that a project from a /g/ user
>>
>>56154748
>2 woc
this is highly problematic.

those women should check their white privilege
>>
>>56155058
why don't you just build a general AI and let it take decisions for you? Way simpler than having to ask someone.
>>
>>56154748
When I see that picture all I can think of is how much money that company is spending for such little productivity.
>>
>>56155967
What editor is this?
>>
>>56158896
atom
theme is OneDark
>>
>>56158806
>>56158830

Sorry, it seems I jumped the gun. Sometimes you have to shake the tree to see what falls out.
>>
>>56158904
thanks
>>
How do I make this more like idiomatic scala?
def hasPhoneNumberOrEmail(contactUsFormData: ContactUsFormData) = {
if (contactUsFormData.email.isEmpty && contactUsFormData.phoneNumber.isEmpty) {
false
} else {
true
}
}
val contactUsForm: Form[ContactUsFormData] = Form(
mapping(
"name" -> nonEmptyText,
"phoneNumber" -> optional(text(minLength = 10, maxLength = 50)),
"email" -> optional(email),
"caseInformation" -> nonEmptyText
)(ContactUsFormData.apply)(ContactUsFormData.unapply).verifying(
"Must provide a phone number or email address",
contactUsFormData => hasPhoneNumberOrEmail(contactUsFormData)
)
)
>>
>>56158928
haskell fag here

>if (a && b) then { false } else { true }
not (a && b)
>>
>>56158956
should be !(a&&b) innit

>>56158928
your first function is totally wrong btw should be ||
>>
>>56158956
>>56158985
def hasPhoneNumberOrEmail(contactUsFormData: ContactUsFormData): Boolean = {
contactUsFormData.email.nonEmpty || contactUsFormData.phoneNumber.nonEmpty
}

Thanks for pointing out the logic error, rewrote it so its clearer
>>
the end of all meme languages
>>
>legacy script causing issues after update
>boss tells me to investigate
>900 line perl
>only one comment

# it was hard to write so it should be hard to read
>>
File: 1471520802412.jpg (29KB, 476x543px) Image search: [Google]
1471520802412.jpg
29KB, 476x543px
>>56159099
was there more to this post?

>>56159108
>whoever did that
bro
respek
>>
File: sweaty paul.webm (121KB, 1280x720px) Image search: [Google]
sweaty paul.webm
121KB, 1280x720px
>Tfw developing an app
>Too afraid to check if it already exists
>>
>>56159142
It exists.
>>
Anyone have any opinions on No SQL?
Just finished writing this webapp - https://www.raskie.com/on-notie with a No SQL backend, and wonder why I'd ever want to use a relational database again.
>>
>>56159142
>app
Three different versions by Pajeet, some Polish guy, and some Chinaclone already exist. The mobile game ended years ago.
>>
File: there's an app for that.jpg (2MB, 3259x3194px) Image search: [Google]
there's an app for that.jpg
2MB, 3259x3194px
>>56159142
>>
>>56159122
everyone will stop using meme languages
>>
>>56159179
>{"error":"Method not found: YOU WOT MATE?"}
Fucking lel
>>
>>56159203

Lol! Yeah. The real address is - https://www.raskie.com/on-notice - It's a hand written server, hence the funky error handling.
>>
>>56159203

Lol! Made a typo, it's - https://www.raskie.com/on-notice - It's a handwritten server, so I played about with the response codes.
>>
>>56156840
By stirling's approximation O(n!) is equal to O((n/e)^(n + 0.5)). So yes, it is slower than O(n^n) due to that 1/e in the base.

>>56156892
Oh boy. You should take a look at the Ackermann function. Then look for algorithms that run in that time, which there are many examples of.
>>
File: anal beads.png (115KB, 791x964px) Image search: [Google]
anal beads.png
115KB, 791x964px
>>56159179
>and wonder why I'd ever want to use a relational database again
Different designs for different applications.

NoSQL is great for some uses. It can completely fuck your design in other cases.

Read this:
http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/
>>
>>56159277

Mongo DB is a mess.
>>
Any way to add more than one server initializer in netty? I need one for normal sockets and the other one for websockets. Basically I want to do something like this:

bootstrap.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new SocketServerInitializer()
.childHandler(new WebSocketServerInitializer());
>>
>>56157473
>>56158378
I started with TI-Basic as well. Played some with Python during high school as well but never really got into it then since my Python programs weren't as directly useful to me as my TI-84 programs.

I had a lot of fun making some basic games for the TI-84 like Pong & Snake and distributing them to my classmates.

It sort of turned the calculator from a boring classwork device to a handheld gaming device and I used to see some people play my snake whenever they had time to kill. That was in the late '00s right before smartphones became a thing. Fun times.
>>
>>56159142

>developing app
>searched beforehand,couldn't find it
>go to publish on Google play store with name
>"sorry, this app didn't pass our plagiarism test"
>search up name I thought of
>app already exists

REEEE. At least this is resume stuff.
>>
>want to share my projects on /g/
>my github is linked to my real name
so should I just make a new one then?
>>
>>56154748
My my. Look at all these poor opressed women.
>>
>>56158378
I started programming because a linear algebra homework required me to find an idempotent matrix and I couldn't think of one.
Copypasted a matrix multiplication function and generated random matrices until it found one that was idempotent.
>>
>>56159487
I assume it was excluding I
>>
>>56159487
>>56159562
and zeroes
>>
File: MVI_0242.webm (3MB, 1280x720px) Image search: [Google]
MVI_0242.webm
3MB, 1280x720px
I found an led strip in the garage.
Though I have to organize some MOSFETs to connect 12V to it and control it with a µC to get full brightness.
>>
>>56155204
What other languages has compilers with comparable sizes?
>>
>>56154748

>2nd from left front row

ALL. DAY. LONG.
>>
>>56155546
Guile, a Scheme dialect, is the official extension language of GNU.
>>
newfag here reporting
Python or die?
>>
>>56159903
java
>>
File: IMG_0234.jpg (810KB, 2592x1728px) Image search: [Google]
IMG_0234.jpg
810KB, 2592x1728px
Apparently the blue led draws to much power.
Will have to wait til monday or tuesday to get it like bright this
>>
>>56159903
python is easiest but yes I have to recommend java; however much you will hate it it will actually teach you how to program
>>
File: MVI_0243.webm (3MB, 1280x720px) Image search: [Google]
MVI_0243.webm
3MB, 1280x720px
>>56159970
on 5 volts instead of 12, kek.
>>
File: tablets.jpg (374KB, 600x701px) Image search: [Google]
tablets.jpg
374KB, 600x701px
>SQL Server 2016 has R functionality built-in
>SSRS isn't hot garbage any more
>Temporal tables
>Native JSON support

Welp, this CRUDlord is happy.

Anyone else excited for any other recent product updates?

Post your favorite recent improvement to a software or language you use.
>>
where can I find a circle pack algorithm? I have n circles and want to pack them as tight as possible into a given square.
>>
>>56159903
Python is trash
>>
>>56159985
Java will cause semi-permanent harm to your ability to program effectively.
>>
>>56154748
>>56157922
>would like an explanation of this from someone, I couldn't find it explained anywhere on the web
Cuz Ur shit. Just read the Wikipedia page on utf-8
>>
>>56160206
No it will not.
Java will let you understand all types of logic you need for simple programming without all that crap that you need to know for C or shit.
After java you can get fuckin easy into any programming language
>>
>>56159596
>>56159562
No, any 3x3 matrix would have done. Tried a few that I thought might work but they didn't so instead of doing more trial-and-error myself I let the computer do it.
>>
>>56160243
No, I mean I assume the assignment was excluding the identity matrix and a all-zero matrix, because they're trivial zeroes

In fact, any matrix that has only 1s or 0s down its' diagonal & zeroes everywhere else will be indempotent
>>
>>56160266
*trivially idempotent
i.e.
II = I
ZZ = Z
>>
I literally have a empty class with just the constructor defined and im still getting a LNK2019 error
>>
>>56160206
If anything, I'd attribute this to C.

Every time I see someone who learned on C go to Java or C#, they always complain about not being able to program in an unsafe, unmaintainable way.

Considering there's more jobs in high level languages than low level languages, I'd say that your better off learning the high-level way first.
>>
>>56160288
Is the constructor actually defined (and only once) or just declared?

A constructor is just a regular function
>>
>>56160206
And Python won't?
>>
>>56160288
Post the files, you might have just declared the constructor, or defined it in a source file w/o adding the file to the build.
>>
>>56160206
>>56160304
define 'program effectively'
>>
>>56160266
Ah I get you now, yes, I and 0 were excluded.
Can't remember the solution that most others gave but it only had 1s and 0s as elements.
>>
>>56160304
I would say Python is one of the most detrimental to learning other C-like, statically typed languages (Java, C#, C++, etc.).
>>
>>56159277
>Read this:
>Sarah Mei
>Disclaimer: I build web applications.
kek
>>
>>56160224
if you don't know the answer you can just say it, anon
>>
File: 1470406484974.jpg (8KB, 225x225px) Image search: [Google]
1470406484974.jpg
8KB, 225x225px
>>56160383
If he doesn't know the answer, then how can he say it?
Silly baka
>>
File: 1462081220783.jpg (21KB, 206x300px) Image search: [Google]
1462081220783.jpg
21KB, 206x300px
What university did you study/do you plan to study/are you studying in?
>>
>>56160467
>anonymous anime imageboard
>anonymous
>ano-nymous
>>
File: 1441246047168.jpg (51KB, 400x579px) Image search: [Google]
1441246047168.jpg
51KB, 400x579px
>>56160483
Yes, what?
>>
>>56160467
Yeah, let's post university names so random 17-year-olds can deride them and call them shit, no matter how reputable they are.
>>
>>56160314
>>56160293
this is the second time this happened

i close the project then open it back up and the error is different and im able to fix it

can anyone explain why this happens?
>>
>>56160495
If you avoid posting because you fear getting negative replies you might want to consider moving to another site.
>>
File: MVI_0244.webm (3MB, 1280x720px) Image search: [Google]
MVI_0244.webm
3MB, 1280x720px
found a motor driver which I had lying around. Now it works on 12volts. fugg yeah

>>56160467
>What university did you study/do you plan to study/are you studying in?
CE
>>
>>56160532
What anon meant to say is
Yeah, let's post university names so you can figure out who we are
>>
>>56160532
It's not a matter of fear; it's a matter of the predictable lack of ensuing constructive conversation.
>>
>>56160467
Illinois State reporting in, InfoSec major graduating this year
>>
>>56160552
No, this is clearly not what the anon meant to say, you might be thinking of >>56160483
Moreover, this is simply nonsensical.
>>
>>56160532
well whoever started this didn't even provide their own

quite a tall order to expect others to willingly divulge personal information when you aren't even willing to do it yourself
>>
>>56160547
Sick.
>>
>>56160571
Caught you out, didn't I?
>>
>>56160532
>>56160467
>Hey tell me something personal about yourself so I can shitpost about it
>Don't mind if I don't post my own university ;)
>>
>laughed when they gave me a dev server ending in .69
>had to explain to a co-worker what cooperative cunnilingus is
>>
>>56160572
MIT, I thought it was clear from the picture.

>>56160580
How so?

>>56160598
What's with all the shitposting today?
>>
Why do people use F#?
Why do people use Rust?
Why not use a real functional language?

>>56160615
so they already knew what uncooperative cunnilingus was?
must've helped with the explanation
>>
>>56160640
>F#
Functional + .NET convenience
>Scala
Functional + Java lib convenience
>Rust
"Not C"
>""""real functional language""""
lol
>>
>>56160674
>>""""real functional language""""
You love fake functional languages don't you?
You love your map reduce filter & pattern matching, that's all FP is right?
>>
What do you use for your data serialisation?

I use JSON.NET's implementation of the BSON standard and it's reader/writer for pretty much everything.
>>
what kind of people still use C++ in 2016?

is it like a cult ?
>>
>Rust finally has abstract return types in nightlies

Fucking finally.

Link to code: https://play.rust-lang.org/?gist=fcf59dcb5caff64180335122ccf83492&version=nightly&backtrace=0
>>
>>56160782
performance
>>
>>56160889
>C# comfortably sits right alongside C++ in terms of performance

Want to try again?
>>
>>56160889
manageable OOP languages are just as fast and C is twice faster
>>
>>56154748
This explains their shitty optimization
>>
>>56160924
>C# comfortably sits right alongside C++ in terms of performance
>>56160938
>C is twice faster
>manageable OOP

nice bait
>>
>>56160924
>C# comfortably sits right alongside C++ in terms of performance
This is correct in many situations, but it's really hard to compare them.

Ultimately, it's easier to write much faster code in C#, but I suspect given enough time, a C++ implementation of any given thing could be faster.

When I say given enough time, I mean literally 20x or more hours to write the optimal C++ solution.
>>
>>56160968
It's true.

An average programmer using built-in C# libraries will have a superior performing application than an average programmer writing a solution in C++.
>>
>>56160968
manageable OOP such as Java and C#

you can learn both and start being productive in a week or two

to learn C++ you need to go on a 5 year silent retreat in the Tibetan mountains
>>
>>56160290
>Every time I see someone who learned on C go to Java or C#, they always complain about not being able to program in an unsafe, unmaintainable way.
Fuck you.
>>
>>56160968
>Instead of refuting any of the arguments presented to me I will simply greentext the contents of the posts in question.

http://www.codeproject.com/Articles/212856/Head-to-head-benchmark-Csharp-vs-NET

At least attempt some form of basic Google-based research before you open your mouth.

You can crank out far more robust code far faster and have it be as performant as the majority of C++ work which takes twice as long.

If you want to get into hyper optimising some bit of C++ code then you're a moron who should be using C for his performance critical application anyway.

Get outta here retard, this place is meant to be for programmers.
>>
>>56161023
Did I hit a sore spot, sweetie?
>>
What software for programming should I use as a complete beginner?
>>
>>56160996
>I suspect given enough time, a C++ implementation of any given thing could be faster.
true, but it'll have to move more and more towards C

C is really fucking fast
>>
>>56161041
Learn C
>>
>>56161016
>manageable OOP such as Java and C#
> being productive
>to learn C++ you need to go on a 5 year silent retreat

>>56161026
>look at my handpicked benchmark
>you can spend hours ... handcracked C++ code
>>
>>56161041
What language are you going to learn?
>>
>>56161041
Pick one of the Big 4: Java, C#, C++, Python (C# and Python are the most beginner-friendly here)

Learn SQL at some point, too.
>>
>>56161042
>it'll have to move more and more towards C
You mean C++
>>
>>56161053
c++
>>
>>56161051
Well you simply won't listen to reason, so there's very little point arguing with you.

If you'd like to refute my point about C# being as fast or faster than C++ in both execution speed and development time then you're welcome to provide some evidence for that, I provided one random link from the top of a Google search that I didn't even look inside of.

Why did I not even bother looking at it? Because I know I'm right.
>>
>>56161051
Did you even read the article?

It shows both languages being superior in different real-world use-cases.

C++ is not always faster than C#. C# is not always faster than C++.

C# is generally much faster to write in than C++, which is where the value in C# lies: rapid development and ease-of-use.

I'm not even the anon who posted that, but it's a very fair article and the author even admits and corrects some benchmarking issues that were presented.
>>
>>56161110
I think the national Suicide Hotline has an app now. Consider using that software if you're forced into learning C++.
>>
>>56161040
>equating "unsafe" and "unmaintainable"
You have zero discipline and you don't know C. You don't deserve to call yourself a programmer. Go back to jacking off in your JavaScript console.
>>
>>56161114
>My main goal is to measure the performance difference in the compiler/JIT and parts of the standard library that are used most often. I'm largely limiting my tests to the C++ standard library

>all those fucking objections
>trying to write C# code in C++
>his fucking passive defensive comments

this is worse than i thought

>C# guy
surprise surprise
>>
>>56161134
I'm not forced, it's purely for self interest and from what I've read it seems to be the program with the most applications, I mean I guess I could start in java because that's what usually schools start with but I'm not in an hurry.
>>
>>56161134
kek

if someone's a young collegefag it's probably worth spending a summer month really trying to learn the entirety of C++ with all its weirdness

other widely used OOP languages will seem like a cakewalk after that
>>
>>56161134
Fuck off with this meme
>>
>>56161026
C++ fags, check out how easy it is to work with strings in C#, it's literally the functionality of Python in a low level OOP language

https://msdn.microsoft.com/en-us/library/system.string(v=vs.110).aspx
>>
>>56161268
>low level
There's nothing low level about having garbage collection.
>>
>>56161325
there's a cost to using OOP with standardized containers, garbage collection is a minor thing in comparison
>>
>>56161185
?
>>
>>56161185
?
>>
>>56161268
Java is similar, btw.

C++ stands out like a dinosaur that forgot to die out.
>>
>>56161185
?
>>
Any book recommendations for learning Emacs? I've been using Emacs for about a year and my .emacs is mostly cobbled together from shit I've pasted off of wikis or guides. I was trying to set up my Emacs with Haskell the other day and I realized just how fucked up my configuration was since I didn't really understand it. Mastering Emacs looks good but
>$30

>inb4 read the man pages
>>
Relly? You are arguing about C++ and C#?
Well tell me,would you still be insane to make an desktop app in C++?
>>
>>56161522
Insane? No.

Inefficient and needlessly cumbersome? Yeah.

Making a simple desktop application that Just Werkz™ is much easier in something like C# or Java.
>>
make new thread I got a question and want exposure
not dying in 2 mins
>>
>>56155085
I made a script a few months ago that generates KML files for Google Earth
Are you telling me it doesn't work?
I'm at work so I can't test
>>
>>56155313
I'm a fairly novice programmer - what is something like this used for?
>>
>>56161840
Mental self-wankery, because a superior solution already exists.
>>
>>56154869
>>56154889
>>56158890
>>56158844
>>56159449

Wow, when did /g/ get so full of misogynistic assholes? Women have done absolutely nothing wrong you fedora tipping dicks. Oh, are you scared women are doing better in """"your"""" field than you are? Yeah well you better be afraid, women are coming in stronger than ever to your little boys club, assholes, and we're going to make this a safe respectable industry. It's about time well paying positions are open to the less privileged instead of just greasy haired white guys. Assholes.
>>
File: 20160507-132205_1462639103086.gif (787KB, 91x125px) Image search: [Google]
20160507-132205_1462639103086.gif
787KB, 91x125px
>>56161906
I'm so sorry you had to see this.
>>
I can't remember, are we supposed to insult posters like 56161906, or is it preferable to ignore them?
>>
New thread >>56161932
>>
>>56161906
> greasy haired white guys

this is vile racism against lonely white men, shame on you
>>
New thread

>>56161481
>>56161481
>>56161481
>>
>>56161871
>>56161943
real new thread made 3 minutes before the fake thread
>>
>>56162027
>>56162029
>>56161932 is the only read thread
1: The only thread made after the bump limit
2: The only thread that was linked to this one
>>
>>56162029
>>56162027
delete your hard drives
>>
>>56162027
>>56162029
>>56161943
YOU HAD ONE JOB
>>
>>56155291
Yeah, you can use scheme, or cl. you could even use haskell probably if you wanted
>>
>>56155116
> lisp has the smallest development time
just as expected
>>
>>56156055
how would you write apply in haskell?
>>
any androind devs here?
i have a fragment with a layout that i use as a placeholder for something else.
i can replace the layout placeholder, with a fragment, but then what if i want to replace that with a different fragment and if i want to return it back to that fragment?
can i just keep using that same id to replace the fragments?
>>
>>56162440
What does that have to do with typechecking?
In any case it's usually spelled ($):
f $ x = f x
>>
>>56162985
apply takes a function and a list of arguments, which can each be any type (so my type definition was not correct), and returns a value of any type.
Thread posts: 323
Thread images: 27


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.