[ cgl / con / g / mu / qa / w ] [ index / top / reports / FAQ / DAAS / status / transparency / fuuka ] [ img-search ]
As Dark As My Soul v2 Yotsuba Green

/g/ - Technology (Full Images)

No, we aren't anywhere near of dead, just doing copy to better place. But scraping will kill our server.
View post   

File: 474 KB, 934x1000, 5.png [Show reposts] Image search: [google] [iqdb]
36690350 No. 36690350 [Reply] [Original]

What are you working on, /g/?

>> No. 36690388

algorithms+data=programming
>implying this isn't true

>> No. 36690398

Every argument that justifies homosexuality, can also be used to justify eating shit. Does that mean shit is a legitimate food, or is homosexuality just a mental illness.

>> No. 36690421

bump

>> No. 36690426

sage

>> No. 36690469

Is that Johnson guy autistic? Every time I see his posts, he appears to be trying to cause offense to someone, so I'm wondering if it's something autism-y that causes him to behave that way.

>> No. 36690485
File: 537 KB, 1920x985, boobs.png [Show reposts] Image search: [google] [iqdb]
36690485

>> No. 36690500
File: 51 KB, 604x516, Screen Shot 2013-09-12 at 5.14.13 AM.png [Show reposts] Image search: [google] [iqdb]
36690500

How do compile Android @_@

>> No. 36690582

>>36690500

Click the play button in eclipse.

>> No. 36690643

>>36690469

There's a difference between trying to cause offense and being blunt. If you can't deal with people being forthright with you then I suggest you find another place to spend your time and another hobby, because all the best people in the tech field don't care about your feelings.

The tech industry is hostile to women? That's because we like it when you check your emotions at the door.

>> No. 36690794

>>36690643
Like!

>> No. 36691026

>>36690643
3edgy5me

>> No. 36691059

>>36690643
>That's because we like it when you check your emotions at the door.
Which is why there are no flame wars in tech-oriented forums, right?

>> No. 36691119

>>36691059
He was obviously referring to all the shit women bring in, not the good old "get mad at your opponent".

>> No. 36691130

>>36691026
>leeel le edgy XD XD your post has been countered x---DDDD
>>>/v/

>> No. 36691305

>>36691119
Oy vey, the poor beta males are getting scared!

>not the good old "get mad at your opponent".
Getting mad = having emotions.

>> No. 36691341

>>36691305

Nobody minds you having emotions that are conducive to getting things done. Stop being so fucking stupid.

People don't mind if you're mad nobody is listing to your point (it is, in fact, the correct emotion in the face of people like you), only if you're going to cry about unfairness and big mean bullies and blah blah blah.

>> No. 36691391

>>36691341
You wrote:
>check your emotions at the door

>Stop being so fucking stupid.
Guess you should learn to write then.

>the correct emotion in the face of people like you
Stay mad, moron.

>blah blah blah
You mean like emacs vs. vi?

>> No. 36691417

>>36691391

Rationality > Justified anger > All your bitch emotions

You are making the mistake of thinking I'm saying that because discourse without emotion is preferable that no emotion is the only way anything can get done. You are failing to see that despite the fact that all emotions are bad when trying to reach a rational conclusion that THEREFORE ALL EMOTIONS ARE EQUALLY BAD. This is a Fallacy of Gray.

http://lesswrong.com/lw/mm/the_fallacy_of_gray/

QED bitch educate yourself and smarten up.

>> No. 36691426

>>36691417
>lesswrong.com
toplel

>> No. 36691435

>>36691417
>Rationality > Justified anger > All your bitch emotions
Citation needed. Everybody claims their anger to be justified, for one.

>> No. 36691462

>>36691417
anger is never justified
also how important are tripcodes on an ononymous message board

>> No. 36691482

>>36691426

Ad Hominem. Refute the point made in that article or concede it.

>>36691417

s/ARE/& NOT/

>>36691435

So lets taboo the word "justified" and replace "justified anger" with "on-topic anger".

Whining and crying about tone is noise drowning out the signal.

>>36691462

>anger is never justified

Don't be such a little fucking bitch.

>also how important are tripcodes on an ononymous message board

As important as crybabies like you make them.

>>>/b/

>> No. 36691494

>>36691462
>also how important are tripcodes on an ononymous message board
If your dick is so small you have to mention your "massive johnson" all the time: Very important.

>> No. 36691514

>>36691482
>Refute the point made in that article or concede it.
Make me, internet tough guy.

>on-topic anger
Everybody claims their anger is on-topic.

>Whining and crying about tone is noise drowning out the signal.
Whining and crying about emacs vs. vi is noise drowning out the signal.

>> No. 36691519

>>36691482
>Whining and crying about tone is noise drowning out the signal.
so is insulting other people

>> No. 36691534

So why is the DPT now 100% drama?

I didn't realize you were all women.

>> No. 36691540

>>36691534
Because of some guy and his massive johnson.

>> No. 36691548

>>36691482
>Ad Hominem
impressive, you know a latin expression

>> No. 36692158

>>36691534
Newfags falling for the johnson kid's shitposting.

>> No. 36692184
File: 77 KB, 500x573, thanks doge.jpg [Show reposts] Image search: [google] [iqdb]
36692184

This has gone quickly offtopic

>> No. 36692880

which one is the active thread guys, there's like 6 of them in the catalog

>> No. 36692902

>>36691534
We're all little girls here.

>> No. 36692922

Can I learn PyGame in a day provided I'm a genius?

>> No. 36692934

>>36690350
Use alpha transparency.

>> No. 36692935

>>36690500
By putting it on a case sensitive filesystem maybe.

>> No. 36692945

thanks doge

>> No. 36692961

>>36692880
Looks like this one: >>36678516

>> No. 36693002

>>36692961
>last post is 2 hours ago (except the 1 recent bump)
this one looks more active

>> No. 36694852

