[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr / vt ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Due to resource constraints, /g/ and /tg/ will no longer be archived or available. Other archivers continue to archive these boards.Become a Patron!

/g/ - Technology

View post   

[ Toggle deleted replies ]
File: 102 KB, 1000x1071, dpt_flat.png [View same] [iqdb] [saucenao] [google] [report]
60310140 No.60310140 [Reply] [Original] [archived.moe] [rbt]

Old thread: >>60299147

What are you working on, /g/?

>> No.60310179

Loli servers

>> No.60310204

Rate my fizzbuzz
proc fizzBuzz
dup 0 = @return if

dup 3 % !
"Fizz" "" ifelse

dup 5 % !
"Buzz" "" ifelse

dup println
1 - fizzBuzz

100 fizzBuzz

>> No.60310217

Traditional OP pics - best /dpt/ threads

>> No.60310239

I prefer /dpt/ anime images

>> No.60310244

I dont like whatever syntax this is

>> No.60310248
File: 1.07 MB, 1280x720, K&R hime2.png [View same] [iqdb] [saucenao] [google] [report]

First for 3 star programming!

>> No.60310253
File: 124 KB, 1499x558, rustism.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60310275

Anime is traditional

>> No.60310291

>he doesn't like RPN

>> No.60310296

>It depends, but for Linux systems: /usr/include.
>The actual library code you're linking against lives in /usr/lib.

Thanks I see. But why can't the compiler automatically link against the library code too then, if it works for the header?

>> No.60310301

Forth is even worse than Lisp, t b h f a m.
What are you even trying to do?

>> No.60310311

But OP pic isn't anime

>> No.60310337
File: 311 KB, 2072x1984, polite conversation.png [View same] [iqdb] [saucenao] [google] [report]

Two men sat down one day at a table for dinner. They were to eat food together as friends, and talk about the tools they use. The first man stated, "Why, a shovel, of course! I don't see how anyone could do their job without one.".

The second man frowned, and replied, "But I only have need for a spoon. In fact, I'm sure that my spoon is much more convenient than your shovel, and I could accomplish tasks quicker with my spoon."

The first man scoffed, saying, "There's absolutely no way a spoon can attain the efficiency of my shiny, massive shovel! Sure, I can't fit it in my pocket, but it accomplishes the tasks much better than your silly little spoon! You must be an idiot!"

At this point, unfortunately the conversation devolved into more and more threats and insults. The second man finally had enough with the first man's diatribes against his elegant spoon, and punched the first man. A terrible, violent fight came next, leaving both men dead. One man became impaled upon a broken stool leg. The other hit his head against a bench.

Upon investigation, a business card was found each man's wallet.

"Mr. First Man, Senior Digger of Ditches and Graves"
"Second Man IV, Licensed Planter of Individual Seeds"

>> No.60310340

How come Yuki Nagato's silouette is not anime?

>> No.60310372

>What are you even trying to do?
>What are you even trying to do?
>What are you even trying to do?
Why do you assume im trying to do something?

>> No.60310425
File: 29 KB, 317x357, 1474596079094.jpg [View same] [iqdb] [saucenao] [google] [report]

For what purpose?

>> No.60310431

>Why are you casting the return value of malloc()?
So that I can subtract 1 from it before assignment and thereby have an array that starts at 1 without wasting space

>> No.60310458

>Why do you assume im trying to do something?
You're right, it was a dumb question.

>> No.60310465

I want to learn a new high performance, close to the metal programming language. The application is going to be a tool that will have to parse a lot of XML (potentially terabytes) from an SSD in the shortest amount of times, so that will be the bottleneck.

Right now, I'm considering rust, C, and a lua dialect that I'd make based on the luajit source code, mainly changing 1 indexing to 0 indexing, but I'm open to other options. I also hear idris is pretty cool but learning functional programming would be pretty slow and I'm not sure I want to do that right now. Open to any other language.

>> No.60310466
File: 20 KB, 406x467, that one dpt picture the same anon posts every time.png [View same] [iqdb] [saucenao] [google] [report]

is this anime?

>> No.60310475

Removes unused variable warning,as i need to get the type from t

>> No.60310495

>What are you working on, /g/?
Wrote goodreads comment scrapper and my own version of language checker that picks all english comments. Now i need to tidy this a bit and start with sentiment analasys

>> No.60310506

But the fact you miss is that if you plant individual seeds with your spoon, they will grow into trees, whose wood you can then harvest to turn your spoon into a custom shovel comfier than the other guy's shovel

>> No.60310507
File: 128 KB, 1388x581, memvec.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60310519

You don't need to do something so complicated for that.
You could just write

or, even better, change the function signature to this:
fn get_mem_size<T>(_: T, sleep: bool) -> Vec<i64>
You won't get any warning this way.

>> No.60310536

my god it's bart simpson someone help him

>> No.60310537

I really, really like this post.

I find it quite telling that someone would prefer to wait for many years for a tree to grow in order to dig a ditch.

>> No.60310552

Then don't take t as an argument if you don't need it, just T as a generic parameter.

>> No.60310566

Oh, thanks!
I've never written any rust before, so this is useful

>> No.60310611
File: 169 KB, 1920x1080, 2017-05-10-102735_1920x1080_scrot.png [View same] [iqdb] [saucenao] [google] [report]

Can anyone tell me why the first and third windows have really big widths?
I can't figure it out, and I haven't slept yet, I don't think I have the brainpower to think about it.
Pic related.

>> No.60310613

All variables starting with an underscore are assumed to be unused, e.g. let _x = "foo"; won't generate any warnings even if it isn't used.

>> No.60310616
File: 128 KB, 1199x551, memvec.jpg [View same] [iqdb] [saucenao] [google] [report]

Gotcha! Thanks

>> No.60310670

You can remove `_: T` and `where ..` from get_mem_size and call it like `get_mem_size::<Vec<i64>>(false)`. You can see std::mem::size_of itself doesn't take an object in memory, only a type as a generic parameter.

>> No.60310821

guys hear me out but what if

hardware-level memory allocation and garbage collection

>> No.60310868

why is it called malloc and not just alloc

i mean the hell else are you gonna allocate but memory

>> No.60310873

if it doesn't make anything else slower

>> No.60310932

i can think of a few things

>> No.60310944

>i mean the hell else are you gonna allocate but memory
disk space
any resource thing

>> No.60310956

Lisp Machines had these, it didn't help them.
Network ports, CPU time, video buffers, etc.

>> No.60311025

>disk space
>video buffers
those are memory too

>Network ports
those are just address

>> No.60311051

What's the point of using auto in C++11?

>> No.60311060

type inference

>> No.60311065

Can't I just not put anything?

>> No.60311071


>> No.60311079

What's the difference between those two

curl = curl_easy_init();
auto curl = curl_easy_init();

>> No.60311083

> those are memory too
Yeah, but the memory in your video card is quite different from your regular RAM.
> those are just address
You still have to allocate them so no other processes would use the same ports as you.

>> No.60311084

Disk space is not necessarily memory.

>> No.60311093

The former is an assignment to something that already exists.

The latter is the creation of a new variable that will be strongly typed based on the return value of the expression on the right.

>> No.60311099

The second declares a new variable called curl.
The first assigns to a pre-declared variable.

>> No.60311105

Oh okay thanks I'm dumb

>> No.60311150

learning clojure

>> No.60311207

>First for 3 star programming!
I have only ever seen a 3 star program once.

It was a compacting garbage collector.

>> No.60311233

So i have 30 hours to get how works:
collections, generic classes, templates and shit like that, c++/java
I have background in oop, structures etc
Can i do it?

I used all that but it was long time ago, i need to fully refresh my memory

>> No.60311290

Sounds like your "background in OOP" extends to a high school course, and that you didn't actually learn anything. I don't understand how you can just forget all about collections and generics.

>> No.60311292

>Can i do it?

>> No.60311296

Yes, start reading and doing simple examples and you should easily grasp the basic concepts.

>> No.60311303

I have to go to uni but I can't stop farting
what do I do?

>> No.60311320

>I don't understand how you can just forget all about collections and generics.
I haven't wrote a single line of code in c++/java in 2 years.
I use OOP every day, but not this 2 languages.

>> No.60311337
File: 95 KB, 528x960, 1480756493221.jpg.jpg [View same] [iqdb] [saucenao] [google] [report]

I'm finally getting comfortable with using OpenGL. Now I can go make the next Minecraft!!

>> No.60311443

but Anon, lisp is God tier.

>> No.60311450


>> No.60311531
File: 1.49 MB, 300x300, 1416250807825.gif [View same] [iqdb] [saucenao] [google] [report]

>Programming language whose lines dont end with ;

>> No.60311541

Where is the problem anon?

>> No.60311558

this is valid C

>> No.60311566

>inane trivial/superficial problems
fuck off kid, stop trying to fit in

>> No.60311572

sopa de macaco uma delicia

>> No.60311584

Can you do it?

>> No.60311617

Programming languages with forced indentation are worse.

>inb4 get a normal editor

>> No.60312046

Change your diet

>> No.60312263

Don't roll your own language, off with the LuaJIT option.

As for the others, there are many ways to compile C, some off which yield faster executables than others. Given that Rust is young, you're probably better off going deep with C and the details of how the compilers process it, so you can feed the right C program to the right compiler so that it performs good enough. Also are you going to roll your own xml library or not?

Alternatively you could try a nosql database engine, it already knows to process xml and to do it ultra-efficiently with baroque JIT compiling techniques. Believe me or not they do outperform hand-crafted C.

>> No.60312291 [DELETED] 
File: 602 KB, 963x720, 1483915385806.png [View same] [iqdb] [saucenao] [google] [report]

Who said this?

>> No.60312303
File: 59 KB, 340x523, 1494431048377.jpg [View same] [iqdb] [saucenao] [google] [report]

>Don't roll your own language

>> No.60312344

How is youtube video working, why you can just simple find video url?
I dont know if my idea is wrong but when i checked last time "Network" while watching youtube video, it looked like im watching live stream?
Is that how?
How can i do that?

>> No.60312445

YouTube is not a platform for sharing vids. Youtube is an advertisement platform.

>> No.60312449

Yep, youtube serves the videos it has in streaming. That's why it hangs when your lose your connection to the internet in the middle of a video, and also why you can start watching 2-hour long videos right away without having to download the whole thing beforehand, which would be far instantaneous.

>> No.60312461

>How is youtube video working, why you can just simple find video url
This is an English speaking board. Arrange your sentences in a standard way because no one understands you completely.

>> No.60312574

That is the most horrifying thing I have read this week.
May God have mercy on your soul.

>> No.60312619

Become an hero. You'll get garbage collected and a new instance of (You) won't have this problem.

>> No.60312639

That indent style is not idiomatic

>> No.60312678

How can one of the most horrible creations ever be "God tier"?

>> No.60312706


>> No.60312711

Also, they are semantically different from ignoring a return value with _ .

Anything bound to _ will have its destructor (i.e. drop() instance) called immediately, while an underscored variable will have drop called at the end of the current scope. This can be worth keeping in mind if your destructor has side effects or if you need to release resources such as locks.

>> No.60312765

Yes, correct. _ pattern matches to everything without binding a value to a name, hence the destructor is run immediately. Variables starting with underscore are just normal variables, only difference is that the compiler doesn't warn when they are unused.

>> No.60313099

Aside from classes and templates, what other features in C++ are worth using?

>> No.60313101

Huh, structured Forth actually looks really good desu.

Does your program print the numbers that are not divisible by 3 or 5 though?

>> No.60313136

No "features" in C++ are worth using, they are a disservice to intelligent programmers. Especially cl*sses and that pathetic attempt at "polymorphism".

>> No.60313163

If you are asking this you are not ready for C++. Stick to babby languages like C

>> No.60313199

Yes, but unfortunately it prints the numbers every time. ("dup println" line)

I decided against using quotes with multiple statements inside in my language to simplify things, so not printing the num when it's fizz/buzz would invole more (ugly) code

>> No.60313217

>operator overloading

>> No.60313312

Who wrote that?

>> No.60313324

I did.

>> No.60313336

Where? I don't see it before this post >>60313217

>> No.60313359

Vba is lit

>> No.60313362

Don't bother responding anon, he's trolling you with his greentext-is-for-quoting autistic wannabe-meme.

>who are you quoting anon?

>> No.60313371

I'm quoting myself

>> No.60313385

Ugly trash.
Not a "feature". Every single programming language has them.
A "feature" for retards who can't type-check in their head. Useless.
>operator overloading
Custom operators are better.

>> No.60313386

vowel length is lexically significant in English, anon

>> No.60313390

We need to forbid star posting inside words.

>> No.60313402


>> No.60313420


>> No.60313432

This might seem basic to most people here but how do i go about letting the user make new objects by using their inputs?

>> No.60313453


>> No.60313466

>make new objects by using their inputs?
You want a Python/Lisp/C#/Perl/Java/Ruby/PHP/JS REPL or something?

>> No.60313469

>Ugly trash.
with auto function definitions they get much nicer

>Not a "feature". Every single programming language has them.
it's still a feature even if everything has it

>A "feature" for retards who can't type-check in their head. Useless.
reduces code duplication

>Custom operators are better.
and are a superset of operator overloading

>> No.60313480

sounds like a huge security vulnerability

>> No.60313488

Try that on your home website.

>> No.60313519

i should probably mention its on python
It's not for anything serious, just a small project

>> No.60313544

>with auto function definitions they get much nicer
Which are unneeded. And "much nicer" doesn't somehow mean "not ugly".
>it's still a feature even if everything has it
No. It's a basic requirement for being a programming language. You can hardly call that a "feature".
>reduces code duplication
So? It's an insult to the programmer. If you can't type-check in your head you simply shouldn't be allowed near a compiler.
>and are a superset of operator overloading
In what way? My language has custom operators, but not operator overloading.

>> No.60313550

Is OOP supposed to be difficult?

>> No.60313570

My home doesn't have a website.

>> No.60313596

You asked "What other features in C++ are worth using?", not "What features does C++ have that are better than the vast majority of other languages?"

>> No.60313598


>> No.60313614

(I'm not >>60313469)
I don't believe your lang has custom operators but no type inference.

>> No.60313629


>> No.60313637 [DELETED] 

i fuck your whore mother first normally then in pussy.
you bitch ass nigger

understand this?

>> No.60313640


>> No.60313647

its designed ot make programming easier my niqqa

>> No.60313650

You do sound like one indeed.

>> No.60313655

I never asked anything. I just pointed out that your answer is wrong, since the correct answer would be "C++ doesn't have any features worth using".

It has type inference, but it's never really used except for making sure the type checker is correct. Type annotations are mandatory.

>> No.60313667

>anything else but "can you repeat the question?"
You had

>> No.60313670

Pajeet, my son

>> No.60313678

And it fails miserably.

>> No.60313683

# macro square = << fun x -> x * x >>;;
macro square : (int -> int) expr =
<< fun x_1 -> Pervasives(*global*).( * ) x_1 x_1 >>
# macro n = << $square (42+1) >>;;
macro n : int expr =
<< (fun x_3 -> Pervasives(*global*).( * ) x_3 x_3)
(Pervasives(*global*).(+) 42 1) >>
# $n;;
- : int = 1849

Why is OCAML so fucking ugly?

>> No.60313690


>> No.60313691

Lambdas aren't worth using?
Ok, you imperative retard

>> No.60313699


>> No.60313707


White Slav here, you filthy faggots

>> No.60313719

A base requirement for a programming language isn't a feature, therefore it doesn't apply when mentioning features worth using. Please learn to read before making retarded statements.
>White Slav
That's impossible by definition.

>> No.60313721

So basically a nigger

>> No.60313750

>tfw monitoring the text messages of my teammates back in forth as they struggle to complete the project that I already completed

Shouldnt have made me do all the work this semester. Oh well, you dug your grave, now lie in it.

Its like music to my ears. I should pour some wine.

>> No.60313760

should i learn hasklel

>> No.60313768

>reddit spacing
I didn't even bother to read your post, because I already know it's fucking stupid. Piss off.

>> No.60313776

does accessing a bit at an index in a bit vector take constant time? if so, how? i don't understand how accessing the 6000th bit in a bit string could take the same time as the first one, because the way i would do it is perform 6000 right shifts on b and then return b & 1
>A bit vector is simply an array of bits (0s and 1s). A bit vector of length m takes much less space than an array of m pointers. Describe how to use a bit vector to represent a dynamic set of distinct elements with no satellite data. Dictionary operations should run in O(1) time.

>> No.60313778

Yes, before that redditor replies to you with his shitty running gag

>> No.60313784

Ive been on this website for 10+ years and not one person has complained about my spacing till now.

>> No.60313786

Only as a stepping stone.

>> No.60313791

shouldn't you be hacking people's toasters to mine you $5 a year in bitcoins?

>> No.60313799

Shitkell is practically useless.

>> No.60313803

You write like a redditor. Obviously other redditors on the boards you visit wouldn't be complaining about that.

>> No.60313821

>Get keeper on full autism spree
Isn't this killing /dpt/?

>> No.60313825

What do you mean by this?

>> No.60313835

Learn python instead, it's faster than trashkell

>> No.60313840

Could you point to the original source of this? I'm really interested in reading further.

>> No.60313854


> The original source is the post you just replied to

>> No.60313856

Have you ever programmed? No computer allows you to bitshift along a 6000bit long integer because that would be dumb. You understand that an array of pointers is O(1) access right? now take an array of bytes, say each byte is 8 bits of the bit vector, store them accordingly, and access the 6000 element with array[750] & 1. done.

>> No.60313860

>Learn python
Did that poster mention he was subhuman?

>> No.60313869

No, that's why I recommended python.

>> No.60313870
File: 1.09 MB, 2560x1920, 2017-05-10 20.17.55.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60313888

>No computer allows you to bitshift along a 6000bit long integer because that would be dumb.
literally not the point so i stopped reading your post there

>> No.60313899

But only subhumans would use python, he didn't mention he was of your kind so why are you trying to corrupt him?

>> No.60313903

You understand that an array of pointers is O(1) access right? now take an array of bytes, say each byte is 8 bits of the bit vector, store them accordingly, and access the 6000 element with array[750] & 1. done.

>> No.60313938

>But only subhumans would use python
No, only subhumans would yous trashkell, try not to make people join your "kind". No amount of desperation is going to help you.

>> No.60313947

determined this was a part of your previous post without parsing it so i followed through with my decision by not reading this post either

>> No.60313956

The one who keeps making posts like >>60313544

>> No.60313964

SHITKELL is for animals

>> No.60313977

>No, only subhumans would yous trashkell
I understand that it's hard for you to think logically, but those two things aren't somehow mutually exclusive.
>try not to make people join your "kind".
I'm not a double digit like yourself so I wouldn't be using either python or haskell.

see my response to the other subhuman.

>> No.60313990

Sounds like what a fucking idiot who can't figure that if you can random-access 64 bits in a pointer array then it would be trivial to access 1 bit in a bit array in O(1) time would do. Have a good time failing your class negro.

>> No.60313993

Excuse me guys, I got a question

If hask*ll is garbo callected, why isn't it collecting itself?

>> No.60314003

What's wrong with that post?

>> No.60314006

>I wouldn't be using either python or haskell.
Using python requires tripple digit IQ, I just assumed the poster met the requirement.

However if he has a single digit IQ like yourself he should use shitkell

>> No.60314020

Good question

>> No.60314035

the rate at which he makes posts

>> No.60314037

>Using p*thon requires tripple digit IQ
Only assuming IQ is measured in integers and not naturals.

>> No.60314040

>see my response to the other subhuman.
See >>60313964 again

>> No.60314041
File: 433 KB, 1000x1166, 1452606704319.jpg [View same] [iqdb] [saucenao] [google] [report]

Ok so, me and a friend have a discrepancy...
I've got a Bot that just uses the console, you log into Steam, requests 2fa if needed etc, then it just does everything for you whilst printing little bits and pieces the average user probably wont care about, but can be useful for debugging etc.
He's saying for maximum user friendliness it should have a GUI

Why on earth would I bother adding a GUI?
Couldn't even the most simple of simpletons read and input a username and password?

>> No.60314052

Making me think

>> No.60314066

I'm not sure I quite understand you. So the post itself is correct but you just don't like something?

>> No.60314069

Because anything made with/for trashkell is trash

>> No.60314081

Slavs are literally snowniggers

>> No.60314113

do you expect gamers to know how to use a command line program

>> No.60314119

>Does everything for you
What is "everything"? Who is your target audience?

>> No.60314125

kek, you stupid faggot

>> No.60314140

it's summer so there's no classes, good friend, and also just tell me how to implement constant time access for a bit array other than doing right shifts then

>> No.60314148
File: 18 KB, 500x342, 1452370193606.jpg [View same] [iqdb] [saucenao] [google] [report]

It literally accepts friendship requests, hands out messages once accepted, replies to messages
I didn't bother doing anything else because that's all they asked for.

All the user has to do is log in and then let it run.

>> No.60314181

Just write a simple gui in some pleb language that calls your executable

>> No.60314183

This sounds like it's for a trading bot of some kind, just from the description. Your friend is wrong, a GUI isn't necessary since the target audience sounds technologically competent to the degree where a terminal is not intimidating. Maybe you could change how you log things (instead of returning to terminal, log to a file).

>> No.60314188


you have random access on bytes right? Then you access the right byte inside the bit vector, and you find the bit's value with right shifts.


>> No.60314203

>and you find the bit's value with right shifts.
i'm saying that since you have to perform 6000 right shifts to access the 6000th index, it's not constant time. i knew you didn't understand what i was saying so i didn't bother reading your post

>> No.60314218
File: 1.21 MB, 480x287, 1491927408556.gif [View same] [iqdb] [saucenao] [google] [report]

>you have to perform 6000 right shifts
are you braindead?

>> No.60314230
File: 7 KB, 244x207, 1453576997268.jpg [View same] [iqdb] [saucenao] [google] [report]

I'd considered doing the log to a file, the trading part, it's literally not even for trading, they just wanted a bot that could do as was mentioned above, although the messages do come from a .txt but thats literally it.
But what would even be the point of it
what would you even populate it with
>pic related

>> No.60314245

no you dont you fucking brainlet who doesn't understand RAM, you fetch just one byte, and you cut that byte up to get the target bit, how is that too difficult for you to grasp? You understood array pointers, how are you so bounded that you can't generalize that to bit vectors in RAM?

>> No.60314250

Two inputs with user's credentials and a big red button to start, that's it.

>> No.60314257

if you understand it, then explain why it takes as much time to shift a bit by 5 as it does to shift it by 1

>> No.60314277
File: 11 KB, 343x543, 1453558918051.png [View same] [iqdb] [saucenao] [google] [report]

I guess I'll probably just have to resign to that if it keeps up.

>> No.60314280

Grasp the fucking basics before you come here to boast you dummy.

>> No.60314312

You don't have to perform 6000 shifts, you fetch the right byte, then perform at maximum 7 shifts, which on modern CPUs is O(1)

>> No.60314314

since you can't explain it, i assume you don't truly understand it either

>> No.60314336

then that would be O((n/8)+(n%8)) not O(1), wouldn't it?

>> No.60314344
File: 171 KB, 374x347, 1485786552834.png [View same] [iqdb] [saucenao] [google] [report]

What's better for lambda syntax "->" or "=>"?

>> No.60314350

I'm too lazy to draw you a fucking diagram of how RAM is random access and its content can be copied from and to the CPU register, there's already plenty available on the internet, but none that's babby-tier enough for you you stupid cunt.

>> No.60314363

why are you so angry just because i ask you to explain something

>> No.60314378


>> No.60314383

probably because you are acting like a fag

just a guess

>> No.60314386

Yeah, just change it to log to a file. Worst case you pick up just about any damn language and mock up some quick GUI wrapper to satiate the brainlets.

I can only assume GUI users would be on Wangblows, so you could fire up VS and do some jank-ass Winform/WPF window that calls your actual program. Otherwise, you could pick up Tkinter and mock something up super fast.

>> No.60314408

Fetching a byte is an O(1) operation. Then shifting is another O(1). You could argue that it's an O(1+1) operation.
Keep in mind that you can also perform bitshifting by multiplying/dividing by a power of 2. If you think that multiplying numbers is not an O(1) operation I wont reply anymore.
O(2) is still constant time.

>> No.60314411

NO ITS FUCKING NOT!!! fetching the byte is O(1) because RAM is an array, not a stack. You have O(k + (n%8)), where k is some material constant for fetching bytes, and n%8 is what you think it is. That's basically O(1)

>> No.60314422

lol, i figured out how continuous-time FIR filters work with the fourier transform and window functions and everything, this shit is so obscure if you don't know exactly what to google and such, if i were anything less than a genius i'd be one of those brainlets who use those rinky-dink shit filters because they can't be bothered to figure things out properly

>> No.60314428

I already have '.' for pi.
And a dot with "λx : t . e" looks out of place.

>> No.60314458

>I already have '.' for pi

>> No.60314473

i don't think it's that out of place, and you can always have


you can re-use syntax for pi types, plus you could even add

t → e
if you ignore the input

>> No.60314479

Using DFS you can detect a cycle in a directed graph by maintaining an array of visited vertices and a structure that tracks which vertices are currently being processed in the recusrive DFS call stack.

"In addition to visited vertices we need to keep track of vertices currently in recursion stack of function for DFS traversal. If we reach a vertex that is already in the recursion stack, then there is a cycle in the tree."

Will this algorithm also reliably detect cycles in an undirected graph?

>> No.60314521

What were you trying to say?

That actually looks fine. I'll try some form of it.
>plus you could even add t → e if you ignore the input
I would prefer an explicit '_' for that.

>> No.60314534
File: 79 KB, 600x783, 1493993714204.jpg [View same] [iqdb] [saucenao] [google] [report]

>submit program to professor
>complain about my writing for statement like this
for(int i = 0; i < 5; i++)
>says MANY C compilers don't support that and I should write it like this
int i;
for(i = 0; i < 5; i++)

The functionality of my first example was added in the C99 standard, ok maybe he's compiling in C89 mode for some ungodly reason, well I've seen him use single line comments, a feature added in C99... Is my professor retarded or am I missing something here. Should I go out of my way to point out whenever he uses a feature that was introduced in C99?

>> No.60314542

Ive seen some shit

>> No.60314545

Your teacher is right.

>> No.60314556
File: 441 KB, 3555x2198, 1494363339754.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60314557

>enforcing C89 for teaching
He's a retarded purist dinosaur

>> No.60314569 [DELETED] 

Did you make file specify a standard newer than C89?

>> No.60314578

He's right.

You're wrong.

>> No.60314581

>his program uses strings
please kindly go back to /wdg/

>> No.60314588

Did your make file specify a standard newer than C89?

>> No.60314595 [DELETED] 

Who are you quoting?

>> No.60314606

Name one program in your desktop that doesn't

>> No.60314613

plebian string user detected

>> No.60314637

explain yourselves

>> No.60314638

>deleting a post over a small type

>> No.60314644
File: 46 KB, 747x316, peter2.jpg [View same] [iqdb] [saucenao] [google] [report]

Here, this will help you.

>> No.60314656

if the teacher insists on using ansi C in the current year he shouldn't use // comments

>> No.60314676

if you need to use strings, you should use the right tool for the job. like python or javascript

>> No.60314691

>or javascript
almost had me, bruh

>> No.60314698

That doesn't answer my question.

>> No.60314715

what question?

>> No.60314722


what fucking code monkey shit are you fuckers doing that you need to use strings to any significant extent. is your program 90% GUI and 10% premade libraries or what the fuck?

>> No.60314748

>pointing out a silently corrected typo

>> No.60314768

>implying your [DELETED] doesnt stick out like a sore thumb

>> No.60314774

I agree about // comments. Maybe your teacher doesn't know that it's not valid C. Tell him, he will thank you.

>> No.60314807
File: 299 KB, 900x900, 1493245789653.jpg [View same] [iqdb] [saucenao] [google] [report]

>He uses a browser extension made just for one particular anonymous image board

>> No.60314815

Why do these extension faggots need to ruin 4chan?

>> No.60314824

eww wtf is that cringe shit?

>> No.60314825

>Not specifying the c version in a pragma just to fuck with him
Also yes, your professor apparently doesn't know // is not valid in ANSI c.

>> No.60314827

>he doesn't browse this shithole 16 hours a day
Hola reddito!

>> No.60314847

>tfw graduating in month with cs
i feel like i know absolutely nothing practical and in the practical areas, im awful. Not saying im good at the impractical areas either. How am I supposed to get a job?

its hard to get motivated enough to do projects in free time, i just want to play games and jack off most of the time. I guess after graduation I'll have more time to do random projects and not worry about class.

a bit of a blog post but am i fucked?

>> No.60314857

why do haskell programmers get ALL the girls

>> No.60314866

Sorry for the typo

>> No.60314879
File: 414 KB, 1477x1108, 1488.jpg [View same] [iqdb] [saucenao] [google] [report]

daily reminder that 4chin and /g/ runs on russian software
all hail putin, the arian king, hope of white race
poccия cилa, зaпaд мoгилa <-- murica is kill
you heard it here first

>> No.60314887 [DELETED] 


>> No.60314897

Happy stalingrad day

>> No.60314908

having to program in a shitty api in a shitty language in a shitty tool is the worst thing to ever happen.

Fuck blender & pythonI hope ill never have to touch this piece of shit software ever again. fucking cancer

>> No.60314934

did whoever made this not know that the statue of liberty is in the middle of a harbor

>> No.60314939

Ha ReactOS выдeлили дeньги?

>> No.60314989 [DELETED] 

I seem to be too retarded to find out what css rule determines the table headers' width of the first table on https://www.icy-veins.com/wow/destruction-warlock-pve-dps-gear-legendaries-best-in-slot
Anyone got an idea?

>> No.60315008

I'm not familiar with all the words you use, but maybe something like this?

proc fizzBuzz
dup 0 = @return if

dup 5 %
over dup 3 %

dup !
"Fizz" "" ifelse

over !
"Buzz" "" ifelse

* !
"" over ifelse

1 - fizzBuzz

100 fizzBuzz

>> No.60315025

Can anyone help me with a problem with printing? The program prints correctly on W7 and W10 on different machines on printer X.
The program prints correctly on W10 and printer Y, however it prints incorrectly on W7 and printer Y. The code is identical in all cases, as well as the settings (clean install). Is this a case of drivers and would installing W10 on the machine fix the problem?

>> No.60315067

Is forth turing complete or is it only as powerful as a pushdown automata?

>> No.60315075
File: 85 KB, 650x780, 1491134366158.jpg [View same] [iqdb] [saucenao] [google] [report]

What are you writing it in? Have you started compiling yet?

>> No.60315095

Turing-completeness isn't a measure of "power". Most computable functions are worthless trash.

>> No.60315110


>Is this a case of drivers and would installing W10 on the machine fix the problem?
Who knows? Maybe. Try it.

>> No.60315139
File: 260 KB, 266x207, 1439859880247.gif [View same] [iqdb] [saucenao] [google] [report]

I wrote my own compiler, with my own language edits

>> No.60315167

You're on a good path, but on line 11 you swap 100 with the % 3 result, and then taking the 100 as the 5 % result.

proc fizzBuzz
dup 0 = @return if

dup 5 %
swap dup 3 %

dup !
"Fizz" "" ifelse

; Stack: %5result, 100, %3result
swap ! ; So here you are swapping %3result with 100, then not it
"Buzz" "" ifelse

* !
"" @swap ifelse

1 - fizzBuzz

100 fizzBuzz

>> No.60315192

PDA with two stacks is equivalent to a Turing machine, and Forth has at least two, usually even more (float, string and control flow stacks)

>> No.60315205

wdg is that way >>>/g/wdg/

>> No.60315246

Over isn't swap. It's like dup but it duplicates the element one slot down.

>> No.60315345

(module wedding
(static (final-class person
(sex::symbol read-only))
(wide-class married-man::person
(wide-class married-woman::person

As we can see people are allowed to change their name but not their sex.

>people are allowed to change their name but not their sex.
Absolutely problematic!

>> No.60315378

submit a pull request

>> No.60315389

Oh, I haven't implemented that one yet, but sure will. Here's fizzbuzz only with swap, pretty ugly.
proc fizzBuzz
dup 0 = @return if

dup 5 % !
swap dup 3 % !

"Fizz" "" ifelse

@swap swap dip
swap dup "Buzz" "" ifelse print
+ !
swap dup @swap swap
dip swap

@print @pop ifelse

"" println

1 - fizzBuzz

100 fizzBuzz

>> No.60315420

So I'm playing with DLL injection a bit around and so far so good, I check error code of every function call, no problems here, I verify with Process Hacker that the module has been loaded and it's there but the attach never gets called in the DLL, what gives? Anything obvious I'm missing?

>> No.60315444

stop it right now.

>> No.60315462

Stop what?

>> No.60315495

here's your (You)

>> No.60315507
File: 83 KB, 393x325, 04.jpg [View same] [iqdb] [saucenao] [google] [report]

>create an android app that werks but code is too messy to even show to anyone
Where to learn software design?

>> No.60315514 [DELETED] 

Whom quoteth thou?

>> No.60315546

read this sentence.

Eye-scan complete.

Thank you.

>> No.60315567
File: 23 KB, 250x250, 1493157041639.jpg [View same] [iqdb] [saucenao] [google] [report]

how in fuck can someone work as a developer for over 30 years and STILL be absolutely awful
boggles my mind

>> No.60315583

I can't read this post, sorry. Use standard American or Australian English next time.

>> No.60315611

Thank you for reading the sentence.

>> No.60315689

Can someone who speaks his language translate this?

>> No.60315716

>A*rican "English"

>> No.60315738

Who are you talking to?

>> No.60315739


>> No.60315740

You are reading this sentence.

>> No.60315762

Oh, so is that his language? I don't speak "African "English"". Since you appear to be black, could you help me with translating his posts?
To the thread as a whole.

see >>60315739


>> No.60315778


>> No.60315779

Read this sentence again.

>> No.60315789

refer to >>60315778

>> No.60315804


>> No.60315806

>This much upset
Burgers gotta be nuked ASAP

>> No.60315813

This sentence is comprised of letters, spaces and two characters.

>> No.60315829

I'm not "America" either, I'm white.

>> No.60315838

Why do you think that would somehow remove me from this thread/world? Thankfully I'm not one of their communist kind.
But what do these letters, spaces and characters mean? It doesn't look like English at all.
I don't think so.

>> No.60315861


>> No.60315884

see >>60315861 and then repeat the previous instruction

>> No.60315900


>> No.60315913
File: 487 KB, 540x540, 2000000.png [View same] [iqdb] [saucenao] [google] [report]

I see you guys are having a rich discussion on programming

>> No.60315926

go back to 9gag

>> No.60315928

This is not really a "programming" thread, it's just language circle jerking and shitposts while pretending to be programmers.

>> No.60315937

I see you there friend

>> No.60315944
File: 383 KB, 690x690, 14561658083420.png [View same] [iqdb] [saucenao] [google] [report]

Programming question:
What type does anime have?

>> No.60315949

what do you mean?

>> No.60315970

anime implements ILoser interface and inherits EternalFailure

>> No.60315979


>> No.60315990
File: 260 KB, 736x916, 1494429234196.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60315996
File: 71 KB, 300x346, 1458524886190.png [View same] [iqdb] [saucenao] [google] [report]

How can I make a program least portable? I want my program to run on Linux and Linux only, which will require the Linux kernel. I want to actively prevent cross compilation, and even if it does it should require an active Linux kernel.

>> No.60316003
File: 420 KB, 3200x1703, 1494219560695.jpg [View same] [iqdb] [saucenao] [google] [report]

where do you think you are?

>> No.60316004

no thanks

>> No.60316025

But Linux is complete trash if you're using GNU with it, which you most likely are.

>> No.60316030

>He writes nonfree software
fucking kill yourself and your shit software

>> No.60316042

That's not very Linux of you.

>> No.60316043

Make syscalls

>> No.60316083

How can you "kill" "software"?

>> No.60316085
File: 4 KB, 255x52, 2017-05-10-223531_255x52_scrot.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60316103

>incorrect usage of "REEEEE"
I don't want reddit stink nearby. Fuck off.

>> No.60316107

Depend on systemd :^)

>> No.60316119

by making it run only on one platform with less than 2% marketshare

>> No.60316122

Is ATS really the best lang ever made?

>> No.60316124

Just switched to linux, should I bother with a ide for python on just run atom with script?

>> No.60316138

>you must screech according to a subset of frustrations concerning the pride of being a recluse ; any other usage of my nerdscreech is gonna lead you to reddit
nice autism there but you're to fuck off

>> No.60316145


>> No.60316154

I don't want subhuman micropajeets to touch my software

>> No.60316161

sublime + sublimeREPL works fine desu

better than eclipse, less bloated than pycharm

>> No.60316163

I want to see the reasoning why you're not from reddit, which you obviously are. Everything in your posts reeks of reddit.
Seriously: piss off. Your kind is not welcome here.

>> No.60316170

no john, you are the pajeet if you make nonfree software

>> No.60316179

You have been gate keeping for 4 hours by now.

>> No.60316183

Get off /g/

>> No.60316184

>what is cygwin

>> No.60316186

Source is open and you are fee to use it, if your system meets the requirements

>> No.60316188

But GNU software is precisely for subhumans. Why would you let only one group of subhumans use your software?

>> No.60316194

Does cygwin make use of the Linux kernel?

>> No.60316199

sure, almighty Lord of the Nodev threadsquatters, gatekeeper of the 4chan kodeshrines

>> No.60316204

So basically you're admitting that you're a redditor then.

>> No.60316213

It doesn't respect the four essential freedoms and thus is nonfree.

>> No.60316215

don't think so but check this

>> No.60316227

This actually

>> No.60316239

Anything but GNU are for uncivilized orcs. Plain and simple.

>> No.60316262
File: 8 KB, 396x64, 2017-05-10-224825_396x64_scrot.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60316277


>> No.60316282


>> No.60316286

How is your first day here going?

>> No.60316291

nah, it doesn't work for the first field

>> No.60316298


>> No.60316306

Isn't GNU for Communists by communists?

>> No.60316316

>Isn't GNU for Subhumans by subhumans?
fixed your typo.

>> No.60316325
File: 17 KB, 358x373, 1472093544621.jpg [View same] [iqdb] [saucenao] [google] [report]

Hi r*ddit!

>> No.60316327
File: 677 KB, 800x2000, 1482157527288.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60316355

>ribbit the reddit frog
Back to your subreddit

>an image straight from ribbit
Seriously, just piss off.

>> No.60316356

>Gate keeper is also a microsoft shill
What a surprise

>> No.60316369

>peak autism level
Let's drive you nuts.

> Who am I quoting

>> No.60316373
File: 32 KB, 399x388, 1466624707921.jpg [View same] [iqdb] [saucenao] [google] [report]

Stop trying so hard to fit in

>> No.60316385

nice memes friendo :^)

>> No.60316387

I am going to block you now. You annoy me.

>rabbit the ribbit frog
Are we being raided by redditors like you today?

>> No.60316401

The real life equivalent of GPL is like being a Roach, a Moroccan or a Muslim. Once you get infected by it you and your offspring are forever fucked.

>> No.60316406

If you're going to act like a fucking redditor, go to fucking reddit.

>> No.60316408
File: 66 KB, 554x400, 1485544929663.png [View same] [iqdb] [saucenao] [google] [report]

nice redditspeak, but you have to go back friend :^)

>> No.60316413

>You annoy me.
Is the guilt-consistence kicking in?

Or do you need more to have your daily autistic meldown?


Object orientation

>> No.60316421

Nice argument, micros**t shill

>> No.60316429

>ribbit frog
I don't want reddit stink nearby. Fuck off.

I don't see your posts now. I blocked you.

>> No.60316431

No. Are you able to do anything about it.
>tfw reddit tab open

>> No.60316452

Both microsoft and GNU software is for pure subhumans.

>> No.60316464
File: 93 KB, 320x252, 1490390702239.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60316480

get a life you're in a programming thread all day everyday doing this shit instead of actually programming

>> No.60316481

So you cannot see my posts now

public class HelloWorld {

public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
System.out.println("Hello, World");

>> No.60316482
File: 660 KB, 1106x1012, 1474306575869.png [View same] [iqdb] [saucenao] [google] [report]

Is it summer already? You'll have to return >>>/v/ermin

>> No.60316500

He does the gate keeping for free

>> No.60316509

I'll try to guess what you wrote.
No. I don't see your posts.

Why do you keep denying being a redditor? Fuck off.

>> No.60316517

wtf I love reddit now!

>> No.60316533
File: 18 KB, 306x306, 1466271087062.jpg [View same] [iqdb] [saucenao] [google] [report]

Back to your consumerist shill threads vermin

>> No.60316538

I don't use Linux or W*ndows or anything with even slight traces of GNU, sorry.

>> No.60316543

>Jannies keep the board clean
>He keeps the thread clean

>> No.60316550

>actually admitting to be a mactoddler

>> No.60316559

Don't use that garbage either. It's not worthy of being mentioned with even such shit as GNU.

>> No.60316560

so what anime do you guys watch while programming?

>> No.60316580

Has anyone here tried ATS? It seems interesting but I can't make head or tails of it.

>> No.60316585

yea yea, you use shitbsd or some other trash I get it, you are "different"

>> No.60316586

>ribbit the reddit frog
I didn't even bother to read your post, because I already know it's retarded. Seriously, piss off.

>> No.60316601

Why did you get timid so suddenly. Hello wtf?
I still have a reddit tab open and I am still here? Do your job and drive me out

>> No.60316612
File: 36 KB, 657x527, 1467149910660.jpg [View same] [iqdb] [saucenao] [google] [report]

>tfw running out of pepes to trigger you with
anyways someone should make a new one, this one is at bump limit

>> No.60316622

Why do you keep denying being a redditor? Fuck off.

I don't want reddit stink nearby. Fuck off.

>> No.60316631
File: 37 KB, 680x734, 1480116443396.jpg [View same] [iqdb] [saucenao] [google] [report]

>yfw you'll never fit in with the cool guys

>> No.60316634

>Fuck off.

>> No.60316646
File: 35 KB, 475x122, v&.png [View same] [iqdb] [saucenao] [google] [report]


>> No.60316659


>> No.60316667

Of course a redditard would deny being in reddit. Piss off.

>> No.60316670


>> No.60316693

>Piss off.
He is not. Pls save 4chen we are being raided :^((((

>> No.60316695
File: 6 KB, 250x164, 1471088615984.jpg [View same] [iqdb] [saucenao] [google] [report]

>Piss off
It's so obvious you're a redditard it hurts

>> No.60316706

Go be retarded somewhere else, like at reddit.

Only an obvious redditor would not know it. Back to your subreddit.

>> No.60316713


Literally posting this to /r/4chan now, come on. Up your game. Whatever you are trying to do to keep me out of 4chan is definitely not working

>> No.60316722
File: 202 KB, 432x520, 1472762416784.png [View same] [iqdb] [saucenao] [google] [report]

>Knowing what a subreddit is
Caught red handed, redditshit

>> No.60316728

>Go be retarded somewhere else

I don't really see any compelling reasons for that

>> No.60316742 [DELETED] 

Stopped reading right there.
The redditors seem to be out in force at the moment.
You need to go back.
Didn't read your post.

>> No.60316761
File: 153 KB, 423x516, 1466959099491.png [View same] [iqdb] [saucenao] [google] [report]

>trying to deny your redditness
not so fast reddito

>> No.60316768

Hello, reddit

>> No.60316782

So you won't deny being a redditor? As I predicted.
Just fucking leave and spare yourself from further embarrassment.

>> No.60316816
File: 106 KB, 655x472, The power of our gate keeper.jpg [View same] [iqdb] [saucenao] [google] [report]

>Didn't read your post.
>Piss off.
>Fuck off.
>go to fucking reddit.

Ur cute, post ur feet

>> No.60316818

remember to report both of these thread-derailing chucklefucks

>> No.60316819
File: 1.96 MB, 580x433, 1485278067409.gif [View same] [iqdb] [saucenao] [google] [report]

>he can't even read greentext
Jesus christ you can't be more of an obvious redditfag

>> No.60316840

>Didn't read your post.
Of course, your single digit IQ cannot handle reading.

>> No.60316851 [DELETED] 
File: 22 KB, 500x396, 1486586820925.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.60316863

Seriously though, why is he so docile?

>> No.60316883

That picture does reflect your retardation quite well
I don't want reddit stink nearby. Fuck off.
Didn't even start reading your post.
Ah yes. Ribbit the reddit frog.

>> No.60316893

He's a self hating, projecting reddit user

>> No.60316915
File: 48 KB, 330x319, 1488143910221.jpg [View same] [iqdb] [saucenao] [google] [report]

>reddit stink
You're the patient zero mate

>> No.60316917

>Replies got limited to one-liner "please leave me alone"
Cute boy doing cute things

>> No.60316925

Pls anon. I like young boys.

>> No.60316935

Low energy cuck

>> No.60316936

Why do you keep denying being a redditor? Fuck off already.

>> No.60316946
File: 32 KB, 700x525, The power of our gate keeper.jpg [View same] [iqdb] [saucenao] [google] [report]

>Fuck off already.

>> No.60316950
File: 3 KB, 125x100, 142842563050.jpg [View same] [iqdb] [saucenao] [google] [report]

Why are you projecting your self hate? You're the only redditor ITT

>> No.60316973

>reddit stink
he who smelt it, dealt it

>> No.60316974
File: 43 KB, 400x400, The power of our gate keeper.jpg [View same] [iqdb] [saucenao] [google] [report]

Is your mum helping you during this mental stress?

>> No.60316977

Name 1 (one) language comfier than scheme

>> No.60316984

Stop trying to justify your mental illness.
>posting the rabbit frog
Imagine having a life so dull and pointless that you're reduced to this.
Seriously, just fuck off.

>> No.60316998

Aww, why didn't your reply to me, bb? <3

>> No.60317015
File: 59 KB, 395x401, 1476361825837.jpg [View same] [iqdb] [saucenao] [google] [report]

Imagine being such a redditfag that you have to try this hard to fit in

>> No.60317017


>> No.60317022

Don't bully kids

>> No.60317026

You need to disprove your blatant redditry in the first place.

>> No.60317042

The burdeon of proof is on you my redditfriend

>> No.60317060

=> imo

>> No.60317063

Make a proper thread next time, retard.

>> No.60317075

What is that? Something they say on rabbit?

>> No.60317080

We can make it to 500 goyim!

>> No.60317113

Only if you have a single digit IQ

>> No.60317146

A single digit of what?

>> No.60317387

One of these days I ought to actually put some real effort into learning Rust. It seems like a reasonably nice language, even if I am doing rather well with C++ and Ruby. I might do some research on it someday or something.

>> No.60317410

Rust is for traps, not for girls

>> No.60317497
File: 18 KB, 802x136, rust is a safe space.png [View same] [iqdb] [saucenao] [google] [report]

Rust is literally an SJW language.

>> No.60317498

new thread:

>> No.60317565

It'll really suit your striped socks

>> No.60317808

I am neither a trap nor a girl.

>> No.60317828

lying is very un-ladylike

>> No.60318378

> Lisp Machines had these, it didn't help them.
actually it did, but the average poster on /g/ wouldn't know anything about it

>> No.60318498

Indeed. Is that the reason you don't know anything about it as well?

Name (leave empty)
Comment (leave empty)
Password [?]Password used for file deletion.