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: RIP /prog/rider (47) 2: Scheduled reminder that LISP sucks! (10) 3: [Sharing]Your personal projects[Inspiration] (105) 4: Java Server Faces sucks tremendous amounts of dick (1) 5: How to make my own imageboard (12) 6: Mobile Advertising Company Hacked. All Code and Data Leak. (4) 7: Anonymous BBS (24) 8: Reasons why Python 3 (and 2) is shit (20) 9: TeX/LaTeX (9) 10: Giving Up (9) 11: Smoke weed everyday (10) 12: Windows redone (43) 13: HAX MY ANUS (9) 14: Tests (4) 15: [ITT]Ppost your current programming thought[NOT WORTH AN ENTIRE THREAD] (10) 16: Befunge, Brainfuck, Obfuscated Crap (47) 17: 【Unix】new unix file types (23) 18: About "the -notation of Church" [sic] (6) 19: THE FUTURE OF TEXTBOARDS, IN !! (2) 20: SOCK_DGRAM (3) 21: Harga Lantai Kayu, Lantai Parket vs Lantai Vinyl (4) 22: Reading rar-content into memory using Java (5) 23: website without protection (5) 24: Will progrider ever come back? (6) 25: Brainfart: GCC and templates (11) 26: Corporate corner-cutting (5) 27: OUTSOURCED TO INDIA (4) 28: Unreadable scripts that print cool things (19) 29: help with emacs for Win32? (8) 30: LOLCODE (12) 31: Is imitating == plagiarism? (24) 32: Is There a magic solution to get first on google ? (15) 33: DDos attack (5) 34: Visual Basic (17) 35: Groovy (52) 36: Anyone here using the Go programming language? (7) 37: Langton's ant (4) 38: [Perl] CGI Sucks - the next best thing? (18) 39: [4-ch] [sh] Keep Updated on New 4-ch Posts [tools] (7) 40: I love the BASIC languages... (25)

RIP /prog/rider (47)

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

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

45 Name: #!/usr/bin/anonymous : 2018-03-06 20:28 ID:5paw317M

goatfinger has moved to

thank you myfreenom for the amazing support and service.

46 Name: #!/usr/bin/anonymous : 2019-03-26 21:46 ID:Fw4Q6YTW now, thank you again myfreenom for the amazing support and service.

47 Name: #!/usr/bin/anonymous : 2019-06-13 02:42 ID:YnJFXBDz is dead

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

Scheduled reminder that LISP sucks! (10)

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'?

5 Name: #!/usr/bin/anonymous : 2017-10-21 02:41 ID:DchfXdXe

I have to admit that LISP has a most fascinating culture, from it's genius creator (and coiner of 'AI' term) John McCarthy, to the whole MIT subculture replete with "Knights of the Lambda Calculus", SICP wizard Sussman and awesomely named Guy Steele with Scheme LISP, and the landmark MACSYMA algebra system (first CAS).

6 Name: #!/usr/bin/anonymous : 2017-10-22 09:46 ID:n0cwrir9

7 Name: #!/usr/bin/anonymous : 2017-10-23 00:26 ID:Heaven


8 Name: #!/usr/bin/anonymous : 2019-01-26 08:17 ID:0C9gmWa8


9 Name: #!/usr/bin/anonymous : 2019-03-05 16:47 ID:i9qJgRdH

Don't talk about my other car

10 Name: #!/usr/bin/anonymous : 2019-04-07 18:16 ID:vfFzjxTs

Is LISP anti-Semitic because of all those Nazi parentheses?

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

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

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/.

96 Name: #!/usr/bin/anonymous : 2018-05-28 06:21 ID:HxVqAafA

I'm automating my work flow for this shitty program I have to use for work. I'm a lazy fuck!

98 Name: #!/usr/bin/anonymous : 2018-07-05 03:02 ID:R78pZMp6

You are coding a spambot? Fascinating! May I see the source code?

99 Name: #!/usr/bin/anonymous : 2018-07-16 03:30 ID:Heaven

>>89 Sounds nice. How's it been going for you so far? Got any links?

100 Name: Staycey : 2018-08-07 13:59 ID:nbjNbUT8