I have been working on ChanB and, to my surprise, the captcha system can be bypassed if a bot kept using the same cookie with the same correct captcha resolution to spam [I store the value of the captcha in a cookie, it's encrypted, but still the bot can ask a human to solve the image, and then keep using the same captcha with the human-provided resolution to spam].

What do I do ? I was first storing the cookie in the asp.net session, which I believe it's server side temporary storage. But the session can be recycled at any time and therefor users may get a [bad captcha] error even if they typed it correctly.

Then I thought about setting the captcha cookie to null. But then I thought about the bot who won't accept this particular cookie request and keep using the same old resolved captcha with it's cookie.

>;_;

>> No. 36694943

How do I find a job in the programming field?

I mean, I could just self-teach all the industry standard languages and get the necessary skills. But will they even hire people without any prior work experience?

>> No. 36695005

Haskellers, I need your help
I'm trying to make a pastebin-like WAI application. Each paste has an expiry time. I need a way to check which pastes need deleting once every five minutes and delete them. With the WAI interface I can only perform actions when I receive a request, so how can I do this?

>> No. 36695009

>>36694943
You need a certificate.

You see, that is the problem most of people is facing. A retard having a certification in computer science for example can get hired immediately, even if he is a complete retard and know nothing. On the other hand, an excellent programmer with no certificate have a extreme tiny chance of getting a job.

You should get a certificate and teach your self all that. This way you can get a Job.

>> No. 36695066

>>36690469
After seeing his response to this, I think I may as well just agree. Oh well, time to filter.

>> No. 36695097

>>36695005
Run a second thread?

>> No. 36695118

>>36690398
>Every argument that justifies heterosexuality, can also be used to justify eating shit. Does that mean shit is a legitimate food, or is heterosexuality just a mental illness.

>> No. 36695138
File: 93 KB, 1036x454, mail.png [Show reposts] Image search: [google] [iqdb]
36695138

I'm making a "cloud storage" program that encrypts and stores files as messages in your email.
Most services give you gigabytes of storage, so why not use it for something other than email?

Pic related is what the mailbox looks like with an mp3 and a jpeg stored in it

>> No. 36695231

>>36695138
Cute. Would it be possibly to extend this to some arbitrary contiguous block layer and use it as a generic block device, eg. mounting it in the Linux kernel?

I wouldn't mind a few more gigabytes of free storage space on my NAS.

>> No. 36695310

>>36695138
I'd recommend Base64 in case they truncate non-printable characters for whatever reason.

>> No. 36695327

>>36695310
>in case
Just test it and see what they *do* support. If you don't need base64 then it'd be a huge waste.

>> No. 36695398
File: 27 KB, 214x170, 1266808453504.png [Show reposts] Image search: [google] [iqdb]
36695398

>>36695310
it is base64 encoded, thats just gmail decoding it in the presentation

>>36695231
this is what I want the end result to do; it's tricky though, because if you want to change just 1 byte of a message, you have to upload a whole new message; there is no editing
I can split it into smaller "sector sizes," i.e. each message holds a smaller amount of data, but then it takes a bit longer to seek

>> No. 36695428

>>36695398
>gmail
>year 1 of the lord Snowden
Also, what's the point of decrypting base64 in a text display?

>> No. 36695459

>>36695398
>but then it takes a bit longer to seek
I suddenly realized I have no idea how this would actually work in practice. What kind of API does G-mail expose? I know they support IMAP and stuff but I don't know about its internals too well.

Can you just request to see, eg. e-mail #x in your inbox, and have that be indexed in a reasonable timeframe? Or do you have to crawl through a list of e-mails every time?

What does the interface look like, basically?

>> No. 36695473

>>36695428
gmail because they give 15GB storage, and the files are encrypted so if they read it who cares

i dont know why the web client is decoding the base64

>> No. 36695503
File: 642 KB, 5000x3972, 1379001947227_hd.png [Show reposts] Image search: [google] [iqdb]
36695503

>>36695398
out of boredom, I made this for you :3

>> No. 36695539

How easy is it to cross-compile with GHC?

>> No. 36695572

>>36695459
it operates entirely via IMAP.

IMAP can be searched, but it's usually slow or shitty or wont index your messages until later.
Email messages are fetched by a 64-bit unique ID. To get a list of these IDs, you have to search...

However, since searching is expensive and unreliable, the file index is stored in a message with the Flagged/Starred flag set, which is makes it easy to find. So to download a file, the process is
>run `UID SEARCH FLAGGED` command
>download and decrypt the message
>read the file list for the file you want, and get a list of the "sectors" (message UIDs) it is in
>download and decrypt each message

And to store a file:
>Split the file into "sector-size" chunks
>encrypt and upload, keep track of the UIDs the messages get
>add/replace an entry to the file list with the UIDs
>upload the new file list
>delete the old file list, and flag the new file list

It's unfortunately complex

>> No. 36695578

>>36694943
devbootcamp.com

>> No. 36695592

>>36695539
http://ghc.haskell.org/trac/ghc/wiki/CrossCompilation

>> No. 36695615

>>36695572
I think I would be fine with a version that stored the file table locally so I didn't have to synchronize it to and from g-mail, at the expensive of cross-device concurrency.

>> No. 36695623

>>36695592
You misunderstand, I don't want to cross-compile GHC itself. I want to use GHC to cross-compile.

>> No. 36695700

>>36695615
like you said, I might just have it operate as a block device and let the filesystem parts be handled by an actual filesystem

>> No. 36695705

>>36695623
Did you read the page I linked you?

>There are two common cases:
>Building a cross-compiler: Create a compiler that runs on one platform, but targets another. Examples are building a GHC that:
> runs on Mac OS X, but targets iOS
> runs on x86_64 linux, but targets i386
> runs on some existing GHC supported platform, but targets a smaller embedded platform

It addresses this, among with the issue of cross-compiling GHC itself (ie. bootstrapping it).

>> No. 36695712

>>36695705
Oh, I seem to have overlooked that part.

>> No. 36695716

>>36695700
You'd still need a pagefile or something to keep track of which sector in the block device corresponds to which 64-bit ID, no?

>> No. 36695763

>>36695716
yeah. but it would be simpler than keeping track of filenames too

>> No. 36695845

>>36695763
Oh, indeed. That's what I'm proposing as well. Also, I want to LVM it together with other cloud storage providers and have a big filesystem spanning all of the little sources.

>> No. 36695863

>>36695845
>mfw mkfs.ext4 /dev/mapper/gmail

>> No. 36696122

>>36695863
In fact, you could handle encryption that way, by just using dmcrypt instead of some potentially insecure homebrew crypto solution.

>> No. 36696148

Reminder that Java and Pthon are not OOP

>> No. 36696185

>>36696122
actually it uses openssl

>> No. 36696268

>>36696185
I wouldn't really trust OpenSSL, to be fair. It has a horrible track record when it comes to security, and it's way too complicated/overkill.

>> No. 36696276

>>36696122
you're right though, encryption is not something this needs to handle on its own, i suppose

>> No. 36696520

>check log for DPTBot

[12-09-2013 14:06:01] Found 7 DPTs, no new threads found, nothing posted to Twitter.

why /g/, why?

>> No. 36696561

Zork clone in haskell because I'm utilising the power of amazing haskell

>> No. 36696654

>>36696561
I think that might work nicely with http://hackage.haskell.org/packages/archive/continue/0.2.0/doc/html/Control-Monad-Continue.html

It'd be an interesting project, at least

>> No. 36696661

>>36696561
> haskell
kek

>> No. 36696734

>>36696661
>not haskell
My sides' position in orbit cannot be changed.

>> No. 36696804

Fizzbuzz research, i made a next generation fizzbuzz

>> No. 36696815

>>36696734
>not using agda
stay pleb, my friend.

>> No. 36696840

>>36696815
>not turing complete
topkek

>> No. 36696952

>>36696840
>poorly implementing Curry-Howard correspondence because too pleb to math, need to allow non-termination/infinite loops because cant into patrician type systems

toplol indeed, haskell.

>> No. 36696962

My head hurts...
interface ListVisitorI {
ListD forEmpty();
ListD forValue(Object v, ListD rest); }

abstract class ListD {
abstract int getLength();
abstract ListD accept(ListVisitorI ask); }

class EmptyList extends ListD {
int getLength() {
return 0; }
ListD accept(ListVisitorI func) {
return func.forEmpty(); } }

class ValueList extends ListD {
Object v;
ListD p;
ValueList(Object _v, ListD _p) {
v = _v;
p = _p; }
int getLength() {
return 1 + p.getLength(); }
ListD accept(ListVisitorI func) {
return func.forValue(v, p); } }

class SubstV implements ListVisitorI {
Object newv;
Object old;
SubstV(Object _old, Object _newv) {
old = _old;
newv = _newv; }
public ListD forEmpty() {
return new EmptyList(); }
public ListD forValue(Object f, ListD rest) {
if (f.equals(old))
return new ValueList(newv, rest.accept(this));
else
return new ValueList(f, rest.accept(this)); } }

class PrintV implements ListVisitorI {
public ListD forEmpty() {
System.out.println("nil");
return new EmptyList(); // Ezt csak így ideraktam.
}
public ListD forValue(Object f, ListD rest) {
System.out.print(f);
System.out.print(" ");
return rest.accept(this); } }

class Main {
public static void main(String args[]) {
System.out.println(
new ValueList(new Integer(1),
new ValueList(new Integer(2),
new EmptyList()))
.getLength());
new ValueList(new Integer(1),
new ValueList(new Integer(2),
new ValueList(new Integer(4),
new ValueList(new Integer(2),
new EmptyList()))))
.accept(new SubstV(new Integer(2), new Integer(3)))
.accept(new PrintV()); } }

>> No. 36696970
File: 153 KB, 631x627, 1339124145941.gif [Show reposts] Image search: [google] [iqdb]
36696970

>>36695578
>need to have $12k beforehand for tuition, and probably even more to cover living expenses during those 9 weeks because you won't have a job

So even when this program is aimed to help struggling people find a job they still expect you to have tons of money magically saved up to be able to apply.

>> No. 36696984

>>36696962
>dem braces
why

>> No. 36696985

>>36696952
Sorry, I use a real proof language like HOL4 or PVS rather than those curry-howard self-congratulations such as Coq or Agda.

>> No. 36697140

>>36696984
What should I do with them?

>> No. 36697174

>>36697140
clearly you should shove them up your gay cock filled ass

>> No. 36697224
File: 593 KB, 245x229, 1378532991128.gif [Show reposts] Image search: [google] [iqdb]
36697224

>>36697174
Rude!
I'm hurt ;_;

>> No. 36697246

>>36697174
yes please!

>> No. 36697248

>>36696962
Get on my level

http://hub.darcs.net/nand/csharp/browse/InfEnumerable/Enumerable.cs

>> No. 36697272

>>36697224
kill you're self

>> No. 36697288
File: 143 KB, 833x696, anti-bully.jpg [Show reposts] Image search: [google] [iqdb]
36697288

>>36697272
Stop bullying!

>> No. 36697291

>>36697272
>you're self
but he is self

>> No. 36697304

>>36697291
Is he Guido?

>> No. 36697313

Daily reminder that haskells IO is not more pure than Erlangs

>> No. 36697321

>>36697313
Daily reminder that people who don't know shit about the topic at hand shouldn't talk about it.

>> No. 36697323

>>36697313
Daily remind that Haskell has no I/O

>> No. 36697327

>>36697304
no, self.__guido__ == true

>> No. 36697328

>>36697304
I'm not using OOP for it's cross-platform properties.

>> No. 36697342

>>36697321
Daily reminder that this is true

>>36697323
>what is the IO monad?

>> No. 36697354

>>36697342
>>what is the IO monad?
not I/O.

>> No. 36697412

main = do
name1 <- getLine
name2 <- getLine --haskell is pure, so name2 is same as name 1 xDDD

>> No. 36697428

>>36697412
>I can't distinguish referential transparency from functional purity, hear me out please!

>> No. 36697437

>>36697428
>so much buzzwords
With the same logic, C is pure

>> No. 36697440

>>36697428
Mah nigga.

>> No. 36697467

>>36697437
Trying to incite the same faulty debates in short succession is the sign of a bad troll who is too uncreative to come up with new tricks.

>> No. 36697476

>>36697437
>>36697467
http://conal.net/blog/posts/the-c-language-is-purely-functional

>> No. 36697490

>>36697467
too bad, keep lying to yourself then

>> No. 36697525
File: 245 KB, 340x340, Notto disu shittu agen-av.png [Show reposts] Image search: [google] [iqdb]
36697525

>hurf durf haskell is not pure

https://archive.installgentoo.net/g/thread/S36652891#p36655893

>> No. 36697527

>>36697476
It completely blew my mind that conal posted about the exact same argument I raised in a completely unrelated /g/ thread a few days ago (except of course that he did it several years before me).

Great minds think alike, huh?

>> No. 36697547
File: 709 KB, 1000x1000, tomoko-computer.png [Show reposts] Image search: [google] [iqdb]
36697547

>>36697476
This is awesome, someone must change the wikipedia article about C (again)

>> No. 36697569

>>36697525
see >>36697476
Haskell is as pure as C
>tfw feels good man

>>36697527
I remember you!

>> No. 36697613

>>36697547
That's a DS, not a computer.

>> No. 36697670

>>36697613
DS is a computer

DS it has an ARM7 CPU
DS Lite has one ARM7 and one ARM9
DSi has two ARM
and 3DS has a Dual-Core ARM11

(from wikipedia)

>> No. 36697702

>>36697670
You are being unnecessarily ambiguous in your file naming then. A computer is also a machine, which is an object itself, but tomoko-object.png wouldn't be helpful, now would it?

>> No. 36697714

>>36697321
Who doesn't know shit now bitch?

>> No. 36697741

>>36697702
>tomoko-object-oriented-computing.png

>> No. 36697759

>>36697702
Not sure if you use tomoko as an object but I use my DS lite as notebook and for my ARM training

>> No. 36697760

>>36697741
I always knew Tomoko was a pleb of the worst kind.

>> No. 36697884

>>36697760
w-why anon-chan?

>> No. 36697912

>tfw the next thing you have to work on is difficult/annoying
>tfw you lose all motivation

>> No. 36697951

Why is Haskell's type system so great?

>> No. 36697960

>>36697951
its not

>> No. 36697961

>>36697951
cuz it isn't, try F*

>> No. 36697964

>>36697960
Why?

>> No. 36697976

>>36690643
For someone who hates Zed Shaw your attitude isn't that dissimilar from his.

>> No. 36697977

>>36697951
> haskell
> great at anything
kek

>> No. 36697978

>>36697961
MS shills please

>> No. 36697996

>>36697978
>implying MSR doesn't fund GHC

>> No. 36698007

>>36697978
>Haskell supported my MS
>MS shills please
double extra topkek

>> No. 36698013

>>36697996
>>36698007
>implying that matters when F# can only compile to .PATENTS and Javashit

>> No. 36698014

>>36698007
*by

>> No. 36698023

>>36698013
>implying F# and F* are the same thing
>ishygddt

>> No. 36698046

>>36698023
I meant F*. F# compiles to .PATENTS, too, but that was not my point.

>> No. 36698056

>>36698013
>can only
>implying I will not make my own compiler which compiles to emacs bytecode and GCC assembly
>implying it will not run in mono
>implying software patents are vaild in europe
>implying javashit is not the only assebly for the web

>> No. 36698069

>>36697961
>F*
>babby's first dependent typing

try Epigram 2

>> No. 36698077

>>36698056
>implying your own compiler will produce code with a runtime performance better than two years for fizzbuzz
>implying mono won't die soon
>implying a project can survive when it's illegal in the US
>implying javashit is anything but shit

>> No. 36698108

x = printf ("xxx\n"); and y = getstring (); are referential transparency in C :3

>> No. 36698119

>>36698108
>x = printf ("xxx\n");
Won't compile.

>> No. 36698131

does you hate haskell because fuuzetsu insulted your mom?

>> No. 36698144

>>36698119
int printf ( const char * format, ... );
>hmm

>> No. 36698148

>>36698131
They hate it because of nand's one-liner spam, probably.

Everyone likes Fuuzetsu.

inb4 go to bed, fuuzetsu

>> No. 36698150

>>36698077
>implying your own compiler will produce code with a runtime performance better than two years for fizzbuzz
the GCC/LLVM will do the optimisation for me, also F* as Pure (kek) Functional language will be very easy to optimise

>implying mono won't die soon
It will not

>implying a project can survive when it's illegal in the US
yes, very easy

>>implying javashit is anything but shit
too bad, javashit is the only portable language for the web

>> No. 36698159

>>36698148
>one-liner spam
you're just jealous your languages aren't as concise

>> No. 36698165

>>36698159
I use Perl, so no.

>> No. 36698172

>>36698131
I don't hate haskell, I hate bollshit

>> No. 36698189

>>36698165
>implying perl is as concise for anything beyond trivial algorithms and string manipulation
What does, say, a safe multi-user chat server look like in idiomatic perl?

>> No. 36698210

>>36698189
Not him but I would make it in Erlang

What does, say, a safe multi-user chat server look like in idiomatic Haskell?

>> No. 36698212

>>36698077
>implying a project can't survive when it's illegal in the US
x264 is surviving fine.

>> No. 36698237

>>36698119
printf returns the number of characters printed.

>> No. 36698251

>>36698131
I hate nand's bullshit, Füzetsu is cool :3

>> No. 36698257

>>36698210
{-# LANGUAGE OverloadedStrings #-}

import Control.Applicative
import Control.Concurrent
import Control.Concurrent.STM
import Control.Monad (forever, void)

import Data.Attoparsec hiding (parse)
import Data.ByteString (ByteString, pack)
import Data.Monoid ((<>))

import Pipes
import Pipes.Attoparsec
import Pipes.Network.TCP
import Pipes.Parse
import Pipes.Prelude

main = withSocketsDo $ do
room <- newBroadcastTChanIO
let forkRoom = atomically $ dupTChan room
sendRoom = atomically . writeTChan room

serve HostAny "6001" $ \(s,_) -> do
let lines = void . parseMany line $ fromSocket s 4096

sendLn s $ "Hello, what is your name?"
(Right (_,name), rest) <- runStateT draw lines -- parse a single line

sendRoom $ name <> " connected."
c <- forkRoom

-- Relay messages back to the client
forkIO . forever $ atomically (readTChan c) >>= sendLn s
-- Listen for messages for as long as we're connected
runEffect . for lines $ \(_, m) -> lift . sendRoom $ name <> ": " <> m
-- Clean up.
sendRoom $ name <> " disconnected."

where sendLn s m = send s m >> send s "\n"

-- FIXME: parse a Text instead of handling UTF-8 values directly
line :: Parser ByteString
line = pack <$> many1 (notWord8 10) <* word8 10 -- \n


Note 100% idiomatic since I'm still waiting on pipes-text to be compatible with pipes-4, but the main issue here is working with ByteString instead of Text, which is the wrong abstraction.

>> No. 36698271

>>36698150
Javashit is javascript? I was reading it as Java.

>> No. 36698283

>>36698077
http://en.wikipedia.org/wiki/DotGNU#DotGNU_and_Microsoft.E2.80.99s_patents

>DotGNU’s implementation of those components of the .NET stack not submitted to the ECMA for standardization has been the source of patent violation concerns for much of the life of the project. In particular, discussion has taken place about whether Microsoft could destroy the DotGNU project through patent suits.

>The base technologies submitted to the ECMA may be non-problematic. The concerns primarily relate to technologies developed by Microsoft on top of the .NET Framework, such as ASP.NET, ADO.NET, and Windows Forms (see Non standardized namespaces), i.e. parts composing DotGNU’s Windows compatibility stack. These technologies are today not fully implemented in DotGNU and are not required for developing DotGNU-applications.

protip:
1) get mono
2) remove the non-ECMA microsoft shit
3) done

