-  [WT]  [PS]  [Home] [Manage]

  1.   (new thread)
  2. [ No File]
  3. (for post and file deletion)
/pr/ - Programming
  • Supported file types are: C, CSS, DOC, DOCX, GIF, H, JAVA, JPG, PDF, PNG, SVG, SWF, TXT, WEBM
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 371 unique user posts. View catalog

  • Blotter updated: 2011-01-12 Show/Hide Show All

There's a new /777/ up, it's /Trump/ - Make America Great Again! Check it out. Suggest new /777/s here.

Movies & TV 24/7 via Channel7: Web Player, .m3u file. Music via Radio7: Web Player, .m3u file.

WebM is now available sitewide! Please check this thread for more info.

Neckbearded Basement Dweller 15/02/09(Mon)20:00 No. 4688 [Reply]
4688

File 142350844190.png - (38.44KB , 937x1033 , キャプチャ.png )

Sup /pr/.
In the image is a program for adding 400 to a variable and one for adding 2b to a variable. The one for the bottom adds 2000000000. This is with 32 bit ARM, so the bottom add needs to do extra work to add the larger number (op codes and registers take up some of the 32 bits for the instruction, so it needs to load the 32 bit number into a register and add the registers together instead of just adding like the add r3, r3, #400 instruction). If I have a 64 bit processor and a 32 bit operating system, can I make a compiler that uses the 64 bit word size to add for both of these programs in just the one assembly instruction or does the OS limit itself to 32 bit words?


>>
Neckbearded Basement Dweller 15/02/12(Thu)04:46 No. 4689

bump for science


>>
Neckbearded Basement Dweller 15/02/13(Fri)00:06 No. 4691

You can compile it, but unless ARM does some magic Intel doesn't you won't be able to run the program.
Every time the running thread changes the OS saves the registers in memory (as they will be used by the next thread). A 32-bit OS only needs to save the 32-bit registers. To make sure, you could test it in QEMU.
Disclaimer: I don't have much experience with ARM.


>>
Neckbearded Basement Dweller 15/02/13(Fri)07:06 No. 4692

>>4691
I was mostly thinking Intel since I don't have anything that's 64 bit ARM. I'm not sure how Intel does the machine code yet since they do some kind of variable length instruction magic. I guess my idea works better with fixed length instructions though, maybe there are some instructions for Intel that can use it, I'll try to find that out eventually.




Hello Hi 15/02/03(Tue)01:19 No. 4684 [Reply]
4684

File 142292278771.png - (7.61KB , 200x240 , zbar_200.png )

I was wondering if anyone can give me insight on how to add the Zbar QR scanner into my Xcode. I have searched all over the place and I have only found tutorials on how to do it on older versions (Objective-C) Any help is greatly appreciated!




SQL ? Neckbearded Basement Dweller 15/01/24(Sat)13:34 No. 4680 [Reply]
4680

File 142210287754.jpg - (259.39KB , 720x480 , 1350159034001.jpg )

SQL Bernds, please halp:

We have the table "Qualifications" with the following fields:
1. Class (1,2,3, .., 2)
2. Subject (English, Mathematics, Computer_science, ...)
3. Family Name (Anderson, Sullivan, Smith ..)
4. Nick Name (Mary, John, ..)
5. Score (9,10,4 ..)
6. Date (13.03.2014,02,04.2014 ...)

Write a SELECT statement that returns the highest score for each student in a given class, on a given subject, along with the date, when the score was obtained.
"Class" and "Subject" for selection are transmitted through host variables. (H-CLASS , H-SUBJECT)
Variable "H-SUBJECT" may contain the name of a subject or the word "All".
In this case the top scores for all subjects for all students of the given class will be listed.
These two cases (one specific subject and all subjects) will be managed in the same select statement.
Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 15/02/02(Mon)11:24 No. 4682

fuck databases, make games.
but it will probably be the stackoverflow result for a google query containing lots of databasy words like "sql select from max value"
https://stackoverflow.com/questions/612231/how-can-i-select-rows-with-maxcolumn-value-distinct-by-another-column-in-sql
or
https://stackoverflow.com/questions/7745609/sql-select-only-rows-with-max-value-on-a-column




Neckbearded Basement Dweller 14/12/28(Sun)07:39 No. 4656 [Reply]
4656

File 141974875541.jpg - (131.39KB , 1280x720 , maxresdefault.jpg )

So, what do you think about Bret Victor?

http://vimeo.com/115154289


>>
Neckbearded Basement Dweller 14/12/28(Sun)18:32 No. 4657

he's standing in front of a macbook.
I doubt anything of value will come from his lips but let's see...


>>
Neckbearded Basement Dweller 14/12/30(Tue)05:29 No. 4658
4658

File 141991378135.jpg - (402.86KB , 2298x1725 , air2008.jpg )

Well, I had macbook (air) once too. It took me about a month to figure how to get linux there, but once installed, it was almost usable.


>>
beard on face also, basement too cold 15/01/26(Mon)10:02 No. 4681
4681

File 142226292938.jpg - (150.72KB , 1280x720 , WIN_20150126_015805.jpg )

>>4656

I actually attended the conference from which the video was recorded.

I very much liked his talk, specifically I liked his attention on the ways information is represented.

"Perspective is worth 70 IQ points"
- A professor of mine




Delete post []
Password  
Report post
Reason