Programming @4-ch

Programming @4-ch

Be it HTML, C++, Java or whatever language you prefer, programming is what we do best around this board.
Markup languages are also fine around here, as with all the "not so real" languages of Shell script, CSS, and other various third party scripting languages.
  • We are sick of language discrimination, more so the PHP/Java bashers. There will be little tolerance of blatant and repetitive insults. You are still welcome to bring forward a sensible, insult-free argument regarding a certain topic at the appropriate time and place for it.
  • Please use WakabaMark or the appropriate HTML tags (with HTML enabled, of course) to format your code.
Rules · 規則
Board look: Blue Moon Buun Futaba Headline Mercury Pseud0ch Toothpaste
1: Scheduled reminder that LISP sucks! (4) 2: RIP /prog/rider (44) 3: Windows redone (43) 4: HAX MY ANUS (9) 5: Tests (4) 6: Reasons why Python 3 (and 2) is shit (14) 7: [Sharing]Your personal projects[Inspiration] (82) 8: [ITT]Ppost your current programming thought[NOT WORTH AN ENTIRE THREAD] (10) 9: Befunge, Brainfuck, Obfuscated Crap (47) 10: How to make my own imageboard (10) 11: 【Unix】new unix file types (23) 12: About "the -notation of Church" [sic] (6) 13: THE FUTURE OF TEXTBOARDS, IN !! (2) 14: SOCK_DGRAM (3) 15: Harga Lantai Kayu, Lantai Parket vs Lantai Vinyl (4) 16: Reading rar-content into memory using Java (5) 17: website without protection (5) 18: Will progrider ever come back? (6) 19: Brainfart: GCC and templates (11) 20: Corporate corner-cutting (5) 21: OUTSOURCED TO INDIA (4) 22: Unreadable scripts that print cool things (19) 23: help with emacs for Win32? (8) 24: LOLCODE (12) 25: Is imitating == plagiarism? (24) 26: Is There a magic solution to get first on google ? (15) 27: DDos attack (5) 28: Visual Basic (17) 29: Groovy (52) 30: Anyone here using the Go programming language? (7) 31: Langton's ant (4) 32: [Perl] CGI Sucks - the next best thing? (18) 33: [4-ch] [sh] Keep Updated on New 4-ch Posts [tools] (7) 34: I love the BASIC languages... (25) 35: Agen Bola | Judi Bola | Casino SBOBET (9) 36: Anonymous BBS (18) 37: download lagu terbaru (5) 38: Free SMS/eMail On Anonymously (3) 39: How do you motivate yourself to learn (9) 40: Preferred Editor(s) (176)

Scheduled reminder that LISP sucks! (4)

1 Name: #!/usr/bin/anonymous : 2017-09-11 08:42 ID:XlAXKVtS

Scheduled reminder that LISP sucks!

2 Name: "Please Don't Shout Lisp" guy : 2017-09-11 18:22 ID:Heaven

Please don't shout Lisp.

3 Name: #!/usr/bin/anonymous : 2017-10-19 21:18 ID:DchfXdXe

Why does LISP suck, OP? Justify your claim, or else we might conclude that LISP rules, by default. Coming from C mindset, LISP is admittedly hard code to follow with all the parentheses and shit and oddities such as CAR and CDR that are vestigial remains from a 1950s mainframe instruction set.

4 Name: #!/usr/bin/anonymous : 2017-10-20 20:34 ID:Heaven