>> No. 36698294

>>36698257
> haskell
kek

>> No. 36698308

>>36698257
ugly as fuck

>> No. 36698323

>>36698271
yeah

>> No. 36698328

>>36698210
Now I want to make one in Erlang.

What does safe mean?

>> No. 36698334

>>36690643
>because all the best people in the tech field don't care about your feelings.
>The tech industry is hostile to women? That's because we like it when you check your emotions at the door.
I'm ashamed of you, son.

>> No. 36698362

>>36698328
>What does safe mean?
Won't crash no matter what kind of input the user sends it (though I'm excluding DoS-type attacks since they're hard to reason about).

>> No. 36698380

>>36698328
I think it would be good idea to use the OTP too

>> No. 36698382

Why is everything an int in C? Why are strings ints? Why are arrays ints? How does this make any sense?

>> No. 36698406

>>36698382
>Why are arrays ints
they aren't

everything in C is an integer or a pointer

>How does this make any sense?
I think it does, it's very simple

>> No. 36698415

>>36698382
because the only real datatype is numbers. A char is just a number interpreted some way, a string is just an array of numbers interpreted some way. An array is just two numbers, a start point an an end point, that tell you where to find the other numbers to interpret.

Everything's numbers.

>> No. 36698422

>>36698382
C is a shit hobbyist language, try to stay away from it.

