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

【Unix】new unix file types (14)

1 Name: #!/usr/bin/anonymous : 2015-07-10 22:20 ID:t1CnYWeK

I was thinking of some file types that afaik don't exist.

One is filesystem entries of files stored in memory from disk files, updated when the disk file modification time changes. This would be a big disk-access optimization in some cases.

The in-memory entry permissions would be ignored, and writing to it would write to the disk file.

Another one is dynamic files that (only) have the name of a executable, which when opened would be executed by the kernel, creating a process child of init with its standard output piped to the file descriptor obtained by opening the dynamic file.

Here reading would depend on both the dynamic file's read permission and the named executable's execute permission. The idea is that it's transparent to the reading process.

Whether they could change the file to which they point to without deleting it would depend on the implementation, I think. (https://en.wikipedia.org/wiki/Symbolic_link#Variable_symbolic_links)

5 Name: #!/usr/bin/anonymous : 2015-07-15 18:10 ID:uZcCDWHA

>>4
jeez..

6 Name: #!/usr/bin/anonymous : 2015-07-16 09:23 ID:dj2rH73R

>>4
I was gonna make an OS that like totally made sense super intuitive wouldve changed the desktop forever but I got stuck at implementing jishin/kashin.

7 Post deleted.

8 Post deleted.

9 Name: #!/usr/bin/anonymous : 2015-11-21 13:35 ID:RwpAX7+c

The first type is called mmap, and caching like that is done automatically by the kernel.
The second type, if I understand correctly, is a script glued to a fifo.

10 Name: #!/usr/bin/anonymous : 2015-11-25 07:02 ID:7Yv7jdnv

Oh yeah kernel caching.

>The second type, if I understand correctly, is a script glued to a fifo.

That's rather rudimenary. For that you could just serve virtual files. My idea was that the writer and reader programs didn't have to know about this, but, now that I think about it, that just reading might execute something is probably too wild.

11 Name: #!/usr/bin/anonymous : 2015-11-27 23:45 ID:3TgAyWOw

Oh, I see. So opening the file would implicitly start its target program, and read/write operations on the file would redirect to stdi/o. How would you change the target program?

Perl uses this idea - opening a subprocess is identical to opening a file, but the filename begins with a pipe.

12 Name: #!/usr/bin/anonymous : 2015-11-29 02:15 ID:C+mJgx35

>How would you change the target program?

Similar to changing other files, probably.

>Perl uses this idea - opening a subprocess is identical to opening a file, but the filename begins with a pipe.

Kinda like the POSIX popen interface, yeah. But having to use special interfaces or languages falls short of transparency.

13 Name: #!/usr/bin/anonymous : 2015-12-31 12:39 ID:Heaven

RAM is really expensive though.

14 Name: #!/usr/bin/anonymous : 2016-07-23 04:37 ID:3Yvi0TSj

>>4
OS development is a major undertaking, it's not the sort of thing you can do in a weekend, especially considering it requires low-level programming techniques that are avoided in modern application development. The appeal of things like Linux and BSD is that the hard work is already done for you, but unlike Windows or Apple operating systems you have the freedom to modify the user interface (which is all most people really care about, messing around "under the hood" is really only called for when working with embedded systems or mainframes, where you need to get every last bit of performance out of the machine - and only low level programming specialists really have the ability to effectively optimize in those areas, anyway). And the UNIX architecture, although rather old, wasn't really made for "mainframes", one of its main advantages at the time was that it could run on lower-end systems.

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

Anonymous BBS (12)

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?

3 Name: #!/usr/bin/anonymous : 2011-02-06 17:31 ID:Heaven

All textboard software sucks. Kareha just sucks less, and Shiichan could also suck less if VacBob actually bothered to clean it up, but I guess not.

Become a coder and code one in Python.

4 Name: #!/usr/bin/anonymous : 2011-02-07 13:25 ID:Heaven

I don't understand why people will use the language that an application is written in as a reason for it being bad. If it is a tool that performs within your requirements and has the features that you need, who cares what its written in?

5 Name: #!/usr/bin/anonymous : 2011-02-07 17:36 ID:oTmDGJqD

>>4
PHP is just ugly. And Shiichan has undocumented features, BBCode, very serious comments all over the place, horrible logic. Take a look at it and barf.

CGI/Perl is just notorious for causing issues. Especially kareha insisting on having the index.html in the same location as kareha.pl. The moderation could also maybe need some better ACL. I know, trust your moderators and stuff, but it doesn't feel right.

6 Name: #!/usr/bin/anonymous : 2011-02-07 19:03 ID:Heaven

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.

7 Name: #!/usr/bin/anonymous : 2011-02-07 19:11 ID:iC9yRe6Q

Is there one based on Ruby? If not, I would be willing to help develop one. It would be a good way to beef up my Ruby skills...

8 Name: #!/usr/bin/anonymous : 2011-02-09 16:02 ID:Heaven

>>5

My point was that the language of a tool is not reason for it to be considered bad. Your reasons against shiichan are due to poor coding practices, not simply because it was written in PHP. You could find a poorly coded application in any language, but that in itself is not a reason to dislike that language. You shouldn't dislike well written applications simply because of the language that they were written in either.

Personally, I don't like PHP and no longer use it for new projects. Is that going to stop me from using a PHP application if it is the "best" tool for the job? No.

9 Name: aabb : 2016-04-09 07:45 ID:dh64D7m9

AOMEI Backupper is the simplest FREE backup software with system/disk/partition/file backups and system/disk clone. http://www.backup-utility.com

10 Name: Anonymous : 2016-04-10 18:36 ID:p2f3F9Ip

helpme

11 Name: #!/usr/bin/anonymous : 2016-05-30 04:06 ID:Heaven

I only use BBS written in Go... heh

12 Name: #!/usr/bin/anonymous : 2016-07-18 02:58 ID:VdxdaZg+

Have you considered <del>converting to Scientology and discovering what Lord Xenu wants for you</del> I mean Re-writing it in Rails?

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

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

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

52 Name: #!/usr/bin/anonymous : 2016-03-20 03:41 ID:Heaven

>>50-51
tbh it looks like something people on /prog/ would masturbate over, and I don't see why I should care. I can back up and restore any *nix system with dd, and have no need to add more moving parts that break as soon as you actually need to restore a backup.

53 Name: #!/usr/bin/anonymous : 2016-03-20 15:20 ID:Heaven

>>52
That's great for you, and I'm sure your total lack of experience with nix and guix gives you license to shout your opinions on them as loudly as you want with the other over-opinionated folks on /prog/.
It's actually got fewer moving parts than most other distros, though. I'm curious, how does [code]dd[/code] fare when you want to set up the same system on a different machine with a smaller disk?

54 Name: #!/usr/bin/anonymous : 2016-04-09 19:03 ID:Heaven

I tried installing GuixSD on an EEE PC netbook and it did a kernel panic every time.

55 Name: #!/usr/bin/anonymous : 2016-04-23 12:46 ID:q8GDnajj

After all this pain I am running Void on my netbook, and not really bothering with any backup/reproducibility plans.

56 Name: Download Lagu : 2016-04-28 19:51 ID:ZyRb8xPt

Nice website

57 Name: Download Lagu Terbaru : 2016-05-02 10:07 ID:ngzqROU+

Nice topic brother

58 Name: Download Lagu Terbaru : 2016-05-08 09:23 ID:m7ABBlDt

I widhdkdh h mp3
download mp3

59 Name: #!/usr/bin/anonymous : 2016-05-12 14:54 ID:jsOwY6GT

60 Name: Hell666 : 2016-05-12 18:56 ID:aDfFkpsz

hello everyone

61 Name: #!/usr/bin/anonymous : 2016-07-14 06:43 ID:4ybVfbAa

A wiki

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

download lagu terbaru (5)

1 Name: Download Lagu Koplo Terbaru : 2016-05-06 05:31 ID:BZSHEMjk

Wrlcome to my paradise

2 Name: Download Lagu Gratis : 2016-05-08 09:04 ID:zVGy8/B7

good article I'm always waiting for the latest blog posts. I created the blog because I was inspired by this blog.
Do you use Twitter? I’d like to follow you if that would be okay.
I’m absolutely enjoying your blog and look
forward to new posts.
download lagu terbaru

3 Name: #!/usr/bin/anonymous : 2016-05-19 22:49 ID:9dccbNEn

Welcome to...Anal

4 Name: #!/usr/bin/anonymous : 2016-07-03 03:23 ID:JKtBY3LW

Welcome to die

5 Name: stafaband mp3 : 2016-07-11 16:44 ID:YIAIlq5P

Nice blog

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

Download Lagu Adele - Someone Like You (1)

1 Name: download lagu adele someone like you : 2016-05-24 10:07 ID:mZb32y7J

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

DOWNLOAD VIDEO BOKEP 2016 (1)

1 Name: DOWNLOAD VIDEO BOKEP 2016 : 2016-05-13 17:20 ID:TZcN4gGE

bokep jilbab perawan
Download video bokep
Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:

Download Mp3 (1)

1 Name: Download mp3 gratis : 2016-05-08 09:06 ID:LQNDia1Q

good article I'm always waiting for the latest blog posts. I created the blog because I was inspired by this blog.
Do you use Twitter? I’d like to follow you if that would be okay.
I’m absolutely enjoying your blog and look
forward to new posts.
Nice blog
download lagu
Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:

Free SMS/eMail On Anonymously (2)

1 Name: Anonymous : 2016-04-10 19:46 ID:UsRG3pZ6

Please anyone describe here the process of sending SMS on any mobile phone anonymously or sending emails anonymously.

2 Name: Anon : 2016-04-11 22:08 ID:jCQZPiwH

you can use twilio. but your privacy is protected

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

website without protection (4)

1 Name: anyone : 2016-03-24 15:17 ID:zj0nyDOS

found a website without protection

user & pass: admin

how to fix this bug ?

http://www.sinovator.org/

admin link : http://www.sinovator.org/admin

2 Name: #!/usr/bin/anonymous : 2016-03-24 17:31 ID:Heaven

Send them a condom in the mail

3 Name: #!/usr/bin/anonymous : 2016-03-29 04:18 ID:VsZwb3MW

>>2
Use it first before sending

4 Name: #!/usr/bin/anonymous : 2016-04-03 10:27 ID:Heaven

>>2,3
On its way.

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

How do you motivate yourself to learn (9)

1 Name: #!/usr/bin/anonymous : 2015-09-14 11:00 ID:ravr0/GJ

I want to be a professional programmer because I'm under the impression programmers don't have to speak that much. The only programming language I know is Java because I took a few classes. I liked learning Java, and it came easy to me, but even though I want programming to be my job, I don't want to learn any more-- I prefer drawing manga pictures (which I'm bad at). What should I do?