I think that you would better contact some real company (like and discuss with them what is really important and popular at the market now. Otherwise, you can learn something and then never use it... so it will be just a waste of your time.

101 Name: #!/usr/bin/anonymous : 2018-08-25 12:20 ID:rGIviNz8

Still going. Currently aiming to write a Lua REPL in it. You write code in this language in the REPL, and whenever you evaluate something, it compiles everything it needs to Lua, writes it out to a temp file, and runs it in lua or luajit or something. That's the plan, anyway.

102 Name: #!/usr/bin/anonymous : 2018-10-24 09:56 ID:ql1KSoAi

Trying to write a gopher browser with ncurses and shit

103 Name: #!/usr/bin/anonymous : 2018-10-27 08:18 ID:Heaven

let me guess, in go?

104 Name: #!/usr/bin/anonymous : 2019-03-09 22:21 ID:pLeq12Qx

Update: it's going well
It's a pretty fully-functional language at this point; by default it is interpreted but you give a command-line flag to the interpreter and it outputs the Lua equivalent instead.
So far I've got if and while compiling and I'm halfway through define.
New current short-ish-term goal is to write a pico-8 library so you can make games in it.
I'm going to release version 0.0 soon

105 Name: #!/usr/bin/anonymous : 2019-04-03 20:25 ID:A428x2sH

>>104 oh yeah I released this on Monday

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

Java Server Faces sucks tremendous amounts of dick (1)

1 Name: #!/usr/bin/anonymous : 2019-02-14 00:48 ID:UJSjKKh9

It's shit. It's fucking shit.

Jesus christ I hate it so much. It doesn't have the right to exist. Die you piece of shit.
I could have done the project THREE TIMES without it. It's specifically designed to make you suffer and want to die.

Anyways, vent off in any way or form, I'm going to sleep.
Name: Link:
Leave these fields empty (spam trap):
More options...

How to make my own imageboard (12)

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.

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



11 Name: ANONYMOUS : 2019-01-15 07:45 ID:iXcXD2BI

HTML + CSS + PHP + MySQL + SQL + ??? = PROFIT!!!!

12 Name: HA : 2019-01-15 07:48 ID:iXcXD2BI


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

Mobile Advertising Company Hacked. All Code and Data Leak. (4)

2 Name: #!/usr/bin/anonymous : 2018-10-14 01:23 ID:RGS+SjgA

@prefix dbr: <> .
#op a dbr:Faggot_(slang) .

3 Name: #!/usr/bin/anonymous : 2018-10-14 01:25 ID:RGS+SjgA

@prefix dbr: <> .
<#op> a dbr:Faggot_(slang) .

4 Name: #!/usr/bin/anonymous : 2018-11-17 21:59 ID:VdnZZXCH

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

Anonymous BBS (24)

1 Name: #!/usr/bin/anonymous : 2011-02-05 15:50 ID:oTmDGJqD

Hello /code/.

Shiichan sucks and is written in PHP. Kareha sucks, is written in Perl (which causes more issues than anything else ever could when trying hard to do so) and doesn't scale well at all, seeing how a board of just the size of 4-ch needs to use archiving scripts in order to keep things running smoothly.

Is there any sane BBS software out there or do I have to try and do it myself, despite not being too much of a coder?

15 Name: #!/usr/bin/anonymous : 2016-10-16 01:17 ID:Heaven


16 Name: #!/usr/bin/anonymous : 2016-10-16 06:03 ID:YO1c9e+2

care to elaborate?

17 Post deleted.

18 Name: #!/usr/bin/anonymous : 2016-10-30 13:37 ID:Heaven

sucks ass

19 Name: kiwi : 2018-03-29 11:53 ID:wiRx11oS

have a sexting with me. >>>

20 Post deleted.

21 Name: #!/usr/bin/anonymous : 2018-04-17 05:46 ID:0q0JsDo+

why not do it yourself.

Heck, I have a quick prototype of a textboard written up (in go, no less). It was a fun little project.

22 Name: #!/usr/bin/anonymous : 2018-08-23 04:24 ID:nzT6rw3c

It's hard to say what you are looking for and what exactly is your problem with all the other software. But despite more than seven years have passed by and you may already have found something, I just want to chime in dietchan:

It's very small and lean, but still under development.

23 Name: #!/usr/bin/anonymous : 2018-09-15 10:04 ID:+kgq9GC/

You can take any imageboard engine and just disable image posting. Or install forum software you like and make possible to post without registration.

24 Name: #!/usr/bin/anonymous : 2018-10-28 06:37 ID:e18UiBkC


>Shiichan sucks and is written in PHP. Kareha sucks, is written in Perl

If you're into language puritanism then you may want to use which is written in MIT Scheme.


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

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

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

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.

15 Name: Gleb : 2018-07-23 21:12 ID:+fA6NNP7

I think that the main thing here is that Python is quite cool and better than some other languages. Plus taking into account the list of available frameworks (, you can see that it's possible to create everything with this powerful language!

16 Name: #!/usr/bin/anonymous : 2018-07-25 06:00 ID:Heaven


> it's possible to create everything with this powerful language!

ok, how do i create a multithreaded program using a runtime with no global interpreter lock?

it would be nice if the variables used had enforced static typing too

17 Name: #!/usr/bin/anonymous : 2018-07-31 19:41 ID:5o4nANVW

There are a damn lot of languages, so "better than some other languages" is a little faint praise.

A bit of a cheap shot, don't you think? How about "how do I introduce a new operator without the inventor of the language quitting"

18 Name: #!/usr/bin/anonymous : 2018-10-02 02:33 ID:Heaven

It's really annoying when I have to change scope and need to manually delete X spaces from each line for a specific block, if I had braces I could just add or remove them.

19 Name: #!/usr/bin/anonymous : 2018-10-14 01:29 ID:j50HCb9X

@prefix dbr: <>.
<#op> a dbr:Faggot_%28slang%29 .

20 Name: #!/usr/bin/anonymous : 2018-10-14 14:23 ID:5o4nANVW

Use a better text editor than notepad. Seriously.
Select line range and tab or shift-tab to change indentation in notepad++, visual studio, vscode, probably most other windows software. << and >> in vim.

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

TeX/LaTeX (9)

1 Name: #!/usr/bin/anonymous : 2007-12-30 09:14 ID:4eMCKv+m

I just discovered this a few weeks ago, and I love it. It's obviously not a hardcore programming language, but it is simply phenomenal when it comes to typesetting formal scientific work. If you write any sort of reports, articles or w/e, I would recommend looking into this

2 Name: #!/usr/bin/anonymous : 2007-12-30 13:44 ID:Heaven

How old are you? I'm guessing 12 to 16, right? No offense, LOL.

3 Name: #!/usr/bin/anonymous : 2007-12-30 18:38 ID:ItzRzCOd

How old are you? I'm guessing 52 to 56, right? No offense, LOL.

4 Name: #!/usr/bin/anonymous : 2008-01-01 07:53 ID:fjiAL8/d

How many oppai oppai posts have you done? I'm guessing 2-5, right? No offense, LOL.

5 Name: #!/usr/bin/anonymous : 2008-01-01 13:51 ID:cxcTksCT

Forget it, it's NP complete.

6 Name: #!/usr/bin/anonymous : 2008-01-01 14:26 ID:Heaven

But it doesn't have jisshin/kashin model.

7 Name: #!/usr/bin/anonymous : 2008-01-01 22:12 ID:Heaven

Is TRON a meme now?

8 Name: #!/usr/bin/anonymous : 2008-01-02 13:29 ID:Heaven

That depends on how many people use that line in a given period of time.

9 Post deleted.

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

Giving Up (9)

1 Name: #!/usr/bin/anonymous : 2007-09-01 05:51 ID:a5XAP1up

Have you ever worked on a piece of software that just made you give up on using a certain programming language?

After spending almost a year working on some forum software in PHP, I just recently said fuck it and started anew in Perl--a language which (I'll admit) I had turned away from previously. The last straw for me was trying to deal with Unicode in PHP, which was just terrible. And I was also becoming just sick of magic quotes and some of the other hassles of the language in general.

2 Name: #!/usr/bin/anonymous : 2007-09-01 17:17 ID:Heaven

It's called practicing. Musicians do it all the time, as do graphic artists.

3 Name: #!/usr/bin/anonymous : 2007-09-01 18:43 ID:vmMpcyiY

Art and music is fun, though.

4 Name: #!/usr/bin/anonymous : 2007-09-02 00:51 ID:XxujhPHK

Right, but PHP is a crock of shit.

5 Name: #!/usr/bin/anonymous : 2007-09-02 00:55 ID:Heaven

Someone can practice an instrument long enough and realize they don't like it, but there's a difference between, "Well this isn't for me," and, "This shit is just objectively awful." I don't think people would say the later about a piano, but they might about PHP.

6 Name: #!/usr/bin/anonymous : 2007-09-02 02:13 ID:Heaven

PHP is the kazoo of programming languages.

7 Name: dmpk2k!hinhT6kz2E : 2007-09-02 05:20 ID:Heaven

Zope3 came very close from turning me off from Python permanently. It's only recently that I've begun tentatively prod that language again, mainly due to Django and Pylons. I still dislike the syntax intensely, but I can overlook that.

Also, trolling Python fanboys on reddit is fun. It borders on a religion for some of them.

8 Name: #!/usr/bin/anonymous : 2007-09-03 23:48 ID:Heaven

PHP is the "client" programming language. The language is not extendable in the language itself without going to Java-style pains or dealing with string eval.

Contrast with Perl, where you can pretty much define your own syntax features in the language. This came in handy when developing a database transaction helper package, particularly when we realized that automatic restart on serialization failure or deadlock would be a really nice thing to have. Also transaction nesting, PostgreSQL having savepoints since 8.0 and all.

Perhaps someone who'd been using PHP for 10 years could replicate that. But, I wouldn't want to have that conversation with him.

9 Name: #!/usr/bin/anonymous : 2017-11-09 02:38 ID:FsptFmUL

dicks out for Harambe

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

New thread

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