Unlike C, which has no oddities whatsoever. Did you know the m' in malloc' does not mean `memory'?

Name: Link:
Leave these fields empty (spam trap):
More options...

RIP /prog/rider (44)

1 Name: #!/usr/bin/anonymous : 2017-03-04 20:05 ID:QUE518++

progrider finally kicked the bucket.. shame. there's news about a new one at

35 Name: #!/usr/bin/anonymous : 2017-04-08 03:54 ID:0Fa/lxv6


> ga/y/

Not clicking on that.

36 Name: #!/usr/bin/anonymous : 2017-04-21 08:06 ID:07N1kL1y

The pedophile /prog/ was the worst /prog/ ever. Do we have a pedophile-free replacement?

37 Name: #!/usr/bin/anonymous : 2017-05-09 20:39 ID:UBjv7BE9

>anonymous board

Pick one.

38 Name: #!/usr/bin/anonymous : 2017-06-07 08:23 ID:QpGFNZ2G

39 Name: #!/usr/bin/anonymous : 2017-06-15 04:05 ID:Heaven

why not just use 4-ch

40 Name: #!/usr/bin/anonymous : 2017-07-19 21:16 ID:DdkJdGdT

it is a cult. its posters are on psuedo-crack. I used to be a big fan until I realized how harmful its way of thinking is. As a fan of survival shows, I will make an analogy:

On Naked and Afraid XL, there was this one incident where half of the survivalists had to tap out on the same day. It began when they found a fruit tree and ate the fruit. they enjoyed it, it was good, but it took a couple hours for some, a whole twelve or so hours for others to begin feeling the awful excruciating pain that was caused by eating this fruit. Some were lucky, and did not get the poisoning.

Ladies and gentlemen, much of the things you read on here, the things you absorb here, are like this scenario. You get hooked and soak it all in, but it may take a good amount of time, perhaps years, before you notice the negative effects, and will you have the wisdom to know where it started?

goatfinger has a unique affect on people. it has the ability to bewilder and "change someone's entire perspective on life" as was with me and as I often hear. However, this perspective change is not so different from a psychotic experience. Beware.

41 Name: #!/usr/bin/anonymous : 2017-08-01 16:23 ID:DdkJdGdT

goatfinfer - incredibly shit

42 Name: #!/usr/bin/anonymous : 2017-10-11 21:51 ID:DdkJdGdT

goatfinfer - incredibly shit

43 Name: #!/usr/bin/anonymous : 2017-10-12 23:18 ID:UBjv7BE9

What's "goatfinfer"?

44 Name: #!/usr/bin/anonymous : 2017-10-14 16:02 ID:r4BhLdWB

incredibly shit

Name: Link:
Leave these fields empty (spam trap):
More options...

Windows redone (43)

1 Name: #!/usr/bin/anon 2006-02-15 22:03 ID:YJPrUgHV

We've all used Windows. A lot of us use it for games and desktop applications. Quite a few of us love it. And I'm sure we've all got things we hate about it too.

I have a few bones to pick:
a) Drive letters:
Most files are organized into folders. For example, "C:\Program Files". But each filesystem and device has its own root folder, like "A:\", "C:\", and other letters assigned in the stone age.

(backward compatibility, blah, blah, blah, it's been several decades, blah, blah, blah)

b) Folder structure:
Yes, we've all heard the reasons why we should spend forever typing "C:\Program Files\Accessories" and "C:\Documents and Settings\Brian\My Documents", why there's "C:\Windows\System" and "C:\Windows\System32", or why on some versions it's "C:\WinNT". So what?

Post too long. Click to view the whole post or the thread page.

34 Name: #!/usr/bin/anonymous : 2006-03-31 07:48 ID:5TWcrxKz


Yes, but that's mainly for system administration, rather than user interaction. I'm talking about something like a single message window that would inform you of incoming IMs, emails, finished downloads, etc. Basically everything handled with balloons right now, plus more. In addition you should be able to filter and log all the notifications.

35 Name: #!/usr/bin/anonymous : 2006-03-31 15:07 ID:Heaven

Stop bumping this dumb thread. Nobody cares about Windows users and their retarded fantasies.

36 Name: #!/usr/bin/anonymous : 2006-03-31 23:22 ID:Heaven

Nothing but you is stopping you writing this. That's the problem with you Windows users: it's always "someone else should" instead of "I should". We are in /code/, are we not?

37 Name: #!/usr/bin/anonymous : 2006-04-05 02:32 ID:Heaven

Well, developing non-console apps for Windows is generally harder than on Linux, I think.

38 Name: #!/usr/bin/anonymous : 2006-04-06 16:25 ID:Heaven

every 1MB of RAM used for OS is lost 1MB of RAM. System should be light and fast to allow PROGRAMS use the ram, not crappy windows (not meant as a system name).

As for winapi32 : whith .NET it's dead

39 Name: #!/usr/bin/anonymous : 2006-04-08 01:22 ID:Heaven

Uh, yeah, the operating system should fit in 64K. DOS fan?

40 Name: #!/usr/bin/anonymous : 2006-07-14 03:07 ID:irUeVFKv

> e) Configuration:

Registry is a total mess. Config files starting with a dot in your home directory are way better.

41 Name: #!/usr/bin/anonymous : 2006-07-14 12:41 ID:Heaven

saging a legendary thread

42 Name: #!/usr/bin/anonymous : 2006-07-15 04:31 ID:F++K+XDH

I am.

43 Name: #!/usr/bin/anonymous : 2017-10-04 00:59 ID:P8MulBiA


Name: Link:
Leave these fields empty (spam trap):
More options...


1 Name: #!/usr/bin/anonymous : 2013-08-21 00:26 ID:E1O1alV+

'-._ ___.....___

`.__           ,-'        ,-.`-,
`''-------' ( p ) `._ HAVE YOU HAXED
. \

