What are you working on, Sup Forums?

What are you working on, Sup Forums?
Old thread:

Other urls found in this thread:

github.com/rust-lang/rust/pull/25640
github.com/rust-lang/rust-buildbot/issues/2
github.com/rust-lang/rust/issues/28059
amazon.com/Programming-Language-Brian-W-Kernighan/dp/0131103628
alvand.basu.ac.ir/~dezfoulian/files/Programming/Prentice Hall - The C Programming Language- Brian W. Kernighan, Dennis M. Ritchie, 2nd ed., ISBN .pdf
track5.mixtape.moe/ggxosi.pdf
twitter.com/NSFWRedditGif

Rust is cancer.

Thank you very much for not using an anime picture.

Should i write my game engine in C or C++?
C programming language 2nd edition is coming next week.

>language that has been the same for decades and is ubiquitous is the red pill
>language that is brand new and challenges the status quo is the blue pill
This doesn't make sense.

First for java will stay king

Rust.

Seeplus+

Trips don't lie. Load up them Java VM's boys!

Bump for visibility on my question

>use "insert meme here" language
Fuck off
pic related

But but but.. RedoxOS

Whatever language you feel like. They're both a solid choice.

lol

Nobody cares, Sup Forums.

This is more about Rust being a cuck SJW language and C being the Whitest-and-proudest language out there.

Fuck that cancer that is Rust.

Is this DashCon Part 2?

HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA

...

I'm a white supremacist. Can I apply for a diversity ticket?

BFGJ

No and by the way only white cis men need to pay.

ACL

CD

github.com/rust-lang/rust/pull/25640

github.com/rust-lang/rust-buildbot/issues/2

github.com/rust-lang/rust/issues/28059

>We believe in diversity and would like to provide support to people of many different backgrounds.
>This includes, but is not limited to people who belong to one or more of the following groups:
>people of color, women, nonbinary and gender non-conforming people, disabled people, people with mental health issues, and LGBTQIA+ people.

F 2bh

>technically disabled due to scoliosis
Free shit, here I come

>>people of color,
pajeet is underrepresented in tech?

Good for you.

T H I C C

> LGBT
Ok.
>Q
What?
>I
Why?
>A
Oh shit.
>+
Just kill me.

Yes.

You jealous about all the freeshit I'm going to get?
Its okay, be jelly

they could have said instead

LGBT*+

>LGBTQIA+

Anyone up for trying to get a free ticket?

my sides

>freeshit I'm going to get

LGTBQOJDOIJFWQPVLIBELBVLOAEFSPUBAIFBAWEIBEWB

...

LGBT[A-Z]*\+

FREEEEEE
R
E
E
E

You forgot the "+"

Hey Sup Forums trying to learn how to program and I'm using python since I was told it was make it easier to learn and get in the right mindset. Trouble is I read the text and think I understand the concept but completely freeze when it comes to writing code. I tried looking at other peoples code to try to wrap my mind around it but I don't feel like I'm learning anything when I copy code. Any advice. Thanks in advance.

>Sorry, applications for RustFest Kyiv 2017 are closed.
Well fuck...

I want to be squished between B and F

Copy programs manually.

x & 0x80000000 & 0x80000000


Why double &? What does this do?
x is an unsigned int.

gjkl

Programming is a craft. You cannot learn a craft by reading a book. You have to put it into practice. Most books end the chapter with exercises. Make sure you do those to get a firm grasp on what you've just read.

I don't know about A and E-L programming languages

>C programming language 2nd edition
could you link please?

>Amazon
amazon.com/Programming-Language-Brian-W-Kernighan/dp/0131103628
>PDF
alvand.basu.ac.ir/~dezfoulian/files/Programming/Prentice Hall - The C Programming Language- Brian W. Kernighan, Dennis M. Ritchie, 2nd ed., ISBN .pdf

python is a good starting point because it lets you write actually useful code you put thought into without having too much gibberish overhead.

Don't just look at people's projects and copy, that never works. Learn bottom up and expand by yourself. First start by doing a basic course, for example codecademy's python course for the synthax and basic concepts.

After that start working on things that are barely out of your current knowledge. A good first project is command line chess. It'll be a serious challenge but doable. And after you make this work you'll pretty much have a good feel for OOP.

