[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [Catalog]

1 guest@cc 2020-06-02T05:54:18 [ImgOps] [iqdb]
File: 57cd0496aacf1102cf8c6117760d6a… (JPEG, 211.27KB, 600x480)
I'm learning scheme as my "first language" using How to Design Programs. I've had previous programming experience before, but this is the first time i'm learning seriously with the intention of being able to understand common computer jargon like what a bash file is or what a port is. Whenever I look at other languages now, they seem so fucked up. I think, where are the parentheses? How do you know when one function starts and the next ends? How can you use an or function inside another function in c if semicolons end a function, or is or not a function in c for some reason? In middle school, I tried learning c. I don't remember what they do, but pointers were a nightmare and I'm scared of it them now.

Other languages seem like their syntax is full of arbitrary things what line you're writing on being important. In scheme, there's no difference between brackets and parentheses, they just contain things. Functions always go at the start of parentheses, and everything else after, so there's no order confusion. A good ide like DrRacket keeps track of parentheses for you too, so not having enough or too many isn't a problem. Like legos, you can just put these simple pieces together unlike a gundam model or something. It seems like it works so well to me, I don't understand why other languages are different. Is there a good reason why other languages don't have the same format besides speed?
4 posts omitted
6 guest@cc 2020-06-02T17:09:12 [ImgOps] [iqdb]
File: 4067d70c54e0404f4e80c5f8e3fa82… (JPEG, 1.05MB, 1500x2300)
Speed is not a good reason. Parsing S-expressions is very straightforward and should be quick. Macro expansion could slow things down but theoretically you could have an S-expression based language without them. Meanwhile parsing something like C++ is a hard problem. The language is full of ambiguities and people have been working hard to make GCC's parsers fast.

I assume that at this point it is mostly a question of tradition. The processor itself executes statements (instructions) therefore most of the early languages are also based on statements. Just look at COBOL, adding numbers is done by the statement
ADD a, b TO c
. Of course this is insanity and people added expressions to their statements, so now you can write
return 1+2;
in C, which is a return statement with the expression 1+2 as an argument to it.

The reason Lisp is so different is that McCarthy did not design it to be a programming language, but as mathematical notation to reason about programs. It was never meant to run on the machines and he was quite surprised when Steve Russell managed to write the first Lisp interpreter.

Most Scheme's support structs and have object systems. Even if it is missing, you can write your own. It is discussed in the third chapter of SICP. I would also recommend the paper "Object-Oriented Style" by Daniel P. Friedman.
7 guest@cc 2020-06-02T17:27:10 [ImgOps] [iqdb]
File: CoLAReimuYukari.jpg (JPEG, 112.97KB, 613x627)
So hypothetically, every non-assembly language commonly used could have been designed around s-expressions including stuff like javascript and sql? Would that have been better, or is there some design advantage to using statements besides tradition?
8 guest@cc 2020-06-02T18:21:31 [ImgOps] [iqdb]
File: 1407624519981.jpg (JPEG, 55.46KB, 600x900)
These are two separate problems. You can have a language with only expressions but with a syntax that is not based on S-expressions. See OCaml for example. On the other end, you can have a language with only statements but encoded in S-expressions, like WebAssembly's text format.

In my opinion it can make sense to have statements if you expect the language to be used in an imperative style, meaning that most of the program is statements following one another. In this case encoding it in S-expressions you will get a very shallow tree, hiding most of its benefits. It can also make sense to avoid S-expressions even when the language would be perfectly fit for it. Many people seem to prefer a more "wordy" representation that matches human speech and find S-expressions "alien". I think it is much more important to make the syntax straightforward, consistent and predictable.

But! S-expressions are uniquely suitable for complex, computational macros, which many believe to be the crown jewel of Lisps.
9 guest@cc 2020-06-06T22:07:44
>So a lisp machine is designed in a way that makes lisp accurate to the hardware?

I've always wondered this too. I have some familiarity with assembly and how those instructions map directly to binary and I can see that it's fundamentally quite different from Lisp.
But I've always wondered if there was another way the binary could function that's more Lisp-like.

This may be unrelated but I also always felt like a "Lisp Machine" would really benefit from being Single Address Space so programs could directly access data in other programs like in TempleOS.
10 guest@cc 2020-06-08T19:27:44 [ImgOps] [iqdb]
File: 0ad609435127b6f49592353d9a119d… (PNG, 1.16MB, 1026x1242)
Here's a paper on the architecture of one of the Lisp machines: https://dl.acm.org/doi/10.5555/327010.327133

From a quick skim it seems that it was a stack based architecture with a few Lisp-specific extensions, like tagged addresses and hardware based run-time type checking. Nothing extraordinary for its time. My impression is that the real attractive part of the Lisp machines was the software, the hardware was just developed to make the performance bearable.

I know of a project that built a chip that was based on function application, based on the SECD abstract machine, but I did not have the time to study it yet. If you are interested, this seems to be a good entry point: https://prism.ucalgary.ca/handle/1880/46595

1 guest@cc 2020-03-02T07:13:10 [ImgOps] [iqdb]
File: 944a06fb8f8b21f9e0832334d7d6fb… (JPEG, 830.6KB, 1000x1000)

Why is there no license file provided? By default, software is proprietary, you will need to declare it under a free license to make it free software.
44 posts omitted
45 guest@cc 2020-04-27T20:47:58
I see that the polite term for this is "transferred".
https://4taba.net/contact -> https://github.com/ECHibiki/kotatsu -> https://github.com/ECHibiki/Kotatsu-V-archived -> https://github.com/ECHibiki/Kotatsu-V/
46 guest@cc 2020-04-28T00:40:09
> Enter the post number you want to reply to in the options field to start/reply to a subthread

Or you could just use >>44 like a sane person.
guest@cc 2020-05-04T17:44:12
Haven't you ever used a forum with off topic replies? That's what these are. They let you make potentially derailing posts without actually derailing the thread (like you're doing right now).
47 guest@cc 2020-05-29T09:34:48
48 guest@cc 2020-06-04T09:36:31
Switching the .code to display: inline; gives you nonsensical per-line borders: >>42 >>44.
49 guest@cc 2020-06-04T10:32:45
It is, but if the code tag is used inline it fills up an entire line that looks poor to read.

I'll see which rule sets width to be sized to all contents

1 guest@cc 2020-05-28T23:34:03 [ImgOps] [iqdb]
File: icon-image-512 (1).png (PNG, 40.52KB, 1054x430)


I have made this imageboard database as my first PHP project.
It would be really nice if you consider adding your board to the database.

Thank you very much and sorry for shilling. Have a nice day
3 posts omitted
4 V 2020-05-28T23:55:46
This is a useful software/website but as it stands I can't push it
Verniy ## SysOP 2020-05-29T00:04:22
I see it's also on free hosting. I'd like if you made it open source so I can put a copy of this onto the server hosting 4taba and make pull requests to update software. I can't guarantee I'll be active or do anything for the next two months since I'm working on kissu.

Is my first PHP project that I used to scrape 4chan's ban pages, but I haven't touched it since and it's quite crappy as you can tell by the load times(it's at 468,492 entries using poorly written code). I want to retire it and put that software in it's place since I no longer care for 4chan.
5 guest@cc 2020-05-28T23:57:01
search asdf for a surprise, was gonna put in a goatse but it appears you're fixing the problem?
7 guest@cc 2020-05-29T09:23:14
search %\n% to see all sites entered.
8 guest@cc 2020-05-29T09:26:43
Good idea, but bad execution.
9 guest@cc 2020-05-29T19:29:19
what's the name of that song again
guest@cc 2020-05-29T20:42:55
S3RL - Pretty Rave Girl
Basshunter - DotA
guest@cc 2020-05-29T19:29:50
I was going to politely sage here, but I forgot. Oops

1 guest@cc 2020-05-28T21:12:55 [ImgOps] [iqdb]
File: e959f53d26aa7e93aea20a5d788e4e… (PNG, 2.14MB, 1158x1637)
How suitable would kotatsu be for facilitating anonymous software development? You can open threads for issues, post patches as attachments, do code review the way they do on mailing lists. Of course there's no integration with version control software but mailing lists lack that too and they work just fine.
2 guest@cc 2020-05-29T02:33:44
You could also create new boards for branches or whatever. I guess it could work.
3 guest@cc 2020-05-29T06:22:33
I remember there was ``rechan'' that tried writing software through an imageboard but I don't remember how it actually worked.
4 guest@cc 2020-05-29T09:37:44
The admin already received fixes in https://4taba.net/thread/cc/116 but doesn't seem that interested in fixing things.
5 guest@cc 2020-05-29T10:41:41
I'm past the stage of modifying to writting my own. Looking at 4taba has helped me understand more about the meta I'm looking for in an imageboard. If you have enough faith in kotatsu to want to use it then Artanis needs to be forked/replaced, but my direction is towards building services around kotatsu and using it as a way for me to protype services for the Kissu software service package(minus the ReactJS SSR server stuff that's occupied me the past month and a bit)
guest@cc 2020-05-29T19:18:47
4taba has to be restarted every 12 hours because serving static files causes a memory leak. Perhaps fixable using nginx to serve all content. I thought I did this but looking at the config I haven't
guest@cc 2020-05-29T16:11:57
What's wrong with Artanis?

1 guest@cc 2018-07-30T04:20:15 [ImgOps] [iqdb]
File: angry-witch-rotten-apple-long-… (JPEG, 186.38 KB, 957x1300)
So, I finally decided to properly try to learn C.

>main(){printf("suck my cock, dude\n");}

As you are all no doubt (painfully) aware, the above is a valid C program. Compilers will whine at you, even hiss and scream, but in the end, they'll do what they're told and put it together. As short and non-compliant as it is however, several points of redundancy still come out to me.

main: Not useful here, as we're just using one (proper) function, anyway.
(): These brackets do nothing. That is their explicit purpose.
"": We should be able to omit these, and have the compiler recognise the area between those brackets as a plain old string. Since I'm inexperienced, I don't know whether that's on the C language itself, or stdio, though.
;: As far as I can understand, the purpose of the semicolon is to separate functions from eachother. printf is the last (not to mention, ONLY) function in this area, so I can't see what it adds.

In short, I think this should be a valid C program:
>printf(suck my cock, dude\n)

To go about doing this, I propose that we create a new language, which is to be called "Corner-Cutting C", so we can shave off as many of those nasty little bytes as possible. Who's with me?
18 posts omitted
22 guest@cc 2019-08-25T18:17:25
Dude its just like math. U have functions these are defined by having a type and a name f.e.
>int fnaddint(//any sort of arguments and options){

>//stuff u want the function to do

>return 0; //so all other programs know whether it was successful or there was an error


And the u use them for example
>int output = fnaddint(summand1, summand2);

Then there are headers that define specific functions.
>#include stdio.h //defines the printf function.

Basic Rules. Ease of Use. No fucking around. Simple and clever. Flexible in its own way.
All other interpretation shit is redundant. If you don't like the way its handled. There are other languages more suitable for you.
20 guest@cc 2018-11-30T04:12:34
touch o the tism
21 guest@cc 2019-01-24T16:27:18
I had some time to think about what I said, and I have to apologise. THIS is what I think should be a valid C-CC program:
>printf "suck my cock, dude


Feel free to offer feedback.
23 guest@cc 2019-08-28T02:17:04 [ImgOps] [iqdb]
File: Madokas 177 (EE).gif (GIF, 61.71 KB, 300x300)
the iostream poster in this thread needs to die
it's not even c, its c++
and they're adding c style string formating to c++20 anyway with FMT
go to hell
24 guest@cc 2020-05-06T11:07:59
>The final binary is going to be the same and that's what really matters.
Nevertheless, the programme actually matters. A programme is a description of a process. It is the primary source about the process it describes.
Presently, many pragmïnformaticals' edifactaries are poor. It is reasonable that vainary (i.e. it's self) or tertiary (e.g. wikis) sources are poor; it's vainary source is only to do itself, it's tertiary sources are too distant. (It's antiprimary source is (only partly) accessible to only it's authors.) Wellest, often, are (sadly, often manuscribed, thus more letting organic errata) secondary sources. It's unreasonable, yet popular, that primary sources are poor.
Alarming? Don't manuscribe, let exact processes esscribe, secondaries. Literate programming, he says, is to {\sl for a person} write it, markt suffact for distal derivion of the therein described, ready for a person, understanding it, to use it.

>The real benefit would be not having to press shift all the time

That can only be a problem if you're tired. If you are {\sl tired}, you shouldn't be at the terminal. Rest. Only while refreshed, awake, et cetera can one reliably produce reliable programmes.
guest@cc 2020-05-06T21:55:03

1 guest@cc 1969-12-31T17:00:00
Do any nice shell scripts lately? I've been writing and optimising scripts, perhaps needlessly, for bourne shell and korn shell.
22 posts omitted
25 guest@cc 2018-05-23T22:53:10
26 guest@cc 2018-05-29T17:18:02
I found that on some Unix systems where the daily, weekly, or monthly scripts seem to not work from the command line, running them in the background (applying the & after a command) makes them work.
I think it's a bug in the way they mail the results to root.
24 guest@cc 2018-05-23T18:22:05
You messed up the closing tag
27 guest@cc 2020-04-17T19:28:57


find_in_directory() {
find "$1" -type f -print0 \
| xargs -0 exiftool -genre 2>/dev/null \
| awk -v RS='======== ' -v FS='\n' -v ORS='\0' \
"toupper(\$2) ~ /^GENRE[^\n]+${GENRE}/ { print \$1 }"

if [ $# -lt 1 ]; then
echo "${0}: find music by genre."
echo "Usage: ${0} GENRE [PATH...]"
exit 1

GENRE=$(echo $1 | tr '[a-z]' '[A-Z]')

if [ $# -gt 0 ]; then
while [ $# -gt 0 ]; do
find_in_directory "$1"
find_in_directory .
28 guest@cc 2020-04-18T05:11:08
Fascinating. I didn't know about shift.

1 guest@cc 2020-04-08T20:02:08 [ImgOps] [iqdb]
File: david-revoy-2020-03-14_gnuess-… (JPEG, 1.26MB, 1677x2043)
The day has finally come, Guix now runs on the much anticipated Hurd kernel: https://guix.gnu.org/blog/2020/a-hello-world-virtual-machine-running-the-hurd/
7 posts omitted
9 guest@cc 2020-04-10T08:50:24
> https://git.savannah.gnu.org/cgit/hurd/hurd.git/tree/console/motd.UTF8
> https://git.savannah.gnu.org/cgit/hurd/hurd.git/tree/console-client/vga-dynafont.c#n390

Looks like they add custom glyphs to the Unicode Private Use Area to draw the GNU. Amazing!
guest@cc 2020-04-10T20:45:18
Nice. Like the Dobbs head in the Atari character set.
10 guest@cc 2020-04-10T21:52:39
So it only appears if you're using the default font?
11 guest@cc 2020-04-11T08:18:19
It is dynamically added to every font: https://git.savannah.gnu.org/cgit/hurd/hurd.git/tree/console-client/vga-dynafont.c#n463
12 guest@cc 2020-04-11T18:34:22
>>11 Cool and absolutely sinful that a terminal is able to do that. It'd be better if there was some kind of wacky control character or part of the MOTD script that manually changed the font, then went back to the default.
13 guest@cc 2020-04-15T16:02:13
GNU Guix 1.1.0 was released: https://guix.gnu.org/blog/2020/gnu-guix-1.1.0-released/

1 guest@cc 2019-11-18T07:20:40
Posting from elinks! What browser do you use when surfing the web through a CLI?
9 posts omitted
11 guest@cc 2020-03-18T03:09:06
Semi-off topic, but I used to use w3m.el, but it often took a long time to render the pages. And if you resized the buffer, it would freeze up for a second, so I always bounce back to eww, even though shr can't render as many sites. With w3m you can write a simple function to fetch the url and start a graphical browser
(defun w3m-external-open-graphical-browser ()
(browse-url-graphical-browser w3m-current-url))[/code]
In eww, that can be done with shr-external-browser. I find myself opening sites mostly in eww and then switching to qutebrowser when I need it. Conversely, if you use exwm, you can make a macro to fetch the url of the current site on qutebrowser and send that to browse-url. Took that little trick out of exwm-surf.

You can also direct sites to different browsers according to regexp with browse-url-browser-function--little-known fact.
'(("\\(.+\.mp[34]$\\|.+\.jpe?g\\)" . browse-url-image-viewer)
(".+&loop=1$" . qrthi/browse-url-image-viewer)("duckduckgo\.com\/\\?&.+=images.+$" . browse-url-graphical-browser)
("." . w3m-browse-url) ; where w3m-browse-url is a catch-all for everything that doesn't match the above regexp's

That approach is a good alternative to that part of that enjoys obsessively tweaking browser, in my opinion--which is bad because it detracts from the time spent obsessively tweaking Emacs--by offloading all the configurations and bindings to Emacs. Don't even get me started on webjump.
12 guest@cc 2020-03-30T18:43:00
I use lynx because its the only one that I know which also works with gopher. Having said that it's really clunky and not that great, so I should probably just move to something else.

When I'm in emacs I use eww, and it switches to elpher when I go to a gopher site, but currently I'm in an acme phase so I don't use emacs.
13 guest@cc 2020-03-31T01:31:11
Just use raw netcat commands, the protocol is REALLY REALLY simple.
As far as I remember, it only has a command set of two:
" (enter): get a directory listing
"/path/to/fileorresource": cat this file
14 guest@cc 2020-04-05T12:39:37
>>13 How does one pipe those from netcat? e.g. to a file for later reading, through a typesetting filter to display,,?
15 guest@cc 2020-04-05T19:52:35
>>14 https://stackoverflow.com/a/13591423

1 guest@cc 2019-12-03T01:59:25 [ImgOps] [iqdb]
File: vlare_dark.png (PNG, 26.26KB, 1412x340)
Community reminds me of vidlii but the design itself is just a slower clunkier version of dailymotion.

8 posts omitted
9 guest@cc 2020-02-14T03:17:56
>everything I don't like is nazi

guest@cc 2020-02-22T02:09:09
You shouldn't be reading an IMAGEboard in a text browser to begin with.

That aside, in my experience feature works wonders to prevent people from derailing threads. Flaming and making/replying to an off-topic post are two very different things. By keeping replies related only to one specific reply and not the topic of the thread in their own separate space, it's harder for the discussion to go off on tangents.

I agree that the implementation kind of sucks though.
guest@cc 2020-02-21T02:39:45
> because you're new and either didn't know that that's what we do here, or didn't even know the feature existed.

nah, some people also don't use it because that feature is complete garbage. someone who wants to flame won't use it because fuck you cunt, and someone who cares about the site would just refrain from starting arguments instead of jerking off in a chastity-box

besides it looks unreadable in text browsers since these posts are in reverse order seriously wtf
guest@cc 2020-02-15T05:48:00
I think they were talking about vlare, which is in fact not ran by a neo-nazi (afaik).
guest@cc 2020-02-15T02:21:14
No, fuck you
guest@cc 2020-02-14T20:28:58
If you're going to start an argument you're supposed to do it in a side thread. I suspect the reason you didn't do this is because you're new and either didn't know that that's what we do here, or didn't even know the feature existed.

Anyway, bitchute is used exclusively by terrorists and isn't actually peer to peer.
11 guest@cc 2020-02-21T15:12:14
can we not
guest@cc 2020-02-21T18:04:59
not what
12 guest@cc 2020-02-21T23:27:04
vlare i think would be a sufficient youtube alternative. i would say it's currently much better that youtube when it comes to the website itself. i just hope it gets an interesting community, as it currently seems to be just animation memers and commentator channels.
13 guest@cc 2020-02-22T16:35:06
what is the problem with vimeo, vidly and dailymotion that they aren't being used as youtube alternatives? this problem seems to have been going for a while
14 guest@cc 2020-03-08T21:17:10
Same privacy concerns but less content.

1 guest@cc 2020-03-05T02:16:06 [ImgOps] [iqdb]
File: 1583261773812.png (PNG, 18.75KB, 307x300)
Is someone here using it? Or does someone plan to try it?


1 guest@cc 2020-02-28T01:52:15
Do any of you care about your privacy and such. It seems we live in times of next to 0 privacy, even if you disconnect yourself from mainstream platforms. It has gotten to the point where I think it is only possible to be truly anonymous by going full kaczynski and hiding out in the woods providing your own services and resources.
Here's an eye opening talk about the subject:
I haven't watched this one, just a talk he did from 2016, but I'm sure this has similar information.
2 guest@cc 2020-02-28T03:12:33
I haven't watched this 3 hour video but please watch this 3 hour video about how things are bad.
- freetard
3 guest@cc 2020-02-28T03:53:27
Something smells very copy-pasted about your post, like you're going down a list of imageboards and making the same thread on all of them.
4 guest@cc 2020-02-28T22:53:26
i thought it was a good talk
i've never posted this in any other board

1 Epnpromocode 2019-12-04T01:03:10 [ImgOps] [iqdb]
File: 92.gif (GIF, 3.08KB, 50x50)
[url=https://epn-promocode.ru/modnye-tendencii-oseni-i-zimy-2019-2020/]Модные тенденции осени и зимы 2020/2021[/url]
Всемирно известные дизайнеры уже представили свои коллекции к осенне-зимнему сезону 2019/2020. Вам интересно, что будет модно в предстоящем сезоне? Какими будут осенние и зимние тренды на рубеже 2019 и 2020 годов? Мы приглашаем вас в статью, в которой вы найдете много вдохновения и стильной одежды. Не ждите и проверьте осенние и зимние тенденции сейчас.
2 guest@cc 2019-12-04T05:35:39
this might be some of the coolest looking spam I've ever seen

1 guest@cc 2019-07-05T16:51:02 [ImgOps] [iqdb]
File: dilbert3.jpg (JPEG, 44.12 KB, 640x480)
Is there any song that somehow makes you feel more like you're using a computer, and somehow "feels" like you're using the old internet more than this one?
19 posts omitted
21 guest@cc 2019-09-12T07:17:44
Something about that Dragon Quest VI poster being there makes me happy to see it.
22 guest@cc 2019-09-12T07:59:41
>エコー ザー ドルフィン 2
>echo the dolphin 2

lol, that image really is old
23 guest@cc 2019-11-28T22:26:18
For those swfchan vibes
24 swfchan poster 2019-11-29T03:37:33

that's very accurate
25 guest@cc 2019-11-29T05:13:24

1 guest@cc 2019-10-21T21:17:51
Am I going crazy, or is there a slight difference between about:blank and data:;, ? I keep flipping between the two of them and not being able to point out anything in particular, but they just feel differinct. Like there's a slight dicolouration between the two of them or something.
2 posts omitted
4 guest@cc 2019-10-21T22:57:41
lol oops I didn't think the example would be *that* big
5 guest@cc 2019-10-26T22:13:51
In Waterfox the most noticeable visual difference is that the URL is removed from the navigation bar for about:blank but remains for data:,
6 FEDS 2019-11-01T21:01:41
Please don't post CP here. Thanks.
7 PSA [no "Subject" field] 2019-11-06T04:11:14
If you see somebody with numlock enabled, they are either an ACCOUNTANT or a COMPUTER HACKER. If you come across anybody like this, don't panic. STAY AWAY from the person and call Crime Stoppers. Your courage and alertness may just save lives.
8 guest@cc 2019-11-06T04:25:42
Maybe they're just a lowly DATA ENTRY SLAVE?

1 guest@cc 2019-05-21T16:49:46 [ImgOps] [iqdb]
File: Screenshot_2019-04-29 _⚘⚘.png (PNG, 94.99 KB, 1920x966)
Hey what do you guys think of this style for a textboard I have in the works?
I've only completed the front page so far. Also, ignore the dates on the News section, they are only placeholders. The center image is a gif you could view: https://steamuserimages-a.akamaihd.net/ugc/634231315278255023/DB7A5861ED713574B6F18652178B8D91B90F671B/

Heavily inspired by 4taba lol.

Got myself a raspberry pi 3 to run a web server and do tests and shit with the website, as I'm still a complete n00b with backend.
21 posts omitted
23 guest@cc 2019-08-26T23:31:35
nice bathroom, anon
24 guest@cc 2019-08-28T23:17:38
I might change the background, but I think I quite like it
25 guest@cc 2019-08-30T09:06:57
I like it too, I wasn't saying that ironically
26 guest@cc 2019-09-05T04:39:36 [ImgOps] [iqdb]
File: 1567679783.png (PNG, 78.36 KB, 882x736)
Don't mind the generic colour scheme, each board will have its own unique CSS. This is just the testbed/development site.
27 guest@cc 2019-11-01T21:02:20
I run http://4x13.net/txt on my own board soft

Probably gonna bring the wiki back .... someday ...
guest@cc 2019-11-26T03:54:28
Looks like registration expired.

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [Catalog]Delete Post: