[ cyb / tech / λ / layer ] [ zzz / drg / lit / diy / art ] [ w / rpg / r ] [ q ] [ / ] [ popular / ???? / rules / radio / $$ / news ] [ volafile / uboa / sushi / LainTV / lewd ]

λ - programming

/lam/bda /lam/bda duck
Name
Email
Subject
Comment
File
Password (For file deletion.)

BUY LAINCHAN STICKERS HERE

STREAM » LainTV « STREAM

File: 1444508907032.png (138.38 KB, 457x645, 1417957113587.png) ImgOps iqdb

 No.10406[Reply]

Let's share some good papers!
11 posts and 6 image replies omitted. Click reply to view.
>>

 No.10508

File: 1444731906357.pdf (141.08 KB, Kleisli.pdf)

Kleisli arrows of good fortune, really good functional pearl

>>

 No.10509

Does anyone have anything on machine learning and image recognition?

>>

 No.10540

File: 1444816309004.pdf (1.98 MB, John Hopcroft - Foundation….pdf)

>>10509
It's a book, but it fits.

>>

 No.11135


>>

 No.11144

>>10498
>giving people the envy to read it

What?



File: 1435475150086.jpg (6.95 KB, 323x305, triangle.jpg) ImgOps Exif iqdb

 No.7117[Reply]

Graphics general didn't fare so well on /g/. Lets see how it goes here.

Thread for
- OpenGL
- DirectX
- Mantle
- Vulcan

and the practice and learning thereof!

Some resources for getting started:

- https://open.gl/
- http://www.tomdalling.com/blog/modern-opengl/
- http://antongerdelan.net/opengl/
Post too long. Click here to view the full text.
27 posts and 1 image reply omitted. Click reply to view.
>>

 No.11069

>>11068
I figured that would be the case.

Should I use motif, gtk, or qt?

>>

 No.11070

>>11069
If you just want a window you can render OpenGL to + user input glfw is pretty easy to use.

A lot of tutorials pick a library to use as a shim for cross-platform development. If you're following a tutorial just use whatever they are.

>>

 No.11075

I'm getting started on glsl, need some knowledge for a js/webgl soykaf I'm doing. The same shaders will be portable to other platforms such as a c-opengl game? Recommended learning resources?

Also, I've always been fascinated about the demoscene. What are the skills required or learning path towards being a demoscener?

>>

 No.11085

>>11075
>The same shaders will be portable to other platforms such as a c-opengl game?
GLES (what webgl uses) is mostly a subset of big GL so porting from GLES to big GL is fairly easy. The primary issue is versions because GLES versions don't correspond well to GL versions, even though pretty much every feature in GLES is present in some version of big GL. Porting from GLES to big GL is much easier than the other way.
>What are the skills required or learning path towards being a demoscener?
You have to be good at a lot of things, or else know people who are, or else have the patience to do things you're not good at. I've tried making demos a few times and I've made some cool effects but when it comes time to add music or choreograph it I lose interest. Also when you watch demos they often seem repetitive, but once you try to make one you'll see that there are usually a ton of different effects crammed into a short time so it takes a lot of work. You might spend days working on an effect that will only be visible for 2 seconds.

>>

 No.11098

>>7117
I really like SDL 1.2 since it's super simple.
They made SDL 2 look more like OpenGL which should make some things easier in the long run but it made it harder to just make something quick.



 No.9455[Reply]

I've started learning about reverse engineering, and I thought it would be a interesting to create a thread about it.

Currently I'm reading Grey Hat Python, which is pretty neat. It teaches you how debuggers work, and works you though creating your own.

Also, to any mods reading. I don't know what the proper board for this would be (I think /cyb/ works). So feel free to move this if you want.
11 posts omitted. Click reply to view.
>>

 No.9467

The only way in to http://skullcode.com is a bit of reverse engineering.

It's certainly not worth figuring out the weird architecture just to deal with what that community thinks is "all in good fun" (hacking each other's VM code to bits), unless you seriously enjoy reverse engineering...

>>

 No.9468

>>9467
How do you get started with skullcode?

I expected some kind of explanation, but are you really just dropped into the memory editor of a system that is accepting your exploration as input the entire time, with no help whatsoever?

>>

 No.9469

>>9468
Well, sort of.

The beginner will find a hook to execute whatever code they like. Zero the byte at address 6666h. The jump address is already filled, and demonstrates that the machine is little endian. The next hint is usually another address. After demonstrating a few incremental reverse engineering feats the self modifying code may do just that...

The intermediary reverse engineer will probably think outside of the presented box. After jumping through a series of hoops in a different direction they'll discover a sort of "map" to potentially secure a mid level login.

