-  [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 377 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 17/01/10(Tue)06:44 No. 4982 [Reply]
4982

File 148402707222.png - (4.07KB , 200x75 , Musl_libc.png )

Hello great Wizards!

Can we have a musl-libc thread?
Static everything is good, example: sta-li linux (http://sta.li/)
( Small & stable & efficient ) code.




Neckbearded Basement Dweller 16/11/28(Mon)20:50 No. 4970 [Reply]
4970

File 14803626017.png - (102.11KB , 800x600 , Untitled.png )

hey /pr/ here are some cool open source games i found.

https://play0ad.com/
http://www.xonotic.org/
https://www.wesnoth.org/

maybe you can use your programming skills to help develop and make these games better.


>>
Neckbearded Basement Dweller 16/12/22(Thu)13:27 No. 4976

+
AssaultCube
OpenArena
OpenRA




needs advices Neckbearded Basement Dweller 16/11/26(Sat)01:12 No. 4963 [Reply]
4963

File 148011913833.jpg - (350.02KB , 576x720 , 125687572736.jpg )

Okay, I recently switched to Linux... and I'm looking at Qt as an IDE, but I have a bunch of questions:

1) Does anyone have a better suggestion than Qt? I'm not a professional in any sense, I just do this for fun and occasionally for a practical need that I may occasionally have for building my own progs. I've mostly used Basic (several kinds) but I am willing to give other languages a shot from time to time... looking at Python as an alternate lately.

2) What all bits and pieces do I need to make it work? I'm constantly getting surprises when it comes to plugins and other stuff, so I need to have some idea what's involved in simply writing out some code, building a few forms, and the simple task of compiling the damn thing!

3) Can it be used for making games? Frequently, I find it necessary to use a "gaming" language because of the ability to do 3D world rendering, but the only out-of-box lang I've found so far is Blitz3D, which is pretty cool but horribly limited in several other areas. I can add modules, but this seems to be easier in some than others... Irrlicht is my current fave, but if you know of another one that does the same for no cost then I'd love to hear it.

4) Can I compile into Windows-ready *.exe/*.dll files? Linux is great, but Windows is still a thing (sadly), Mac is entirely optional to me as I don't use it.

Also, EVERYTHING must be FREE because I AM BROKE.


1 post omitted. Click Reply to view.
>>
Neckbearded Basement Dweller 16/12/01(Thu)21:53 No. 4971

>>4969
Op here... I'm realizing as I look back at my original post that I probably wasn't very clear about a few things, although you did answer most of my questions pretty well. :)

For that the last question (#4), I should've mentioned that most of my progs are simple items that don't tend to use much outside stuff as a general rule, and therefore shouldn't require any retooling if recompiled for a different OS.

#3 is the sticky point though... I simply use a game engine to do live 3D rendering because it's easier than trying to create bullshit charts or anything else. I can just make some code, crunch some data, render it in a 3D world and mess with it that way. (yeah, im weird) I have experimented with game programming before, and I may give that another whirl soon. But what exactly does Qt have built in it for doing 3D world rendering? Irrlicht is optional to me.


>>
Neckbearded Basement Dweller 16/12/02(Fri)22:39 No. 4972

>>4971
>what exactly does Qt have built in it for doing 3D world rendering?

This looks like a promising place to start: http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html


>>
Neckbearded Basement Dweller 16/12/05(Mon)00:05 No. 4975

>>4972
Pretty basic stuff... looks like something I can use too! Thanks!




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.




Delete post []
Password  
Report post
Reason