>> No. 36698435

>>36698415
And everything is just a function, too.

And both numbers and functions are sets. Everything is just sets.

Why don't we use some programming language based on axiomatic set theory?

>> No. 36698439

>>36698257
Can't you just import chatserver?

>> No. 36698444

>>36698406
>>Why are arrays ints
>they aren't
>everything in C is an integer or a pointer
So arrays are pointers?

>>36698415
Wouldn't it make sense to have type declarations be a little different then? Why do we provide special cases for chars and floats if we aren't doing the same for strings and other things?

>>36698422
C and C derivatives make up most of the top 5 most used languages in the world, unfortunately.

>> No. 36698450

>>36698422
your mom is a shit hobbyist language

>> No. 36698462

>>36698435
No, you can make everything a function conceptually, but it's still just ints at a hardware level. Ints is all there be, no matter how your language of choice dresses them up.

>> No. 36698477

>>36698462
an "int" according to C would be dressed up from binary, tho

>> No. 36698484

>>36698444
I forgot, we are elso have structs, unions and floats

>Why do we provide special cases for chars
we don't

>> No. 36698500

Trying to make a command line dictionary in python with beautifulsoup. It's going bad. A little help?

from bs4 import BeautifulSoup
import urllib.request

print("**************************************")
print("WELCOME TO THE COMMAND LINE DICTIONARY")
print("**************************************")
print("\n")

print("What word would you like to define?")

prompt = '> '
word = input(prompt)

define = urllib.request.urlopen("http://www.merriam-webster.com/dictionary/"+word).read()
soup = BeautifulSoup(define)

definition = soup.findAll('div', {"class":'ssens'})

for found in definition:
print(definition)

>> No. 36698503

>>36698444
Because without a char type, you can't implement chars. Without a float type, you can't implement floats. The datatypes are there so we have variables of the correct size to hold the information. A string? That's just an array of characters, we can represent that absolutely fine.

It's not user friendly, but C is essentially just verbose assembly.

>> No. 36698504

>>36698439
Maybe? I don't know. It might defeat the point a bit.

>> No. 36698517

>>36698477
A binary integer is just an integer. "Binary" isn't something magic, it's just a counting system.

>> No. 36698534

Anons, can I publish a scientific paper even if I'm not in university.

>> No. 36698546

>>36698462
No, you can make ints from sets conceptually, but it's still just sets at the mathematical level. Sets is all there be, no matter how your language of choice dresses them up.