Some skilled hackers think the skullcode landing page is too full of holes begging to be filled with exploits, but I disagree. Determined hackers can apparently get root if they're interested enough, but they attract attention from other pranksters so only the dedicated say root for long.

The lack of documentation is probably because the entry site has moved a few times in the past and the landing page architecture changes periodically making documented entry methods less than helpful. In fact, the underlying code changed last week, but the bytecode didn't. Internally, one's programs can specify which VM to use so as not to require recompilation.

Personally, I like skullcode for its persistent "stickyness". It's not an ephemeral completion like nearly every vuln group. The exploits developed therein don't have security ramifications for the real world so there's no ethical pressure to publish exploits, and there's no ready made library of exploits to deploy (see: Metasploit, which allows point and click skiddie tier cracking, and makes lots of CTFs unfun). There's a certain 16-bit era charm to skullcode, nowadays the security landscape is much different. The down side is there's not much help to be found on the external web. There's been talk of changing that, but this may fracture (or destroy) the community.

If you're looking for something welcoming, more mainstream, less challenging, and for popular chipsets with tons of documentation, that niche has already been filled to the brim by any of the existing security CTF (Capture The Flag) competitions.
https://www.vulnhub.com/
Post too long. Click here to view the full text.

>>

 No.9470

>>9455
>Also, to any mods reading. I don't know what the proper board for this would be (I think /cyb/ works). So feel free to move this if you want.
It's at the end of the /cyb/ board now, so I'm going to move this to /λ/ like I should have by now.

There was a flaw in the thread-moving system and the images didn't survive.

>>

 No.11049

I'm currently drudging through this:
http://beginners.re/

I haven't seen much I don't already know, but I'm keeping up with it. I think it will get better.

It's a shame x86 is the most popular instruction set for these things. MIPS is so much nicer.



File: 1432291144736.jpg (246.06 KB, 1300x1210, 16414390-Abstract-word-clo….jpg) ImgOps Exif iqdb

 No.6176[Reply]

Why don't we have a scripting language showcase thread?

What did you write today, lainons? (And why?)
35 posts and 5 image replies omitted. Click reply to view.
>>

 No.9362

File: 1442091210640.png (144.9 KB, 363x271, uhuh.png) ImgOps iqdb

>>9361
> stripping tabs from <code>
This engine never fails to amaze me with each step I get to know it.

>>

 No.9398

>>9362
I'm pretty sure tabs are just a different width here.

This is why you should always use spaces. fuarrrk tabs.

>>

 No.9400

>>9398
fuck spaces

>>

 No.9405

while true; do espeak "rofl"; done

>>

 No.11048