For me a second project was making the 2048 game in python (with pygame library) complete with animations and all

Start again with the very basics and try to explain to yourself how it works.

Can I make a new thread?
I can't even find this one in the catalog and nobody is even talking programming anyway.

Never talk about me or my wife's thread ever again.

>could you link please?
uploaded it here

track5.mixtape.moe/ggxosi.pdf

is C with its structs good for Cracking the coding interview? i really don't like python. interviewers won't bully me if i use C in there?

Python isn't even real programming, everything is imported and written for you, you just have to read about an object's member functions and use those instead of writing anything to fit your needs.

the only people who put thread names in the name fields are newfags. not worth a thread war imo tho, they'll find the link in the last thread

I'm getting back into java especially for the reason of getting into android later. I'm using Java 8 now, but I've heard people say good things about java 9 and intelliJ supports it as of this year. Is there any noticeable difference for a beginner at all? what is the big improvement in 9?

i'd rather not have to implement things i don't have to in a coding interview.. the thing i dont like about python is there's little arbitrary things that rub me the wrong way. C's standard library has stuff like qsort

>the same method everyone uses should be written over and over again for 3 generations because you aren't a real programmer if it takes you less than 2 years to write hello world.

they'll probably ask you why you use C and be prepared to answer it. The only good answers are you do low level system/OS work, or simulations

also there questions being asked in CTCI aren't even conducive to anything in python. like a question that wanted to replace spaces with %20 in place, with a string buffer that has enough space for that. it's like, why not just use C at that point

the honest answer is that it's the favorite language of the professor i really admire, and it just rubbed off on me

Java 9
> Process API Updates
> HTTP 2 Client
> Improve Contended Locking
> Unified JVM Logging
> Compiler Control
> Variable Handles
> Segmented Code Cache
> Smart Java Compilation, Phase Two
> The Modular JDK
> Modular Source Code
> Elide Deprecation Warnings on Import Statements
> Resolve Lint and Doclint Warnings
> Milling Project Coin
> Remove GC Combinations Deprecated in JDK 8
> Tiered Attribution for javac
> Process Import Statements Correctly
> Annotations Pipeline 2.0
> Datagram Transport Layer Security (DTLS)
> Modular Run-Time Images
> Simplified Doclet API
> jshell: The Java Shell (Read-Eval-Print Loop)
> New Version-String Scheme
> HTML5 Javadoc
> Javadoc Search
> UTF-8 Property Files
> Unicode 7.0
> Add More Diagnostic Commands
> Create PKCS12 Keystores by Default
> Remove Launch-Time JRE Version Selection
> Improve Secure Application Performance
> Generate Run-Time Compiler Tests Automatically
> Test Class-File Attributes Generated by javac
> Parser API for Nashorn
> Linux/AArch64 Port
> Multi-Release JAR Files
> Remove the JVM TI hprof Agent
> Remove the jhat Tool
> Java-Level JVM Compiler Interface
> TLS Application-Layer Protocol Negotiation Extension
> Validate JVM Command-Line Flag Arguments
> Leverage CPU Instructions for GHASH and RSA
> Compile for Older Platform Versions
> Make G1 the Default Garbage Collector
> OCSP Stapling for TLS
> Store Interned Strings in CDS Archives
> Multi-Resolution Images
> Use CLDR Locale Data by Default
> Prepare JavaFX UI Controls & CSS APIs for Modularization
> Compact Strings
> Merge Selected Xerces 2.11.0 Updates into JAXP
> BeanInfo Annotations
> Update JavaFX/Media to Newer Version of GStreamer
> HarfBuzz Font-Layout Engine
> Stack-Walking API
> Encapsulate Most Internal APIs
> Module System
> TIFF Image I/O
> HiDPI Graphics on Windows and Linux
> Platform Logging API and Service
> Marlin Graphics Renderer
> More Concurrency Updates
> Unicode 8.0
> XML Catalogs


and many more things

This is pretty basic string manipulation.
You also get to learn about multi-level pointer indirection because realloc invalidates the original pointer you passed in unless you update that pointer's pointer.
Conceptually, it takes some getting used to.

