-  [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 396 unique user posts. View catalog

  • Blotter updated: 2018-08-24 Show/Hide Show All

We are in the process of fixing long-standing bugs with the thread reader. This will probably cause more bugs for a short period of time. Buckle up.

There's a new /777/ up, it's /Moldy Memes/ 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.

Assembly Neckbearded Basement Dweller 16/11/24(Thu)11:31 No. 4962 [Reply]
4962

File 147998349749.png - (41.56KB , 604x394 , screenshot-3[1].png )

hey /pr/

I've been learning Unity/C# for a while,
and I want to learn a little assembly, mostly since I like to learn how the computer works and feel I could understand other languages better if I got a look under the hood.
I looked up some stuff online, but I have a few questions:


1. I noticed there are different assembly languages for each CPU architecture, with x64 being able to run x86 code in 32bit mode.
however, I found a code sample that had this at the top:
".586 ;Target processor. Use instructions for Pentium class machines"

does this mean that each processor/processor generation has a different assembly language, or is it just an optimization thing?

2. are there GPU specific assembly languages as well?

Message too long. Click here to view the full text.


>>
Neckbearded Basement Dweller 16/11/26(Sat)03:28 No. 4964

1. While each x86 processor is backwards compatible with previous processors, they do have instructions that take advantage of new features. For example, before math co-processors were standard on Pentium era CPUs programmers had to manually detect the presence of a math processor and programs had two code paths, one that took advantage of FPU instructions and one that didnt.
2. No. On modern kernel architectures you do not program the GPU directly. The closest you'll get is NVIDIA's CUDA and similar.
3. Not at all. Unless you are engineering Hard Real Time stuff and some forms of embedded, or you are trying to break systems (i.e. creating NOP sleds etc), a modern programmer will never need asm. Thank allah. Additionally, these days it is really unlikely the average programmer can hand craft asm that is faster then what a compiler can do.


>>
Neckbearded Basement Dweller 16/11/26(Sat)12:10 No. 4965

>>4964
Thanks, great info.
So if I understand correctly x86/x64 asm is mainly useful as a learning tool and for hacking.

How about ARM assembly? would learning it be beneficial for optimizing apps, or hacking together something that couldn't be done otherwise?


>>
Neckbearded Basement Dweller 16/11/28(Mon)08:32 No. 4968

Knowing the Assembly for your target architecture can be useful not so much to write code but to debug it. Sometimes you may find that a crash is only triggered when the application it built with optimizations, and when you look at the debugger, it may only show you the disassembly at the point where the program crashed. Knowing Assembly can help you figure out what's causing the crash.

Knowing Assembly also opens up other possibilities, such as studying executables to figure out how they do what they do (i.e. reverse engineering)

ARM Assembly is exactly as useful as other other Assemblies, for any given application domain.
Personally, being used to x86 and some of its predecessors, I find it rather annoying to use.




SCM Music Player works only on HTTP SonyaM 16/11/26(Sat)12:29 No. 4966 [Reply]
4966

File 148015977565.jpg - (73.49KB , 540x405 , 1480081637982.jpg )

Hello, to see this problem you have to visit my Neocities static website using both protocols (HTTP and HTTPS):

http://strangerkawaiithings.neocities.org/
https://strangerkawaiithings.neocities.org/

Thank you for the help!




Python 3.5 Neckbearded Basement Dweller 16/09/04(Sun)16:50 No. 4934 [Reply]
4934

File 147300060744.png - (5.84KB , 55x55 , icon.png )

Hey, so I installed anaconda in a brand new Linux Mint distro but when I
"spyder --new-instance" it opens spyder 2.7, and I need 3.5 for what I'm doing atm.

Can anyone give me a few pointers?


>>
Neckbearded Basement Dweller 16/09/12(Mon)10:01 No. 4936

void * voidPtr(NULL);
int * intPtr(NULL);
double check(0.00022);
double * dubs(&check);


>>
Neckbearded Basement Dweller 16/11/17(Thu)14:42 No. 4961

>>4936
I see what you did there...

But for real OP, anaconda has this concept of environments. You should make one for each distort of python / toolchain set you might want.

to do that see this stack overflow posting and act accordingly:
http://stackoverflow.com/questions/30492623/using-both-python-2-x-and-python-3-x-in-ipython-notebook




Neckbearded Basement Dweller 16/11/01(Tue)17:53 No. 4950 [Reply]

Hey, I'm learning C++ and need a little bit of advice on this practice program. After putting delete[] in the program, sometimes the program will run but sometimes windows will say the program stopped working(even though after I close the popup it runs fine.) What's going on?

Code: http://pastebin.com/wLEyXTjS


>>
Neckbearded Basement Dweller 16/11/02(Wed)22:48 No. 4951

The object is on the stack, so no need to delete it.




C Programming kashyap 16/10/20(Thu)18:55 No. 4945 [Reply]

Help me how to Set random num and his commands in C to use randomization..


>>
Neckbearded Basement Dweller 16/10/28(Fri)09:15 No. 4947

Here you go chum:
http://stackoverflow.com/questions/822323/how-to-generate-a-random-number-in-c




Neckbearded Basement Dweller 16/10/20(Thu)00:24 No. 4944 [Reply]
4944

File 147691587857.jpg - (32.87KB , 630x354 , python-016.jpg )

I appropriated this python script to redirect dbus screenlock calls to xscreensaver. Now there are two competing dbus services, GNOME's own org.gnome.ScreenSaver and light-locker's org.freedesktop.ScreenSaver. I want this script to be able to replace both, so it can be adopted for a wider range of desktop environments.

How can I create two dbus services with one script?

Current script: pastie.org/10946378




hacking someone back Swamp Child 16/05/27(Fri)08:00 No. 4899 [Reply]

okay total noob here

some little shit got my email, Facebook, and dick pics and is threatening me over kik of all places, and also apparently has my ip.

i get i should have have higher security measures.

i wanna know how to stop him and fuck up his shit.

any help would be GREATLY appreciated.


6 posts omitted. Click Reply to view.
>>
NormanPrice 16/08/18(Thu)01:06 No. 4928

Call fireman Sam


>>
Neckbearded Basement Dweller 16/10/10(Mon)07:24 No. 4942

On Windows, delete system32.

On Linux, sudo rm -rf /

Then kill yourself.


>>
Neckbearded Basement Dweller 16/10/10(Mon)07:58 No. 4943

>>4942
After nearly five months I'm pretty sure he's either dead or crying himself to sleep at night.




Neckbearded Basement Dweller 16/09/21(Wed)21:02 No. 4939 [Reply]
4939

File 147448457490.png - (40.06KB , 660x418 , 1_7Logo.png )

For a while, the mod tools have been rightfully criticized on LynxChan. I have always put mods behind users and admins and it showed.

But now with 1.7 I looked into changing that. This version brings several improvements to moderation:

==Better report queue==
Now reports display the reported content, removing the need for mods to open the page to see what has been reported. But in some cases they won't even have to open the page, because now you have the option to automatically delete the reported content when you close it's report.
Along with that, two other lesser changes were made to the report queue; the link to visualize the post takes you to the moderation page and you can close multiple reports at once.
Reports are deleted when their reported content is deleted, removing cluster.

==More moderation tools==
Deletion by IP have been implement for board staff too, so they are able to deal with spam better without relying on the global staff.
Narrow range ips have been implemented, allowing for range bans to use 3/4 of the ip instead of 1/2, giving moderation more control over range bans.

==Moderation quality of life==
To make bans easier, now ban duration defaults to 5 years and global staff are not required to use the captcha for applying bans anymore.
Message too long. Click here to view the full text.




Programming 16/09/06(Tue)14:10 No. 4935 [Reply]
4935

File 147316382527.jpg - (518.15KB , 2500x1443 , ProgrammingLanguage1.jpg )

https://www.youtube.com/watch?v=7xZUJzfNg-o




♠ī¸đŸ¤“â„šī¸ đŸŒŋ 16/08/22(Mon)09:16 No. 4931 [Reply]
4931

File 147185016119.png - (803.97KB , 750x1334 , image.png )

Remember that people know computers are lethal weapons which require a license to use and not only that but people have already endured not only alchemy , code war , and existential restarts , but these same so called never before seen astrological attacks and Monotheism God is going to crush all of you that think 0 and 1 are going to save you in a bitheist lie world as if Monotheism God never beat this stupid behavior before so please recall to be good and orderly in turning in ANY which does include yourself that have do e wrong that have done wrong against human life as such to start them to be killed to death for no reason as other than not being able to program the way you like .


>>
Neckbearded Basement Dweller 16/08/22(Mon)09:48 No. 4932

>>4931
So, you must either be a MAC or UNIX user then...

All this drivel about religion...





Delete post []
Password  
Report post
Reason