................._ --...--,

                 `-.._         _.-'


2 Name: #!/usr/bin/anonymous : 2013-08-21 10:45 ID:0o+BK5LS

what are you doing here? they deleted the shelter thread

3 Post deleted.

4 Name: #!/usr/bin/anonymous : 2015-09-20 00:09 ID:u3CKxn+M

good job

5 Name: #!/usr/bin/anonymous : 2015-09-27 09:42 ID:Heaven

I've been to that board, and for God's sake what a bunch of shit-posting that turned into.

6 Name: #!/usr/bin/anonymous : 2015-10-07 22:03 ID:2bfjSZDH

if you see it as shit posting you have not ascended yet..

first try to engage in "shit posting" and then you might understand it better

7 Name: #!/usr/bin/anonymous : 2017-03-05 19:19 ID:GkCUSKtw

dicks out for Harambe

8 Name: #!/usr/bin/anonymous : 2017-10-01 12:30 ID:UbVRD27V

hax my gaynus

9 Name: #!/usr/bin/anonymous : 2017-10-10 07:43 ID:Heaven

>>6 >>7,8
Didn't work. Any other tips?

Name: Link:
Leave these fields empty (spam trap):
More options...

Tests (4)

1 Name: #!/usr/bin/anonymous : 2017-09-20 18:39 ID:twRD6tvK

Even post numbers think tests are good.
Odd post numbers think tests are shit.

I'll start. Unit tests are a crutch

2 Name: #!/usr/bin/anonymous : 2017-09-23 20:16 ID:KX0q8kcl

dicks out for Harambe

3 Name: #!/usr/bin/anonymous : 2017-09-25 06:15 ID:sMX0bWfe

nice idea for a thread.

they can only find errors, not prove that the program is working

4 Name: #!/usr/bin/anonymous : 2017-09-27 18:42 ID:PM60ti8s

Tests are great when you have something like QuickCheck to generate them for you

Name: Link:
Leave these fields empty (spam trap):
More options...

Reasons why Python 3 (and 2) is shit (14)

1 Name: #!/usr/bin/anonymous : 2017-06-16 00:22 ID:jv9oB1f2

  • FOIC
  • reduce is not built-in
  • no do-while statement
  • singled expression lambdas
  • no index lists
  • no frozenset literals
  • awfully bad scope rules
  • terrible OOP design
  • no pattern matching nor switch-case statements/expressions

5 Name: #!/usr/bin/anonymous : 2017-06-21 19:33 ID:ilN/++Zs

Oh damn, busted. I must have been thinking of "accumulate".

They really don't have that? Does it at least have immutable map literals?

6 Name: #!/usr/bin/anonymous : 2017-07-03 23:23 ID:jv9oB1f2

No and no. Guido van Rossum is against immutability. He is also against TCO and recursion in general (search for: "neopythonic" "tail recursion elimination")

7 Name: #!/usr/bin/anonymous : 2017-07-16 19:53 ID:M3qI9Fmx

There is nothing wrong with forced indentation. A good programmer shall indent their code regardless. A bad programmer will make everything look like shit so forced indentation makes his good usable to others besides himself.

8 Name: #!/usr/bin/anonymous : 2017-07-16 19:55 ID:M3qI9Fmx

> no do-while statement

There already is while. A do-while construct is redundant.

9 Name: #!/usr/bin/anonymous : 2017-07-20 19:37 ID:ilN/++Zs

Both for and named let subsume while, to boot.

10 Name: #!/usr/bin/anonymous : 2017-08-30 00:30 ID:jv9oB1f2

Reason#381: [i]inconsistency and lack of abstraction for array declarations[/i]

11 Name: #!/usr/bin/anonymous : 2017-08-31 16:55 ID:jv9oB1f2

12 Name: #!/usr/bin/anonymous : 2017-09-03 18:53 ID:eycA3OAX

  • GIL
  • metamethods
  • attributes

13 Name: #!/usr/bin/anonymous : 2017-09-06 19:50 ID:zwyhM5U6

Yes but they'll indent it in a specific way, while the compiler won't compile if someone uses the "wrong" whitespace.

14 Name: #!/usr/bin/anonymous : 2017-09-06 20:16 ID:Heaven

They'll indent it in a shitty, inconsistent way, because they're a bad developer, and the compiler will force them to not do that.

Name: Link:
Leave these fields empty (spam trap):
More options...

[Sharing]Your personal projects[Inspiration] (82)

1 Name: #!/usr/bin/anonymous : 2014-11-08 13:20 ID:p3iUEkWT

What are your (current) hobby projects? What languages or libraries are you using? How usable or complete is it? What makes what you're doing novel or great?
No need to be smug or anything, or get all angry at other people for using <thing you hate>. Just share what you're up to. Add a URL if it's public too, if you want.

I'll start. I'm writing a stack-based language in Racket for use in embedded devices. It's already got Hindley-Milner style type inference, it just needs to actually produce output.
I'm also planning a modal text editor that feels like vim and a music-making program somehow.

But enough about me. Let's get some actual content on the front page of /code/.

73 Name: #!/usr/bin/anonymous : 2016-10-30 16:24 ID:/XKYs9lR

#include <stdio.h>

void main( int argc, char *argv[] )
printf("    ∧_∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\n");
printf("    ( ´∀`) < "); puts(argv[1]);
printf("     /    |  \________\n");
printf("  /     .|\n");
printf("   /\"⌒ ヽ |.イ |\n");
printf(" __ |  .ノ || ||__\n");
printf("    ノく_つ ∪ ∪   \\n");
printf(" ̄ ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ ̄ | |\n");
printf(" _____________| |\n");
printf("  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |\n");
Post too long. Click to view the whole post or the thread page.

