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

What are you working on, /g/? Old thread: >>60002401

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

Thread replies: 99
Thread images: 16

File: red-pill.png.jpg (99KB, 1200x600px) Image search: [Google]
red-pill.png.jpg
99KB, 1200x600px
What are you working on, /g/?
Old thread: >>60002401
>>
Rust is cancer.
>>
Thank you very much for not using an anime picture.
>>
>>60005942
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
>>
>>60005984
Rust.
>>
>>60005984
Seeplus+
>>
>>60005999
Trips don't lie. Load up them Java VM's boys!
>>
>>60005917
Bump for visibility on my question
>>
File: 42641257521757.png (89KB, 1215x895px) Image search: [Google]
42641257521757.png
89KB, 1215x895px
>>60006006
>use "insert meme here" language
Fuck off
pic related
>>
>>60006031
But but but.. RedoxOS
>>
>>60005984
Whatever language you feel like. They're both a solid choice.
>>
>>60006043
lol
>>
>>60006031
>>60006043
Nobody cares, /pol/.
>>
>>60005987
This is more about Rust being a cuck SJW language and C being the Whitest-and-proudest language out there.
>>
File: 1477283412046.jpg (98KB, 1456x896px) Image search: [Google]
1477283412046.jpg
98KB, 1456x896px
>>60006043
Fuck that cancer that is Rust.
>>
>>60006043
Is this DashCon Part 2?
>>
>>60006043
HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
>>
File: H E C K.jpg (129KB, 960x753px) Image search: [Google]
H E C K.jpg
129KB, 960x753px
>>60005942
>>
>>60006043
I'm a white supremacist. Can I apply for a diversity ticket?
>>
>>60006100
BFGJ
>>
>>60006106
No and by the way only white cis men need to pay.
>>
>>60006100
ACL
>>
>>60006100
CD
>>
File: 1388796945866.jpg (237KB, 640x427px) Image search: [Google]
1388796945866.jpg
237KB, 640x427px
>>60006043
>>60006059
>>60006068
>>60006070
>>60006083
>>60006106
https://github.com/rust-lang/rust/pull/25640

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

https://github.com/rust-lang/rust/issues/28059
>>
>>60006106
>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.
>>
>>60006100
F 2bh
>>
>>60006148
>technically disabled due to scoliosis
Free shit, here I come
>>
>>60006148
>>people of color,
pajeet is underrepresented in tech?
>>
>>60006159
Good for you.
>>
File: 1492322263655.png (41KB, 362x480px) Image search: [Google]
1492322263655.png
41KB, 362x480px
>>60006122
T H I C C
>>
>>60006148
> LGBT
Ok.
>Q
What?
>I
Why?
>A
Oh shit.
>+
Just kill me.
>>
>>60006173
Yes.
>>
File: Rich-Boy-Wallpaper-.jpg (241KB, 1990x1345px) Image search: [Google]
Rich-Boy-Wallpaper-.jpg
241KB, 1990x1345px
>>60006168
You jealous about all the freeshit I'm going to get?
Its okay, be jelly
>>
>>60006175

they could have said instead

LGBT*+
>>
File: sanguo ma chao.png (565KB, 824x471px) Image search: [Google]
sanguo ma chao.png
565KB, 824x471px
>>60006148
>LGBTQIA+
>>
>>60006043
Anyone up for trying to get a free ticket?
>>
>>60006195
my sides
>>
File: 1427325174842.png (98KB, 430x180px) Image search: [Google]
1427325174842.png
98KB, 430x180px
>>60006193
>freeshit I'm going to get
>>
>>60006148
LGTBQOJDOIJFWQPVLIBELBVLOAEFSPUBAIFBAWEIBEWB
>>
>>60000000
>>
>>60006195
LGBT[A-Z]*\+
>>
File: REEEEEEEEEE.gif (1MB, 900x835px) Image search: [Google]
REEEEEEEEEE.gif
1MB, 900x835px
>>60006214
FREEEEEE
R
E
E
E
>>
>>60006222
You forgot the "+"
>>
File: Trevor Something Does Not Exist.jpg (78KB, 1280x720px) Image search: [Google]
Trevor Something Does Not Exist.jpg
78KB, 1280x720px
Hey /g/ 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.
>>
>>60006211
>Sorry, applications for RustFest Kyiv 2017 are closed.
Well fuck...
>>
>>60006100
I want to be squished between B and F
>>
>>60006281
Copy programs manually.
>>
x & 0x80000000 & 0x80000000


