Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Beginner Question Thread

Name: Anonymous 2014-05-26 22:20

The atmosphere of /prog/ is not always welcoming to beginning programmers, so I hereby proactively create this thread as a safe place for beginning programmers. You may use this thread to discuss your experiences, feelings, and questions relating to your entering of the field of programming. Should you encounter any difficulty on your journey to becoming a computer scientist, have no fear, and post in here! However, try to keep the questions concept oriented, or on personal projects. It isn't enjoyable to do someone's homework for them. Special priority will be given to NEETs and those without access to an educational institution.

Name: Anonymous 2014-05-26 22:35

Why did Jews invent the axiom of choice? Sets are everywhere and now we have stupid shit like the the Banach-Tarski paradox. However, ``obvious'' things like every vector space having a basis imply the AC. WHAT THE FUCK, MAN? I CAN'T LAUGH AT THIS SHIT BUT I DID FELL OFF MY CHAIR.

I fucking hate kikes with a burning passion.

Name: Anonymous 2014-05-26 23:25

>>1
/prog/ isn't welcoming to anyone.

>>2
What is the Buddha nature?
Five pounds of niggerkikes.

BTW is that true about vector spaces and implying AC? I'd love to read about that. It feels like faulty logic though, I mean given a vector space you should be able to simply compute a basis, no?

Name: Anonymous 2014-05-26 23:40

>>3
Andreas Blass, Existence of bases implies the axiom of choice.
http://www.math.lsa.umich.edu/~ablass/bases-AC.pdf

JEWS

Name: Anonymous 2014-05-27 0:23

>>4
unknown to me whether results like Theorem 2 can be obtained if the existence of bases is assumed only for vector spaces over some specific fields
It's remotely possible that AC is needed to prove the existence of particular fields for which bases imply AC. That would be clever and heartening.

Name: Anonymous 2014-05-27 0:45

Non-constructive proofs are one of the many ways Jews oppress the gentiles.

Name: Anonymous 2014-05-27 0:51

There's a lot of vector spaces out there >>2-kun

Name: Anonymous 2014-05-27 1:46

How does one know what the registers in a PCI memory map do? By knowing what type of device it is beforehand?

Name: Anonymous 2014-05-27 3:15

>>8
Yeah. That's what drivers are for.

Name: Anonymous 2014-05-27 4:54

>>9
But Google is making driverless cars.

Name: Anonymous 2014-05-27 5:20

>>10
Well then you will just have to tell those cars which address to go to.

Name: Anonymous 2014-05-27 5:42

I wish I was legitimately an expert programmer

Name: Anonymous 2014-05-27 9:29

How can I expand my app userbase?

Name: Anonymous 2014-05-27 9:31

Name: Anonymous 2014-05-27 13:28

>>14
That looks nice since it does both Android and iOS, but I didn't see any documentation on how to monitize webapps.

Name: Anonymous 2014-05-27 17:55

Is GC shit?

Name: Anonymous 2014-05-27 17:58

>>16
protip: pretty much all languages other than asm and C have it.

Name: Anonymous 2014-05-27 18:21

>>17
some asm for VMs or systems with hardware GC have GC
some C libraries have RC-GC

Name: Anonymous 2014-05-27 19:37

U MENA C--

Name: Anonymous 2014-05-29 0:57

I come from a python background and am currently learning C. It's simple enough so far. But I was wondering if anything more than basic logic will carry over to C from the python experience I have.

Name: Anonymous 2014-05-29 0:59

>>20
nope. python is shit. everything you learned from it is worthless and won't carry over to anything

Name: Anonymous 2014-05-29 1:07

>>21
So my best bet is to focus on C like it's a whole new world?

Name: Anonymous 2014-05-29 1:37

Give me one good reason why you're not haxing my anus.

Name: Anonymous 2014-05-29 1:41

>>23

I'm already haxing another anus.

Name: Anonymous 2014-05-29 5:24

>>17
But that doesn't answer the question in any ways. The programming industry loves feces, and GC just might be one of its kinds.

Name: Anonymous 2014-05-29 5:40

>>17
Ada doesn't have forced GC.
C++ doesn't have forced GC.
Rust has recently gotten rid of forced GC.
Where do you get your info, some shitty javablogs?

Name: Anonymous 2014-05-29 11:10

>>26
c++'s rare exception
you know you're wrog about ada, rust?
pretty much ALL languages

Name: Anonymous 2014-05-29 11:16

>>26
Ada does not have GC at all and nobody cares about Rust, also >>17-nigger is a troll

Name: Anonymous 2014-05-29 11:23

>>28
Nobody cares about Rust? Really? /prague/ is filled with it.

Name: Anonymous 2014-05-29 11:33

>>29
/prog/ is filled with it because of the hipster invasion

Name: Anonymous 2014-05-29 11:35

>>27
you know you're wrog about ada, rust?

Rust definitely does not force GC upon you.

Name: Anonymous 2014-05-29 11:43

Rust had "managed boxes" once with the @ sigil, but they removed them and moved garbage collection to some shitty trait somewhere.

http://pcwalton.github.io/blog/2013/06/02/removing-garbage-collection-from-the-rust-language/

Name: Anonymous 2014-05-29 11:52

>>32
You do know that you weren't required to use @-ptrs when they were part of the language proper, right?