74 Name: #!/usr/bin/anonymous : 2016-11-02 14:39 ID:Ar0frgQ5

I've been so busy with classes that I haven't had any time for my project. It really sucks. I miss working on it, and I feel like my programming skills might atrophy if I don't use them.

75 Name: #!/usr/bin/anonymous : 2016-11-02 19:06 ID:CCbly2Ll

don't worry, they wont!

76 Name: #!/usr/bin/anonymous : 2016-11-02 20:16 ID:jdDDUZ5G

Nah, all you lose is what the hell you were doing on that project more than a week ago.

77 Post deleted.

78 Name: #!/usr/bin/anonymous : 2016-11-13 15:36 ID:cfTgRxUb

Just playing with making a very dumb sorta-BBcode-to-HTML converter in flex, just for the hack of it.

79 Name: #!/usr/bin/anonymous : 2016-12-14 08:16 ID:FM/xpue5

I really want to sit down and give Perl 6 a spin but I simply don't have the time.

80 Name: #!/usr/bin/anonymous : 2017-03-30 20:02 ID:zsYtzRP0

I'm >>72 and I originally started it in Haskell. I've since restarted the project in Guile because there's a bit too much boilerplate in Haskell to get what I want.
I've simplified all the code heavily (I'll figure out the SLOC difference later but it's got to be <5%), and made it so that the whole thing is a library rather than a program, and a "setup" (which instruments are plugged in where, what UI pieces you want to see, etc) is a simple program you write. You should be able to live-code the thing in the REPL if you want, too, because that's hot these days.