Your pretty x86 processor manipulates sets. Deal with it.

>> No. 36698550

>>36698503
>It's not user friendly, but C is essentially just verbose assembly.
As is any other language, that's not really an excuse

>> No. 36698555

>>36698534
no, underaged faggot

>> No. 36698558

>>36698444
Arrays are pointers to a contiguous block of memory, yes. Fun fact: You don't even get a length along with that pointer, you'll need to either pass it along to every function that needs it or use a sentinel value, like null terminated strings do.

>> No. 36698559

>>36698534
Yes. I've received an offer before but I was too lazy to follow up on it.

>> No. 36698562

>>36698534
Everyone will ignore it, but why not? Why are you even asking here?

>> No. 36698566

>>36698534
only universities are allowed to do that, sorry

>> No. 36698567

>>36698534
Typo. It's was a question.

>> No. 36698569

>>36698546
We aren't talking about maths, we're talking about hardware. The actual implementation, not the theory.

>> No. 36698583

>>36698283
>remove the non-ECMA microsoft shit
Have fun supporting anything written for Windows then. There is next to nothing non-trivial that doesn't use this shit.

>> No. 36698584

>>36698550
No, other languages provide features that would be unreasonable to do in assembly. C you can essentially hand-translate without any real issue.

>> No. 36698594

>>36698569
The implementation is based on the theory. Your processor “adding two integers together” implicitly assumes a definition of what integers are and what adding is, which modern mathematics formalizes in terms of sets.

It's just a higher level of abstraction - but the same argument you make about “strings are just numbers, guys” can be made for “numbers are just integers, guys”. Now kindly shut up, thanks.

>> No. 36698595

>>36698562
Because my researchs are tech related, and most of you have a cs degree.

>> No. 36698596

>>36698583
>Have fun supporting anything written for Windows then
Same goes for C and for most of the languages

>> No. 36698605

>>36698584
>No, other languages provide features that would be unreasonable to do in assembly.
How do you suggest these languages get interpreted or compiled, then? They may be more abstracted, but they're still programming languages.

>> No. 36698616

>>36698550
>As is any other language, that's not really an excuse
Any turing complete language, perhaps.

>> No. 36698623

>>36698546
>using set theory as your foundation
>not arithmetic

I stopped caring about math when I was introduced to the concept of infinite cardinals. What a crock of shit. If your theorem can only be proven by inventing numbers that can't exist, like some kind of math deity , then you are fucking wrong and the math is flawed.

>> No. 36698639

>>36698594
>shut up
please, don't be rude
thanks :3

>> No. 36698641

>>36698594
There's nothing implicit about circuitry, anon, it's all there in the metal. If you want to argue about petty minutiae then more power to you, but it doesn't change a thing. Modern computers are not inspired by lambda calculus, they are built after a turing machine.

>> No. 36698650

>>36698595
>and most of you have a cs degree.

toplel

>> No. 36698651

>>36698596
C is not specifically designed for applications. Also, many languages on a similar level to C# have cross-platform abstractions and don't use the Win API directly.

>> No. 36698657

>>36698605
With an interpreter or compiler, obviously. Are you implying that, say, C# is just as easy to hand-compile as C? Fuck no.

>> No. 36698665

>>36698623
>numbers that can't exist
Whether numbers exist or not is part of philosophy and far removed from practical mathematics.

Hell, even formalizing axioms draws heavily into philosophy, but everything we can do *inside* the scope of those axioms is pure mathematics. And that's where integers come from, son.

>> No. 36698674

>>36698651
>C is not specifically designed for applications
and? Many applications are using C

>> No. 36698684

>>36698641
>Modern computers are not inspired by lambda calculus, they are built after a turing machine.
I beg to differ http://www.cs.york.ac.uk/fp/reduceron/

Oh, also, modern processors have very little to do with turing machines. It's a completely different architecture.

Ps. turing machines aren't formalized using numbers, they're based on abstract symbols. But I'm sure you knew that ~

>> No. 36698685

>>36698657
Anything that can be hand-compilation can also be computer compiled. The difficult is irrelevant because it's not impossible. C# (or Python, or any other higher-level language for that matter) is just another few layers of abstraction from the machine when compared with C.

>> No. 36698696

>>36690469
>Is that Johnson guy autistic?
No, he just doesn't give a fuck about niceties.
I cannot remember him ever trolling, for instance.
Also consider that everytime he fronts his own opinions, there are plenty of cunts around that flame him too.

He's like the one single tripfag on /g/ that shouldn't be banned on principle.

>> No. 36698727

>>36698696
>Also consider that everytime he fronts his own opinions, there are plenty of cunts around that flame him too.
>fronting sexism is just the same as anything else guys!!!!

>> No. 36698737

>>36698674
What's your point?

>> No. 36698744

>>36698684
Of course I know that, that's not even CS 101. Our abstract symbols are represented numerically. Modern processors in practise have very little to do with turing machines, but I assume we've stopped talking about "practise" given that it's undeniable that actual computers work on binary integers. The turing machine is still the primary inspiration for their conceptual working. The lisp machine never took off, man.

>> No. 36698747

>>36698737
no, what's YOUR point?

>> No. 36698766

>>36698685
You're completely missing the point. C requires very little effort to hand compile, it is essentially verbose assembly. C# requires an extraordinary effort to hand compile, it makes no attempt to gain that 1:1 mapping from HLL code to assembly code. You can start at the top of a C file and just compile down, you cannot do this with many higher level languages. At some point they become ASM, yes, but it is not mapped as precisely as it is C.

>> No. 36698789

>>36694852
Which captcha solution are you using?

>> No. 36698802

>>36698766
What if my processor has C# as its assembly?

>> No. 36698807

>>36698747
My point is that there is no big .NET application that doesn't rely on MS-specific shit.

This may hold true for C, but only because C wasn't designed for what you'd consider a typical Windows application. The fact that some use it is completely irrelevant.

>> No. 36698810

>>36698766
I understand your point, I just disagree with your use of "verbose". You think that "verbose" is based on whether or not one can map each line individually in a C file to ASM, whereas I would argue that, even if it's even more verbose, a language like Python could be (with a lot of effort, effort that doesn't involve line-to-line matching) expressed in C similarly, and thus represented in ASM similarly. Therefore it is a verbose C, which is a verbose ASM.
I'm arguing that whether or not
>it is not mapped as precisely as it is C
is arbitrary.

>> No. 36698813

>>36698534
Yes but you will have no publicity or credibility behind you.

>> No. 36698816

>>36698802
Then you have a shitty processor.

>> No. 36698817

>>36698651
I can only think of Java

>> No. 36698819

What is an application, exactly?

>> No. 36698834

>>36698819
Something like an app but old and boring ( -.-)

>> No. 36698836

>>36698819
A program.

>> No. 36698839

>>36698807
most of "big .NET applications" are non-free software, so i don't care

>> No. 36698844

>>36698641
So if a computer does hardware rendering of fonts, does that mean that strings are no longer just numbers?

>> No. 36698853
File: 44 KB, 460x345, app.jpg [Show reposts] Image search: [google] [iqdb]
36698853

>>36698819
a virus

>> No. 36698858

>>36698819
Applied software. A binary that is only executable when applied on an operating system.

>> No. 36698861

>>36698816
w-why?

>> No. 36698871

>>36698810
If something goes about something in an entirely different way, it is not just a "verbose thing".