cont

> Convenience Factory Methods for Collections
> Reserved Stack Areas for Critical Sections
> Unified GC Logging
> Platform-Specific Desktop Features
> DRBG-Based SecureRandom Implementations
> Enhanced Method Handles
> Modular Java Application Packaging
> Dynamic Linking of Language-Defined Object Models
> Enhanced Deprecation
> Additional Tests for Humongous Objects in G1
> Improve Test-Failure Troubleshooting
> Indify String Concatenation
> HotSpot C++ Unit-Test Framework
> jlink: The Java Linker
> Enable GTK 3 on Linux
> New HotSpot Build System
> Spin-Wait Hints
> SHA-3 Hash Algorithms
> Disable SHA-1 Certificates
> Deprecate the Applet API
> Filter Incoming Serialization Data
> Deprecate the Concurrent Mark Sweep (CMS) Garbage Collector
> Implement Selected ECMAScript 6 Features in Nashorn
> Linux/s390x Port
> Ahead-of-Time Compilation
> Unified arm32/arm64 Port
> Remove Demos and Samples
> Reorganize Documentation

and that's it.

Android still doesn't do Java 8. Let alone Java 9.

> jshell: The Java Shell (Read-Eval-Print Loop)
holy shit, im hyped

i already know C, i'm just saying that python isn't even helpful regarding the questions, because you're required to do them in place, and python strings are immutable

>LGBTQIA+
At this point i cannot keep up with all the madeup genders they come up by the minute

It's LGBTQQIP2SAA+ now.

why does octal even exist

for the lulz

convenience and brevity.

for example, binary numbers in text are a waste of space.

it just throws me off. i think it's hex. it doesn't even make logical sense, at least hex divides things into nibbles. octal divides them into blocks of 3 bits

To keep CIA niggers at bay.

Why use it instead of hex though? What's the point?

i'm reading through art of assembly language and i think there used to be machines that had memory address widths divisible by 3 and not 4

fuck me if i know

Decimals are for humans to understand.
Binary is for machines to understand.
Octal and Hexadecimal are compact forms of binary to make it easy for human to work with.
Octal represents 3 bits at a time. Hexadecimal represents 4 bits at a time.

Octal is most frequently used (in languages like C) to express character codes when for some reason you can't use the character directly (perhaps because it is not printable).

Writing ASCII codes in octal makes the table layout more obvious than writing them in hex. Also, architectures where the word size is 36 bits are easier to debug with octal.

>architectures where the word size is 36 bits

Because that was one of the leading standards for a long time. Using multiples of 8 is a pretty recent thing.

C*

Why not use base 36?

write a function setbits that returns x with the n bits that begin at position p set to the rightmost n bits of y, leaving the other bits unchanged


is this hard or am i retarded? i have
unsigned setbits(unsigned x, int p, int n, unsigned y){
return x & (y

fuck i meant the opposite. this is how much i know about bit manipulation

People won't find this thread because you screwed up, OP.

Sadly, nothing ATM, but I will be copying over some stupid scroller game in JS for my brother for an AP CS project, then modifying it a bit

Learned how to pass back char arrays in C, though, the other day.
Like as a return value, not a reference.
I still haven't got to the chapter on malloc(), yet, but I've been learning a bit about it to do these sorta things

C best language

I think you're reading the problem wrong, it's pretty poorly worded. I think you want something like the following, assuming it means pth position DOWN to LSB (instead of up to MSB)
n = 4
p = 10
x = 0100 10[10 01]10 0100
y = 0000 0011 0100 [1111]

setbits(...)

x_new = 0100 10[11 11]10 0100

ahh ok not reading your code since i dont want it spoiled but i see you mean that you zero out the lowest n bits on x, and then or them with the correct y bits. ty

Because it isn't base 36. It's still binary.
An octal digit neatly represents a 3 bit nybble, as opposed to a hexadecimal digit's 4 bit nybble. If the bit width of a word is divisible by 4, you use hex. If it's evenly divisible by 3, you use octal. Easy.

>LGBTQIA+
>A
So vir/g/ins get in for free?

>github.com/rust-lang/rust/pull/25640

A disturbing lack of support for H in this thread.