81 Name: #!/usr/bin/anonymous : 2017-05-07 17:12 ID:ed9UcoP8

I swear I could have written this post, since I also started a roguelike after dumping my previous, over-scoped project.

I'm working in love2d, since I'm most familiar with scripting shit, and honestly, I'm really enjoying it. It's just free enough to not feel like I need to switch to a heavier-duty engine to get basic shit done, and the rotLove library for 437 display is flexible enough to be used full time, after you tweak it a bit.

82 Name: #!/usr/bin/anonymous : 2017-08-27 13:05 ID:P34EKj1y

I have been shaving yaks:
I am making a game in Pico-8, but it got to a certain size and the dynamicity of Lua meant I couldn't comfortably refactor it without scrapping it and starting again.
So in order to avoid that problem and to work in a language I am more comfortable with, I decided to write a typed DSL for Lua and a pico8 API on top of that, so I woudn't have t actually manually write any lua at all.
So, in order to do that, I taught myself Idris so I could use dependent types and because it's basically a more user-friendly Haskell.

Anyway I'm coming out of that valley and actually managing to write some proper code for the game using my DSL. It's pretty neat.

Name: Link:
Leave these fields empty (spam trap):
More options...

[ITT]Ppost your current programming thought[NOT WORTH AN ENTIRE THREAD] (10)

1 Name: #!/usr/bin/anonymous : 2017-05-04 20:01 ID:xt+YgsKm

Only the popular OOP styles are shit. Smalltalk and CLOS are what it should be, not the abominations that wrought AbstractCockSplitterFactoryFactory.

2 Name: #!/usr/bin/anonymous : 2017-05-23 00:33 ID:8L+pRFz6

using underscores as word separators in identifiers makes your code look clumsy and unprofessional

3 Name: #!/usr/bin/anonymous : 2017-05-29 14:27 ID:/Rr1imNS

Multiple words at all? Variables are nouns, functions are verbs. One word needed for each.

Also SmartCasualBusinessCase instantly bores me to tears

4 Name: #!/usr/bin/anonymous : 2017-06-01 18:21 ID:7bvGeVDb

הַשְׂכֵּל [hˈaskə͡l] is a popular Jewish name, it means "wisdom". Ironically, the Haskell programming language was named after this Hebrew word.

5 Name: #!/usr/bin/anonymous : 2017-06-01 20:36 ID:Heaven

Clojure is not a Lisp

6 Name: #!/usr/bin/anonymous : 2017-06-02 20:50 ID:/Rr1imNS

most developer blog posts are someone extolling and/or discovering something entirely mundane and obvious

7 Name: #!/usr/bin/anonymous : 2017-06-11 22:36 ID:7bvGeVDb

If you think about it, ``undefined behavior'' is a form of Russell's paradox.

8 Name: #!/usr/bin/anonymous : 2017-06-30 18:26 ID:/Rr1imNS

In Idris, = is a type constructor as well as the equality operator
i.e. 4 = 4 is a value (True) and also a type

my poor little brain.

9 Name: #!/usr/bin/anonymous : 2017-06-30 18:55 ID:Heaven

I lied, == is value equality

10 Name: #!/usr/bin/anonymous : 2017-07-29 18:54 ID:/Rr1imNS

Don't fucking toString because what kind of string? String for human eyes? String to turn back into thing? Descriptive string or secret string? Binary string? Is unicode okay?? Everything has toString, what if you had a car by accident but you wanted a string of a boat? Fuck

Name: Link:
Leave these fields empty (spam trap):
More options...

Befunge, Brainfuck, Obfuscated Crap (47)