>int x = 5;
is valid in both languages. In C, that's a direct mapping to an assembly instruction and some setup. In C#, there's a hell of a lot going on behind the scenes, and yes, while eventually it will get down to that one instruction and some setup, it's also going to do a lot more, from creating data for reflection to changing the generated object structures.

C is verbose assembly because what you write is what you get. C# is not verbose assembly because what you write is not at all what you get.

>> No. 36698873

>>36698858
An OS is not a app?

>> No. 36698881

>>36698858
So a binary that is executable regardless of an operating system is not an application?

>> No. 36698906

>>36698839
You do realize that this means no Wine support for those, right?

>> No. 36698908

>>36698871
>If something goes about something in an entirely different way, it is not just a "verbose thing".
My point is that it doesn't. It's abstracted further, but when you execute a higher level programming language that doesn't matter.

>C is verbose assembly because what you write is what you get. C# is not verbose assembly because what you write is not at all what you get.
"Verbose" still doesn't have a strict cutoff-point in this (or any) context, so I still can't agree with this.

>> No. 36698916

>>36698727
I don't recall claiming that, but oh well.

>> No. 36698939

>>36698817
Common Lisp, Python, Ruby, Haskell, Ocaml, Delphi...

>> No. 36698941

>>36698500
>for found in definition:
>print(definition)
>not print(found)

>> No. 36698951

>>36698906
yes (but you can install .net in the wine if you want)

I don't see any reason to use wine

>> No. 36698964

>>36698939
Interpreted languages are stored as text, not binary data. They're compiled at runtime.

>> No. 36698980

>>36698939
Why would you list all of the irrelevant languages?

>> No. 36699001
File: 365 KB, 924x1000, 1369752746334.png [Show reposts] Image search: [google] [iqdb]
36699001

Which computer programming language would Hoshii Miki from THE iDOLM@STER use?

>> No. 36699011

>>36698908
There is no strict cutoff, a language being high level and a language being verbose assembly are orthogonal concepts. In C, writing a line will not affect other code. In many HLL languages, it can.

I'm not sure which part of this is difficult. Disassemble some compiled C and you'll get almost exactly what you put in, out. Disassemble some compiled C# and what you get is going to look absolutely nothing like what you put in.

>> No. 36699016

>>36699001
pedophile please go

>> No. 36699020

>>36699001
LOLCODE

>> No. 36699024

>>36699011
Why do you keep re-explaining your point? I've already stated that I understand and disagree with it.

>> No. 36699042

>>36698980
Irrelevant languages?
You mean like SPARQL, Prolog, Guile and Vala?

>> No. 36699044

>>36699024
Because your definition of "verbose" is nonsensical

>> No. 36699052

>>36699016
But she's 16 years old!

>> No. 36699061

>>36699044
If you're having trouble with that then just look it up in a dictionary and feel better about yourself.

>> No. 36699077

>>36699001
My Miki likes C and Scheme :3
I will teach "her" some erlang someday

>> No. 36699079
File: 539 KB, 1663x1599, Test thread.png [Show reposts] Image search: [google] [iqdb]
36699079

>>36698789
I made my own.

BTW, I was working on a new style for ChanB. What does /g/ think of it ? I know it need more work, so feel free to express your opinion.

>> No. 36699106
File: 62 KB, 500x500, 1376722876058.jpg [Show reposts] Image search: [google] [iqdb]
36699106

>tfw filtering out horrible tripfags

>> No. 36699113

>>36699077

who is your Miki? does they have nice feet?

>> No. 36699118

>>36699044
>verbose :: adjective
>Using or expressed in more words than are needed.

A construct like someEnumerable.Where(item => foo(item)).Sort() is much shorter than the equivalent C or assembly would be.

>> No. 36699121

>>36699052
>That ugly beast with ugly big boobs
>16
(16 at hexadecimal) ^ 2

>> No. 36699132

>>36699079
Old and busted. Why must all image boards look the same?

>> No. 36699140

>>36698881
Directly executing applied software doesn't make sense. It contains headers and such which are only meaningful to the dedicated OS.
It won't run.

>>36698873
No it isn't. The OS (the kernel more precisely) is a program by classic terminology. Everything on top of it is an application.

>> No. 36699141

>>36698500
start with something easier

from bs4 import BeautifulSoup
import urllib2

print("What word would you like to define?")

word = raw_input('> ')

try:
define = urllib2.urlopen("http://www.merriam-webster.com/dictionary/"+word).read()
except urllib2.HTTPError:
print "no definition found"
exit
else:
soup = BeautifulSoup(define)
definition = soup.find_all("div",attrs={"class":'sblk'})
if len(definition)==0:
print "no definition found"
for found in definition:
print found.text+"\n"

>> No. 36699148

>>36699113
>who is your Miki?
a cute trap :3

>does they have nice feet?
I guess, but she doesn't show them! She isn't a slut

>> No. 36699162
File: 15 KB, 184x184, donald-duck-looking-smug.jpg [Show reposts] Image search: [google] [iqdb]
36699162

>>36699106
>tfw hiding little girls who must announce when they filter someone
>tfw I also report them for off-topic while sageing my post

>> No. 36699168

>>36699132
How should they look ? I don't know why I made it like this, guess because of 4chan.

>> No. 36699171

>>36699162
>announcing you're reports

>> No. 36699173

>>36699140
>It contains headers and such which are only meaningful to the dedicated OS.
What if it doesn't?

>> No. 36699177

>>36691548
Well, to her credit, she did use it correctly. I hardly ever see "ad hominem" used correctly.

>> No. 36699194

>>36699171
>you're
>inb4 the joke your head

>> No. 36699198
File: 94 KB, 496x2992, prog.png [Show reposts] Image search: [google] [iqdb]
36699198

I'm trying to compile some piece of shit program for homework and this fucker wont run and i dont know what the fuck i'm doing wrong, could you guys help me out?

>> No. 36699206

>>36699194
>the joke
>you're head

>> No. 36699209

>>36699148

oh... that's good. has she showed you?

>> No. 36699217

>>36699198
Try not using variable width fonts.

>> No. 36699224

>>36698964
What has that to do with anything?

>> No. 36699226

>>36699198
>C++
Stopped reading because lack of knowledge. Sorry m8.

>> No. 36699227 (Deleted) 

>>36690350
Just finished masturbating to some sasha grey vids, i have some work due in python, but i am finding the assignments harder and harder.

>> No. 36699232

>>36699171
What if he isn't a report?

>>36699162
A off-topic saging post, still a off-topic post

>announcing your reports

>> No. 36699237

>>36699168
I don't have a solution, sorry. It would be nice if someone did something different, however.

Maybe something like twitter where you could arrange threads based on keywords or tags?

>> No. 36699248

>>36699198
put a fucking : after the case statement.

>> No. 36699253

>>36699198
>system("PAUSE");

>> No. 36699257

>>36699173
Then it still won't run. The required subsystems will be missing.
Anyway, this will go to deep into OS internals.

>> No. 36699263

>>36699198
: after case

case 3:

>> No. 36699265

>>36699209
Of course not! We are not married!

>> No. 36699266

How does the case statement work in Scheme? Whenever I use it correctly I feel like I'm fucking something up, but when I feel like I'm doing it right I feel the opposite.

>> No. 36699270

>>36699198
You put this at the beginning:
int salir = 0;
But in the do-while loop you put this at the end:
while(Salir==0);
Remember to match your case.

>> No. 36699280

>>36699237
>I don't have a solution, sorry.
No problem m8, I was asking about the color scheme anyway.