Name: Anonymous 2014-05-29 12:23

>>33
Yes, but they had a special syntax and now they've been moved to just a lib. GC didn't pass trial by practice.

Name: Anonymous 2014-05-29 12:55

>>34
It's not quite like you suggest. Did you know ~ is gone and there was (is?) talk about moving owned boxes out to a library as well? A lot of things were put in libraries—important things, like concurrency—not to play them down but to manage them better. Concurrency became even better for it. GC did too; now it's pluggable.

GC was put into a library because it was possible. The only question was, is Gc<T> acceptable for users? The answer is yes, and so is box T. In the end, people who wanted GC lost nothing, save for a shorthand. There are two less pointer sigils and consequently nobody brings up Perl anymore.

Name: Anonymous 2014-05-29 14:43

>>21
roflel u plebby mcpleb
all languages are pretty much the same except for some minor details, all that matters is algorithms

Name: Anonymous 2014-05-29 15:11

>>35
What the fuck, ~ is gone? So they're turning it to C++ then, with all of its "weak_ptr" ugly syntax. Guess I should've known not to expect anything good from Mozilla.

Name: Anonymous 2014-05-29 15:17

>>37
It's just syntax, get over it.

Name: Anonymous 2014-05-29 15:29

>>38
It's syntax that will constantly, permanently get in the way. I don't want to write

(owned_box<Foo> x, owned_box<Bar> y, owned_box<Baz> z)

when

(~Foo x, ~Bar y, ~Baz z)

could be written instead.

Name: Anonymous 2014-05-29 15:43

Fucking idiots. Uniqueness is a type modificator and should take the least visual space possible. With the current shitty syntax it might actually take more space than the name of the whole type:

Box<A>

Imagine if mathematicians couldn't write negative numbers like "-5" and instead had to use "minus<5>".

Fucking pathetic idiots will turn Rust into a C++ imitation.

Name: Anonymous 2014-05-29 16:02

>>40
Strange that you're so worked up about Rust syntax when it's an Algolian crapmound with

Cons(1, box Cons(2, box Cons(3, box Nil)));

No infix operators, fucking parentheses and curly braces everywhere - and you're saying that it's turning into a pathetic C++ clone just now?

Name: bust a rhymes 2014-05-29 16:38

rust a shit

Name: Anonymous 2014-05-29 16:40

>>39
It's box T. And you won't write it frequently enough to matter. 99% of the time you want a borrow (if not just a plain value), which isn't changing. The idea is partly to get people to stop heap-allocating everything. And yes, you can borrow stack variables.

BTW, neither of your examples are anything like Rust syntax. I hear a lot of complaining that Rust is going all C++, yet Rust has done away with type/variable juxtaposition. It uses ML-style type annotations instead.

Name: Anonymous 2014-05-29 16:46

>>43
99% of the time you want a borrow
If that was true no one would care about Rust in the first place. 99% of the time I want an owned box.

Name: Anonymous 2014-05-29 16:51

Name: Anonymous 2014-05-29 20:19

>>45
There's no need to annotate the LHS, you would write let foo = box 10; in real code.

Name: Anonymous 2015-04-18 15:46

Hello /prog/, a Coq question (second exercise page 20 Coq in a hurry).

I'm trying to prove the following:
forall A B C D: Prop,(A->B)/\(C->D)/\A/\C -> B/\D
That is, in Coq, I have
Coq < Lemma example forall A B C D: Prop,(A->B)/\(C->D)/\A/\C -> B/\D.
1 subgoal
====
forall A B C D : Prop, (A->B)/\(C->D)/\A/\C -> B/\D
example < intros A B C D H.
1 subgoal

A : Prop
B : Prop
C : Prop
D : Prop
H : (A->B)/\(C->D)/\A/\C
====
B/\D
example < destruct H as [H1 [H2 [H3 H4]]].
1 subgoal

A : Prop
B : Prop
C : Prop
D : Prop
H1 : (A->B)
H2 : (C->D)
H3 : A
H4 : C
====
B/\D
example <

Now what? I simply want to prove that having A and A->B as hypothesis gives us B.

Then I use
split.
apply H1; assumption.
apply H2; assumption.
Qed.


Thanks for reading, but I solved my problems while writing this post. I realized that I had to destruct H as [H1 [H2 [H3 H4]]] and not as [H1 H2 H3 H4], as I originally tried to do (gave me errors ofc).

Name: Anonymous 2015-04-18 16:52

>>47
MODUS PONENS

Name: Anonymous 2015-04-18 16:57

Name: Anonymous 2015-04-18 18:59

own my boxed anus.

Name: Anonymous 2015-04-18 19:40

>>47
intros; firstorder.

Name: Anonymous 2015-04-19 7:43

>>51
Ah, interesting. Thanks.

Name: Anonymous 2015-04-19 18:23

MODUS ANUS

Name: Anonymous 2015-04-19 23:20

MODUS BBCodens

Name: Anonymous 2015-04-23 18:26

I'm trying to set up a Kareha board and have literally zero idea what I'm doing. I've already gone through the documentation to no benefit. Currently have a domain that I can mess with via cPanel, and I've downloaded the Kareha stuff.

Help please?

Don't change these.
Name: Email:
Entire Thread Thread List