1 Name: #!usr/bin/anon 2005-12-05 00:45 ID:PXVSoaQm

This thread is for my fellow brothers (and sisters?) who have embraced useless, obfuscated languages like Brainfuck.



38 Name: #!/usr/bin/anonymous : 2007-02-15 16:19 ID:Heaven

Or rather, Turing. I spel gud.

39 Name: #!/usr/bin/anonymous : 2007-02-21 08:16 ID:Heaven

How should I do to make a loop in unlambda?

40 Name: #!/usr/bin/anonymous : 2007-03-10 04:13 ID:ATMDVxRe

I found a cool blog site with nice accessible introductions to esolangs:

41 Name: #!/usr/bin/anonymous : 2007-03-10 12:28 ID:Heaven

> nice accessible introductions to esolangs

That seems inappropriate!

42 Name: #!/usr/bin/anonymous : 2007-03-10 14:51 ID:ATMDVxRe

Well, esolangs have this "image" that they're about pain and masochism, but I rather prefer the mind-stretching quality of them. You're exposed to things you would never think of.

43 Name: #!/usr/bin/anonymous : 2017-03-07 17:56 ID:ry9qaaLI

dicks out for Harambe

44 Name: SHILLER : 2017-03-14 12:33 ID:d6KkahGl

...:::;;;; ・∀・)
∬;;__つ/ ̄ ̄ ̄/__ I made a /prog/.
旦 \/Win2000/


45 Name: #!/usr/bin/anonymous : 2017-03-18 10:48 ID:AgKmTw9h

5 shillings! I'm rich!

46 Name: #!/usr/bin/anonymous : 2017-05-23 00:36 ID:5GQ8Ujkt

Apparently your website isn't going to be available for another 24 hours.

47 Name: #!/usr/bin/anonymous : 2017-09-06 20:07 ID:Heaven

Your website seems to have had its domain taken over.

Name: Link:
Leave these fields empty (spam trap):
More options...

How to make my own imageboard (10)

1 Name: #!/usr/bin/anonymous : 2013-12-13 02:52 ID:ivLZN6o0

I am very new to the imageboard setup stuff so I have no clue how to set it up. And I haven't/don't know how to make a table for a DB. If someone could he that would be great.

2 Name: #!/usr/bin/anonymous : 2013-12-13 02:59 ID:ivLZN6o0

Like step by step help.

3 Name: #!/usr/bin/anonymous : 2014-01-03 22:03 ID:+wYIocZK

you need at least a 4 year degree to make an imageboard

4 Name: #!/usr/bin/anonymous : 2014-04-12 09:43 ID:Heaven

You need at least a 4 inch cock to fuck my anus.

5 Name: #!/usr/bin/anonymous : 2014-04-21 20:10 ID:rqtFFo91

  1. Learn HTML and CSS (or find a cheatsheet)
  2. Learn basic PHP or Perl (one or the other)
  3. Install apache and PHP/Perl and MySQL
  4. Learn SQL commands like SELECT, INSERT, UPDATE, and DROP
  5. ???

Or just do:

``<html><body><h1>Post here:</h1><form name="theform" action="post.php" method="post"><textarea name="comment" placeholder="Post a comment here" rows="8" cols="64"></textarea> <input type="submit" name="submit" value="Reply" /></form></body></html>


Post too long. Click to view the whole post or the thread page.

6 Name: #!/usr/bin/anonymous : 2014-05-03 05:47 ID:Heaven

tl;dr - it takes 4 years 2 weeks 1 second to make an imageboard!

7 Post deleted.

8 Name: #!/usr/bin/anonymous : 2017-05-09 11:48 ID:yejGrNaH

read all the scripts at then come back

9 Name: #!/usr/bin/anonymous : 2017-05-11 09:21 ID:U9no1vcm

huh, didn't know that existed. Thanks.

10 Name: #!/usr/bin/anonymous : 2017-05-16 05:02 ID:uDa0QT6N



Name: Link:
Leave these fields empty (spam trap):
More options...

New thread

Name: Link:
Leave these fields empty (spam trap):
More options...