2 Name: #!/usr/bin/anonymous : 2015-09-15 06:07 ID:eVO8uri8

remove your ribs and try to get your own penis into your mouth :)

3 Name: #!/usr/bin/anonymous : 2015-09-15 15:18 ID:wlWuGn/k

speaking is fun nigga

4 Name: #!/usr/bin/anonymous : 2015-12-19 00:32 ID:yPYCmGLs

>>2
yo will need to remove some spine and muscle too
or soak them in vinegar to make them more flexible
or just do yoga goddamn

5 Name: #!/usr/bin/anonymous : 2016-02-02 03:12 ID:4bT9fuRi

>>1
Get better at drawing manga and hope for the best. Programming as a job involves working in teams and lots of communication.

6 Name: #!/usr/bin/anonymous : 2016-02-03 18:36 ID:9fLlvazV

Along with this question on motivation, how can you motivate yourself to program for multiple hours straight?

7 Name: !EwEZeQwchU : 2016-03-09 21:58 ID:loUawEK0

have a grand plan in your head, when you get bored take a look at the bigger picture and think about what to do next, your interest in the subject will grow

8 Name: #!/usr/bin/anonymous : 2016-03-22 03:15 ID:9fRP4I+C

Yeah, I agree with >>5. If you are going to get programming as your job, you will communicate alot. As you need to explain your code to your team, and explaining the functions of your program to your client/boss.

As for >>6, I'm motivated to program for multiple hours when I know that I am getting progress at coding the program.

9 Name: #!/usr/bin/anonymous : 2016-03-22 19:26 ID:wcj6jE3J

>>6
Give yourself a sequence of small, defined goals that you know you can easily achieve and that follow on from each other. I'm talking less than half an hour for each thing; you want to be able to know you can do it soon, but don't bother planning any smaller than that - tedium isn't fun.
Make sure that you can tell whether the thing works once you've done it for the sense of achievement, and the "Cool, now I've got that working, I can do this!" that follows.
Do this plan for a couple of different areas of your project so you have more to work on if you get stuck.
Optional: drink coffee and booze alternately. YMMV.

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

New thread

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