Why double &? What does this do?
x is an unsigned int.
>>
>>60006100
gjkl
>>
>>60006281
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.
>>
>>60006100
I don't know about A and E-L programming languages
>>
>>60005984
>C programming language 2nd edition
could you link please?
>>
>>60006388
>Amazon
https://www.amazon.com/Programming-Language-Brian-W-Kernighan/dp/0131103628
>PDF
http://alvand.basu.ac.ir/~dezfoulian/files/Programming/Prentice%20Hall%20-%20The%20C%20Programming%20Language-%20Brian%20W.%20Kernighan,%20Dennis%20M.%20Ritchie,%202nd%20ed.,%20ISBN%20.pdf
>>
>>60006281
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
>>
>>60006281
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.
>>
>>60006428
Never talk about me or my wife's thread ever again.
>>
>>60006388
>could you link please?
uploaded it here

https://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?
>>
>>60006478
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.
>>
>>60006428
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?
>>
>>60006544
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
>>
>>60006544
>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.

>>60006478
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
>>
>>60006544
>>60006584
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
>>
>>60006622
the honest answer is that it's the favorite language of the professor i really admire, and it just rubbed off on me
>>
>>60006578
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
>>
File: cute delivery boy :3.jpg (51KB, 828x960px) Image search: [Google]
cute delivery boy :3.jpg
51KB, 828x960px
>>60006647
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.
>>
>>60006685
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.
>>
>>60006578
Android still doesn't do Java 8. Let alone Java 9.
>>
>>60006685
> jshell: The Java Shell (Read-Eval-Print Loop)
holy shit, im hyped
>>
>>60006705
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
>>
>>60006148
>LGBTQIA+
At this point i cannot keep up with all the madeup genders they come up by the minute
>>
>>60006842
It's LGBTQQIP2SAA+ now.
>>
why does octal even exist
>>
>>60006916
for the lulz
>>
>>60006916
convenience and brevity.

for example, binary numbers in text are a waste of space.
>>
>>60006964
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
>>
>>60006916
To keep CIA niggers at bay.
>>
>>60006964
Why use it instead of hex though? What's the point?
>>
>>60007041
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
>>
>>60007041
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).
>>
>>60007041
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.
>>
File: y tho.jpg (865KB, 1813x2111px) Image search: [Google]
y tho.jpg
865KB, 1813x2111px
>>60007089
>architectures where the word size is 36 bits
>>
>>60007108
Because that was one of the leading standards for a long time. Using multiples of 8 is a pretty recent thing.
>>
File: 1479745210425.png (150KB, 1906x334px) Image search: [Google]
1479745210425.png
150KB, 1906x334px
>>60005965
C*
>>
>>60007089
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 << p)
}

which i think will set the 0 bits in the correct range of x to 1 if they should be 1, but won't set the 1 bits to 0 if they should be. idk how to do that and i imagine it's a lot harder
>>
>>60007659
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.
>>
>>60005942
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
>>
>>60007659
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
>>
>>60007870
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
>>
>>60007577
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.
>>
>>60006148
>LGBTQIA+
>A
So vir/g/ins get in for free?
>>
>>60006138
>https://github.com/rust-lang/rust/pull/25640
>>
File: y.png (904KB, 5000x2808px) Image search: [Google]
y.png
904KB, 5000x2808px
>>60006100
>>60006122
>>60006129
>>60006134
>>60006151
>>60006318
>>60006340
A disturbing lack of support for H in this thread.
Thread posts: 99
Thread images: 16


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

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


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