Most people told me to use tags, I will think about it. Thanks.

>> No. 36699281

>>36699257
What if it doesn't use subsystems?

>> No. 36699284
File: 2.07 MB, 585x454, q.gif [Show reposts] Image search: [google] [iqdb]
36699284

a fizzbuzz running on my 4bit computer from last night, made a gif showing doing its thing

the speed is decreasing over time because my modulo calculation is pretty crude

>> No. 36699291

>>36699253
He could use these cin.get() and cin.ignore().

>> No. 36699306

>>36699284
You can use a better algorithm without modulo for the fizzbuzz

>> No. 36699314

>>36699284
Cute. Share the source code.

>> No. 36699316

>>36699281
stop it socrates, now you're trollin'

>> No. 36699320

>>36699291
She could also run it from a terminal like a normal human being.

>> No. 36699340

>>36699316
But i don't? Why you think that?
Not everyone here is trolling

>> No. 36699346

>>36699265

oh... but you are dating? what do she look like?

>> No. 36699367

>>36699284
are you a wizard?

>> No. 36699376

What's an easy way of making a 'personal assistant' activated by speech recognition in C#?

Would I have to personally go through all the switch/if statements for each command?

>> No. 36699384

>>36699042
>Guile
>irrelevant
nigga you high?

>> No. 36699401

>>36699001
Haskell, because she's lazy

>> No. 36699406

>>36699346
>but you are dating?
yes ^^

>what do she look like?
she look like a true beauty!

>> No. 36699439

>>36699306
tell me more

i doubt ill program it tho, machine code is a bitch to do

>>36699314
there you go
http://pastebin.com/g4QiY8ks
lol, have fun

>>36699367
im a time lord, i love wasting time on useless stuff

>> No. 36699491

>>36699263
>>36699248
thank you guys, that actually worked, sorry for my lack of knowledge, im trying my best to learn and our teacher is shit.
now im getting this error and i cant

>> No. 36699519

>>36699491
Did you fix your do-while loop as stated in >>36699270 ?

>> No. 36699572

I said "of cores" (like in multi-core programming) instead of "of course" to my HPC professor.

I don't think he noticed but I laughed internally.

That is all.

>> No. 36699584

>>36699406

what happen if you get married and see her feets but they are ugly?

>> No. 36699633

>>36699572
My embedded systems professor was complaining about how costly something from TI was and I said they were real cowboys.

He laughed.

Thank you for listening.

>> No. 36699686

>>36699633
I don't understand it ;_;

>> No. 36699700
File: 151 KB, 1914x876, 1379004313221.png [Show reposts] Image search: [google] [iqdb]
36699700

Just created this beauty
>>>->>>>>>>>>>>>>>>>>>+++++[>,>++++++++[-<------>]<<<[<<<<]+
[>>>>]<<[->+<<<[<<<<]>>>>+[>>>>]<<]<<[<<<<]>>>>>>>>[>>>>]<[-
<+>]<[->>+<<]>->+[-[->>+<<]>>]<++[-<<+]<<-]>>>+>>+>>+>>+>>+>
>+>>+>>+>>+>>+[>[-[<[<<]>+>[>>]<-[<[<<]>++>[>>]<-[<[<<]>+++>
[>>]<-[<[<<]>++++>[>>]<-]]]]]<-<<]>>++++++++++++++++++++++++
+++++++>-<<[[-<+]-<<+>>>+[->+]-<<]<<<[-[->+>+<<]+>[[-]<->]<[
->>++++++++++<<]>>[-<<+>>]<<<<<<]>>>>+[->+]-<[-<[-<<<<]++[-<
[-<<<<+>>>>]>[-<+<+>>]<<[->>+<<]>[-<<[->+<<<+>>]>[-<+>]>]<<<
+]->+[->+]-<+[-<+]-<---------------<+>[[-]<->]>>+[->+]-<]<<+
[[-]<+]++++++++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>[-]>[-]
>>[>++++++++[-<++++++>]<.[-]]++++++++[-<++++++>]<.


To answer pic. I am actually getting really good at Brainfuck guys, not sure if I should be proud or sad

>> No. 36699738

>>36699584
Now I remember! I had seen her feet once in the beach! They were pretty!!

I wish you to get a girlfriend like that :3

>> No. 36699742

>>36699700
Oh and to input 10, input 0 instead (it only accepts digits)

>> No. 36699750

>>36699700
Proud.

>> No. 36699754
File: 693 KB, 1034x1000, 1354651898810.jpg [Show reposts] Image search: [google] [iqdb]
36699754

Stop talking about feet, you're turning me on.

>> No. 36699759

>>36699700
Why does brainfuck exist? Is it actually useful at all

>> No. 36699769

>>36699700
god among men

>> No. 36699776

>>36699759
Because it's fun, and has an educational value.

>> No. 36699788

>>36699700
You must make:
1: A concurrent and functional brainfuck
2: JIT for brainfuck
3: GUI library

>> No. 36699794

>>36699198
De donde sos?

>> No. 36699803

>>36699776
Oh cool. I had a look a second a go and it appears to be quite the challenge. I'm going to give it a go.

>> No. 36699807

>>36699686
define: cowboy

adj. A dishonest and/or incompetent independent tradesman.

>> No. 36699812

>>36699759
It is fun, don't you program for fun? For challenge? Programming even the most basic things in BF is a challenge, so fun

>> No. 36699828

>>36699788
>3: GUI library
I feel like someone's done this.

>> No. 36699829

>>36699738

do you have a photo of Miki please?

>> No. 36699835

>>36699759
It's Turing complete so you can implement an interpreter in your language of choice to show that it's Turing complete too.

>> No. 36699840

>>36699754
ok then, let's talk about my new fizzbuzz
It's beta version, so be gentle please

#include <stdio.h>

inline int
Apply (const int x, const int y, const char *const s)
{
if (x % y == 0)
{
fputs (s, stdout);
return 1;
}
return 0;
}

void
fizzbuzz (const int i)
{
if (Apply (i, 3, "Fizz") + Apply (i, 5, "Buzz") == 0)
printf ("%d", i);
putchar ('\n');
}

void
fizzbuzz_loop (const int from, const int to)
{
fizzbuzz (from);

if (from < to)
fizzbuzz_loop (from + 1, to);
}

int
main (void)
{
fizzbuzz_loop (1, 100);
return 0;
}

>> No. 36699846
File: 18 KB, 700x535, gui.png [Show reposts] Image search: [google] [iqdb]
36699846

>>36699788
I did the third actually.

For first, once I implemented sleep sort (google it) which is kinda concurrent. So you can actually emulate concurrency!

>> No. 36699886

>>36699812
It also has actual educational and perhaps CS value.

To give an example, it's turing complete if you assume unbounded memory. Very simple languages that are turing complete are good ways of proving other systems turing complete (eg. brainfuck, SK, Rule 110).

>> No. 36699901

>>36699829
The only images on my PC are reaction images and the debian wallpaper
sorry ;-;

>> No. 36699918

>>36699901
Post the wallpaper please.

>> No. 36699924

>>36699754
ugly

>> No. 36699972
File: 682 KB, 1920x1200, debiantan1200.jpg [Show reposts] Image search: [google] [iqdb]
36699972

>>36699918
Not him but here's a Debian wallpaper.

>> No. 36700007
File: 331 KB, 3840x2400, neotokyo-revised-2.png [Show reposts] Image search: [google] [iqdb]
36700007