Here's something I never bother saving I use for when I add new books or whatnot to my organized book directory:
(map 'string (lambda (c) (case c (#\  #\-) (t (char-downcase c)))) "")
Example:
CL-USER> (map 'string (lambda (c) (case c (#\  #\-) (t (char-downcase c)))) "The GNU C Reference Manual")
"the-gnu-c-reference-manual"
CL-USER>



File: 1444574123171.jpg (100.36 KB, 1024x768, 1390488781.jpg) ImgOps Exif iqdb

 No.10462[Reply]

what are some good websites for freelance programming?
any lainon has any experience?
how do i start?
6 posts and 1 image reply omitted. Click reply to view.
>>

 No.11005

File: 1445879067893.jpg (115.33 KB, 500x500, 1412549958805-3.jpg) ImgOps Exif iqdb

>>10462
https://www.sevendays.co/

Really neat concept. I don't know how well it works from personal experience, but I've heard good things from others.

>>

 No.11014

>>11000
we shouldn't need to agree cause it's obvious.

>>

 No.11029

>>11014

Well that was more or less a rhetorical question but I had some hope about anons starting right off the bat and being successful at it.

>>

 No.11030

>>11000
I mean, it depends really.

Giving John's Gun Shop a new static site that doesn't look like a GEO cities site is just fine.

But yeah, working on soykaf that isn't a static site is a good way to never want to do it again.

>>

 No.11041

>>11000
Depends on the area you want to start in.

Webdev is actually possible.
On the other hand everyone does so you have quite the competition.



File: 1445462277515.jpg (28 KB, 590x564, pi.jpg) ImgOps Exif iqdb

 No.10831[Reply]

3 posts omitted. Click reply to view.
>>

 No.10934

https://oeis.org/wiki/Disjunctive_numbers
>It is not known whether π = 3.1415926535897932384626433832795... is a disjunctive number.[3]
So we don't even know if it works. Useless.

>>

 No.10953

Won't work.
This, and ideas like it, pop up all the time.

https://en.wikipedia.org/wiki/Kolmogorov_complexity

>>

 No.10987

>>10831
the problem is that, assuming the digits are random, on average it takes a number of length n to point to a message of length n. And, since pi is iterative, you'd be incurring gigantic computational cost as well.

Proof:

let your message be m1, m2, m3, ... mn

the probability that a series of random digits matches your message is 1/10 * 1/10 * 1/10 * ... = 1/10^n

therefore if we take a sample of all messages of length n in the random sequence, on average you would have to sample 10^n sequences to get a matching sequence. (10^n * 1/10^n = 1)

It just so happens that it takes n digits to represent 10^n in a base-10 system. This could not be compressed to base-exponent notation because in most cases the number would not be 10^n.

Therefore, on average there would be no compression performed.

>>

 No.11019

>>10953
It works, it is just unbelivealy slow, as I think your link was supposed to show. But the proposition is just for fun.

>>

 No.11040

>>10847
The problem is, the indices would be massive - larger than the data itself, in most cases.



File: 1445641354661.jpg (404.72 KB, 2048x2100, wood thinkpad.jpg) ImgOps Exif iqdb

 No.10910[Reply]

O great /Lambda/ will you please find it in your hearts to fix the newest bug on our board software?

https://github.com/lainchan/lainchan/issues/40
13 posts and 1 image reply omitted. Click reply to view.
>>

 No.10964

>>10955
>Your software doesn't have that feature.
Sounds like a bug.

>>

 No.10966

>>10955
We want a board to be locked to people who aren't mods/admin.

>>

 No.10982

>>10964
>Sounds like a bug.
Yes, in some sense.

>>10966
Sorry, I misunderstood. You want the entire board locked? I'll look at it.

>>

 No.10983

>>10966
Why do you need to be able to post on a locked board?

>>

 No.10990

>>10983
So they can scheme without the plebs knowing.



File: 1445697787544.png (10.88 KB, 504x417, for-loop-parts.png) ImgOps iqdb

 No.10932[Reply]

Is it allowed to change the counter variable within a for loop in ANSI C?

Example:


#include <stdio.h>
#include <stdlib.h>

int main()
{
int i,a;
for (i=1;i<5;++i){
scanf("%d", &a);
if (a%2==0)
printf("value is correct: 2%d\n",a);
Post too long. Click here to view the full text.
>>

 No.10933

Yeah that's fine.

>>

 No.10935

>>10932
You should really try searching for the solutions to your problems before making a thread.
You should also look in the catalog first for threads that may already cover your topic. This would have been more appropriate in the Beginner's General:
https://lainchan.org/%CE%BB/res/5683.html

Now that the thread's here, I suppose it should just be a general C thread.

>>

 No.10938

>>10935

I tried searching for the solution, but found nothing on the interwebs.

>>

 No.10945

>>10938
Yes, but you already had an example you could have tested yourself.

C has a standard, which is really a requirement for any serious language, and if you haven't read it yet I suggest you do. It will really help you as you go on.

>>

 No.10950

>>10932
The i variable is being used for two numbers, iterations and successes. You're better off using a while loop and a meaningful variable name as a counter. break statement to exit the loop.



File: 1445227425813.png (40.94 KB, 644x484, PleaseStandBy.png) ImgOps iqdb

 No.10693[Reply]

Does anyone have any good reasources on game engine programming? I find it a fun topic to mess around with.

Also, game programming general since the last one died.
>>

 No.10923

>>10693
http://gameprogrammingpatterns.com/ is pretty cool. I liked it so much I ended up buying a hard-copy of the book to support the author.




File: 1445289044946.png (75.79 KB, 800x600, elixir-vertical.png) ImgOps iqdb

 No.10736[Reply]

who /elixir/ here?
12 posts omitted. Click reply to view.
>>

 No.10889

>>10888
Reusing a variable name doesn't change the value of the old one. If you passed the original variable to a function the value will always be the same. It's more like redeclaring than overwriting.

> writing a gopher server

I like you :3
That's exactly what I planed to do next.

>>

 No.10891

>>10888
I haven't yet, but if I really like Elixir I'll give it a shot.

IMO it is more important to understand the Erlang architecture, OTP, and its concurrency model than the language syntax itself.

A good book like Elixir in Action, which I posted earlier in this thread, does that.

That said, I've heard good things about "Learn You an Erlang".

>>

 No.10892

File: 1445612409742.pdf (5.07 MB, Elixir.pdf)

>>10891
Correction, I did not post it earlier. Here it is.

>>

 No.10894

>>10889
>Reusing a variable name doesn't change the value of the old one. If you passed the original variable to a function the value will always be the same. It's more like redeclaring than overwriting.

Yeah, that makes quite a bit more sense.

>>

 No.10895

>>10892
Thanks, lainon!



Delete Post [ ]
[ 1 / 2 / 3 / 4 / 5 / 6 / 7 ] Next | Catalog