And since I plugged in that drive here's something I was working on a year ago. I wonder if anyone can tell what it is.

>> No. 36700017
File: 381 KB, 1920x1080, wallpaper.png [Show reposts] Image search: [google] [iqdb]
36700017

>>36699918
It's just the default Wheezy wallpaper

>> No. 36700037

>>36700007
Is it a quake 3 map?

>> No. 36700089

>>36700007
Neotokyo, naturally.

>> No. 36700121

Where's the new thread?

>> No. 36700131

>>36699840
>Return type on a different line

>> No. 36700165

>>36699846
actor model for erlang?

>> No. 36700175

>>36700121
Contained within your enormous rectum.

>> No. 36700186

>>36700175
Rude :c

>> No. 36700196

>>36700131
>not licking GNU Style

>> No. 36700206

>>36700165
what?

>> No. 36700209

>>36700165
*brainfuck, sorry

>> No. 36700212

>>36700196
licky licky

>> No. 36700345

>>36700209
It is a gui library I am developping. By altering values of special cells, you can draw lines.

>> No. 36700463

>>36699700
Won't [-<<+] cause an infinite loop in some implementations?

>> No. 36700503

>>36700463
Why should it? All that could possibly happen is that it goes beyond cell zero.

>> No. 36700560

>>36700463
Depends on the values in your memory. If the entire program is, eg, “+[-<<+]” then it seems like an infinite loop to me.

>> No. 36700593

>>36700463
It tries to find first -1 and moves 2 cell left on each step. It is actually

+[-<<+]
Before testing each cell, it increases it by 1 and if it is 0 it breaks the loop. When it enters the loop it decreases it by 1 to set its value to previous one.

Basically it moves 2 cells left until it encounters a -1. In my algorithm, it is guranteed to find the -1 so it won't overflow or someth,ng

>> No. 36701551

I have to use Java for my sophomore Java/Linux classes and am looking for a less ugly way to perform nested loops for strings.
For example,
String[][] checkerboard = new String[10][10]
for(String[] y:checkerboard){
for(String x:y){
x = do shit
}
}

Does not work because y and x are local variables and don't carry back to the checkerboard array.
But doing it the old way with nested loops just looks ugly

>> No. 36701592

>>36701551
You can't. Welcome to Java.

>> No. 36701606

>>36701592
Well shit.

>> No. 36701679
File: 12 KB, 200x243, 1378745109684.jpg [Show reposts] Image search: [google] [iqdb]
36701679

>>36690350
Introducing a friend of mine to Haskell. If I consider his only previous programming experience is C and Java, his reaction to higher-order functions wasn't too much of a surprise.

>ARE THESE GUYS SERIOUS?
>mind blown
>oh my god this is awesome
>i have no idea why this would ever be useful and I'll probably have forgotten it tomorrow, but oh my god, this is possible?

I love paradigm shifts.

>> No. 36701770

>>36701679
Learning Haskell seems to be like a religious conversion for many programmers not previously affiliated with FP.

>> No. 36701773 (Deleted) 

How can I be a /g/ent like you guys?

A highly sophysticated individual in society. A computational scientist and genius. With a sharp mind that makes you the envy and desire of everyone in social gatherings. And on of top of that with a vastly wealth accumulated by putting your knowledge of technology into use for profit.

>> No. 36701822

>>36701551
Can I ask why do you two dimentional string array?

>> No. 36701843

>>36701773
You can't. Sorry.

>> No. 36701868

>>36701551
>mfw this is what myopicfags put up with
oh god

>> No. 36701915

>>36701822
The project is to build a board. Fill a random third of the spots with "b", which act as blockers, and traverse through the board from some starting point until you hit a dead end. Each spot you go through is filled with an "x" so you can't go backwards. Some parts use recursion as a twist.
The 2D string array is for filling the spots.
This isn't that hard, but nested for loops look like dick so I don't like to use them.

>> No. 36701937

>>36701915
I could use recursion to traverse through the array, but that shit's O(n^2), fuck that.

>> No. 36701946

Why haskell is so bloated?
Is haskells FFI good or shit?

>> No. 36701952

>>36701915
Couldn't you use boolean instead? integers if you need more than 0-1?

>> No. 36701966

>>36701770
It's probably the intensity of the change. I'd guess that jumping from completely imperative programming to not only a multi-paradigm but purely functional language is like relearning programming all over again.

>> No. 36701980

>>36701915
And what you are seeking is a search algorithm. A* if you want to look cocky, else bfs would work.

>> No. 36701985 (Deleted) 

>>36701843
Couldn't at least I try? There is a difference between knowing the path, and walking it.

>> No. 36702001

>>36701946
>Why haskell is so bloated?
It's not, we just have an insane amount of language extensions.

>Is haskells FFI good or shit?
Haskell -> C is very good
C -> Haskell I'm unfamiliar with

But the former is the more important of the two. It honestly surprised me a lot to find out just how cleanly Haskell interfaces with native code, considering Haskell is such a completely different language. I recommend reading up on it and/or some examples if you're interested.

>> No. 36702005

>>36701980
Looks interesting, will get to it

>> No. 36702087

>>36702001
>C -> Haskell I'm unfamiliar with
It's a little weird because you have to interact with the RTS directly through C. Doable, but not really my kind of programming.

>> No. 36702102

>>36702001
>It's not, we just have an insane amount of language extensions.
Many of useless extensions have been "standarized" at Haskell 2010 report

Anyway, when I say bloated I mean not minimalistic like C or Scheme

>> No. 36702178

>>36702102
Well, Haskell's philosophy isn't minimalism after all, and the "bloat" actually allows very clean code.

>> No. 36702208

>>36702178
>Haskell's philosophy isn't minimalism after all
sad thing

>and the "bloat" actually allows very clean code
I can have clean code in Scheme and C too

One thing that I hate in Haskell is the ML-like syntax

>> No. 36702229

>>36702087
Yeah, I have surface familiarity with it. I've just never used it or seen a real use case for it.

>>36702102
>Many of useless extensions have been "standarized" at Haskell 2010 report
Fair enough.

>Anyway, when I say bloated I mean not minimalistic like C or Scheme
Different design goals. Haskell, or rather GHC Haskell's first and foremost goal is real world usage, which is why it impurifies the standard with things like unsafePerformIO, or bloats the RTS with stuff like STM and ST.

Another of Haskell's long running design goals has been allowing you to create powerful abstractions without sacrificing static type checking/guarantees, which is why the type system has gotten so bloated over the years.

>> No. 36702293

>>36702229
STM is pretty nice though.

>> No. 36702376

>>36702293
Yes, I agree. I'm not complaining. After all, I use and love Haskell.

>>36702102
What I forgot to mention: Despite the immense complexity of surface Haskell, all of it translates very readily down to much simpler languages (like Core, or even simpler abstractions) that reduce it all to a set of very basic primitives including function application, abstraction, recursive let bindings and pattern matching (and basically not much else).

All higher-level Haskell features are specified along with their translations into other, simpler Haskell features; so if you want to reason with or formally verify something, you can do it via the Core embedding. The same applies to programming with it - a programmer only has to build a mental intuition for the concepts present in Core, and the rest is just syntax sugar to wrap it up nicely.

>>36702208
To each his own. I think Scheme and C look disgusting syntactically, but that's hardly something worth bickering over.

>>
Name (leave empty)
Comment (leave empty)
Name
E-mail
Subject
Comment
Action