arisuchan    [ tech / cult / art ]   [ λ / Δ ]   [ psy ]   [ ru ]   [ random ]   [ meta ]   [ all ]    info / stickers     temporarily disabledtemporarily disabled

/λ/ - programming

structure and interpretation of computer programs.
Name
Email
Subject
Comment

formatting options

File
Password (For file deletion.)

Help me fix this shit. https://legacy.arisuchan.jp/q/res/2703.html#2703

Kalyx ######


File: 1493214004178.png (97.6 KB, 2000x2000, out.png)

 No.36

So, what have you been working on?
I just finished my Golang wallpaper generator:
https://git.teknik.io/prometheus/random_procedure
Im really happy with the result, which you can see in pic related

Another question:
Where do you prefer to upload/host/share your code?
I use gitla.in and git.teknik.io

 No.45

File: 1493586989292.png (415.2 KB, 2550x2550, sample@0.5x.png)

I love procedurally generated images. Here's something I just generated with a JS script I wrote with svgjs. (Sorry kinda big).

Can't really comment on code sharing. I just use github right now with the rest of the plebs.

 No.62

Both of these are extremely cool.

 No.741

Lains, tell me more about projects you've had fun with.
Like yeah programming is kind of cool to do, when I have to do it, but I rarely hear of ppl programming stuff for fun, you know just stupid or useful stuff that you do because it's fun, rather than useful.

 No.746

>>741
I wrote a program that
takes a function defined between 1 and pi/2
extends it to all real numbers so that it commutes with sine.

Functions that commute with sine are determined by their values from 1 to pi/2,
so you can get any such function this way.

 No.759

File: 1506659185385.png (204.92 KB, 1366x768, 1505612337_2017-09-16_1366….png)

I've been working on and off on my tiling game engine in Python 3 for the past two years. It's in late alpha now.

https://github.com/seisatsu/Driftwood

 No.789

i have a bunch of old projects on hard-drive that i want to put to github, can i make the git repo use the timestamps of the files instead of current time?

 No.790

>>789
Not that I'm aware of. Commit time is usually more important, so that gets logged.
Just add the original date of your project in the readme.

 No.901

File: 1512863316347.png (3.69 MB, 1600x1148, new2.png)

I am very new to programming. I started learning python and decided to put my projects on github: https://github.com/cenysor

I made a program to display animated ASCII art. It would be great to see something like this integrated into a message board.
I also made a program to merge multiple images. Picture related.
And I made a program to give a random quote from a subtitles file. I use this for my IRC-bot to give random quotes from SEL.

Critique and comments welcome!

 No.902

Hey, very nice! thnks for sharing!

 No.903

Been working on this chat system. It's like some sort of irc but with live media, images, videos, music, which can be changed. It features a permissions system and a lot of aesthetic customization. Rooms can be created by users, which can administered through some settings. Right now, current lines-of-code length is a bit over 15 thousand. Started working on it around this time last year. Been working on it on and off. Made some other stuff in between.

Here's some small video sample of how it looks: https://dl.dropboxusercontent.com/s/ynxsetmorvqabpe/2017-12-09_20-10-49.mp4

Link: https://hue.merkoba.com/

 No.904

File: 1512913193942.jpg (77.45 KB, 350x373, alicelain.jpg)

>>903
I like it! I hope it gets a lot of users

 No.934

File: 1516764038934.png (211.85 KB, 500x357, 1500737963398.png)

I'm into fast fuzzy search at the moment and try to provide fast typeaheadish typo tolerant results on any search bar i can fit on any project i start working on.
Now i'm trying to make a general purpose search server i could use in different projects instead of reimplementing a search system every time.
I get realy annoyed when sites don't have good search.

 No.999

>>901
I like the image merging one, very cool.

 No.1000

>>903
I wish you didn't have to register

 No.1003

>>1000
yeah would definitely appreciate atleast having a demo account

 No.1004

I'm a Mechatronics Major, Freshmen. And I'm looking for a project to keep myself occupied. I want to do something related to my field, so IoT, Robotics, automation, etc would be great.

 No.1022

Right now I'm working on a pair of command line apps that calculate the stats for pokemon. The first program is written in golang, it pulls json data about the pokemon from pokeapi.co and puts it into a sqlite3 database, then will return the json data to stdout un modified or will simplify the data into a smaller json that the second program can parse.

The second program is written in C and does the actual calculation. Takes json from stdout (or as an argument / from a file) and with options to the program you specify nature, level, EVs and IVs. Calculates the stats, and will output the final calculated pokemon's stats, or will output in a format that can be imported into pokemonshowdown (A popular web based pokemon battle simulator).

I'm using https://github.com/zserge/jsmn for parsing json in C. It's really fucking cool, you should check it out.

typical usage would look like this
pokepull -sn garchomp | pokecalc -s nature,adamant -s attack,252 -s speed,252

Since I only specified attack and speed stats, those are the only two stats that will be in the output. Additional options exist to ask for every stat, and to output in different formats. IV's default to 31.

 No.1025


 No.1027

File: 1520916432502.png (31.48 KB, 809x624, Screenshot_2018-03-06_21-3….png)

Workin' on reprogramming space station 13 in Love2D.
It's painful.

 No.1028

>>1027
What makes it painful? Is the problem with Lua, Love2D or something else?

 No.1039

I'm learning new language and I want to write program in C or C++ that takes pairs of words I've learned and their english translations and shows me one part of pair to complete(translate) chosen randomly from all pairs. But I don't know how to efficiently store this set of pairs (basically dictionary) so I can expand it after each class. Writing it in two columns in text file seams like a really bad idea.

Other important features I want to implement are
- tag system (like animals, sports, electronic devices etc.) to create theme based tests
- weight system that displays certain words in set more frequently if I wrote bad translation.

For now I'm still thinking about how this system should look like and what to do first so any suggestion will be appreciated.

 No.1040

>>1039
> Writing it in two columns in text file seams like a really bad idea.
How so? It should work fine.

 No.1041

>>1040
Hmm, maybe. I was thinking about saving each pair in separate file with file name being number of pair in whole set. I wanted to add pairs in program too but operating on single file with strict formating should be easier with any text editor, or by simply appending new pair from program to file. Guess I was just complicating easy things.
Thanks Lain.

 No.1042


 No.1419

A game I've always wanted to make but each time fell short on knowledge and resources. Finally have enough to build it. It's an open world story book where not all of the story elements happen in the same order and sometimes completely unique ones can pop up where the game generates it's own small arcs based on a fragment pool. This being a more of a book than just reular RPG has been the main issue as with side "quests" there had to be sufficient detail for it to look as if it were prewritten.

To avoid boiler work (or at least push it back) the game currently runs in a browser (language I use comes with multiple codegens) but will eventually switch to native.

Currently written:
- local state and reactive programming library making use of the arrow interface
- music composition and generation based on the above
- WebGL bindings along with DOM manipulation for Idris

In progress:
- SAT solver (currently slow)

Next:
- full SMT solver for constraint based UI (no menus currently…)
- optimization tactics for the AFRP library (we have reflection so use it)
- Narrative generation via linear logic
- Web audio
- GLFW, OpenGL, OpenAL, and general native bindings

Also lack of actual images of it runnng… kind of broke rendering and haven't gotten around to fixing it.

We'll see how it goes, maybe 15th attempt is the charm

 No.1421

>>903
>>1042
Good job, anon!
I need to try this.

 No.1422

god this place is dead

 No.1423

File: 1545827066009.png (97.58 KB, 640x480, Phantasy Star 4287.png)


 No.1424

File: 1545837146716.png (125.95 KB, 1366x768, 2018-12-26-16:11:24_1366x7….png)

I got an idea for this one from endchan's /tech/.
There was a thread about possibly making a terminal imageboard browser, and since no one really wanted to do anything, I decided to make one.
It's called tibb and by now it supports 8ch, endchan, applechan and (since yesterday) arisu.
You can not only browse threads, but also view images with w3m and anonymize your traffic with a socks5 proxy like Tor.
It's not complete tho, there is still some stuff to be done (like posting support when I'll finally figure out how it works).
https://gitgud.io/fixerb/tibb

 No.1434

>>1419
Where can I see the code?

 No.1435

File: 1548054789513.jpg (101.92 KB, 1984x1104, 354ae6e27e24683612cd377894….jpg)

>>45
And I build mountains in Haskell, but the code is a shame.

 No.1485

File: 1550824040000.png (464.05 KB, 1600x900, site.png)

I've been working on a personal website, and an Icecast streaming client for internet radio. Planning on adding a song/artist directory and voting interface.

https://vxhvx.com/ critiques are welcome

 No.1489

>>741
I usually program the things that I need, when I need them. But my needs are never serious, thus I have a lot of fun making things. One of the most recent examples is a short script to remove encoded subtitles from video files, this came about when I downloaded a bunch of Seinfeld episodes that had unneeded subtitles.
Though I am currently having a blast with my current project: a shell script, (might port to C / Python later) that can remotely access someone's webcam through SSH.

 No.1492

>>36
I find "metamorphic/polymorphic" code really interesting so I've been tinkering with some ideas for generators / engines in C and Go.
Nothing crazy, but more than just XOR.

 No.1493

>>1492
sounds cool.
could you give some more info/exmples?

 No.1494

>>1485
that pretty cool

 No.1495

>>1492
Hey I wrote a very simple library to facilitate self modification in C (linux) and now I'm writing a custom VM to allow meta and polymorphic code to run without restrictions, if you wanna talk about this add me on discord Solanav#7326

 No.1496

>>901
Damn! that all sounds awesome your link is bringing up a 404 unfortunately though.

 No.1497

>>36
I'm almost done with my OOP-JS Minesweeper using the canvas.
Just something to keep me busy while I also try to read and catch up on new stuff.

One thing I realized, is that though I may be familiar with multiple languages: Python, JS, PHP, C#, I have been reliant on the internet for 'quick lookups' on functions/methods.
I realized that when my internet connection has been cut off.
I've since started downloading the documentation for these languages that I don't have.

 No.1603

>>1424
That looks really cool

 No.1604

>>36
>gitla.in
Damned, it's out of service. Just when I thought that this was the best timeline. Are there any other lain-dedicated platforms out there?

 No.1635

File: 1562746830550.png (306.77 KB, 1919x1049, Screenshot_2019-07-09_19-1….png)

I've been working on a social media site for about 6 months. Any feedback would be awesome, feel free to create an account
here's a cyberpunk profile: https://tiblar.com/neuromancer/
main site: https://tiblar.com.

 No.1636

>>1635
Make it muh free software and I might use it.

 No.1638

File: 1563153962852.png (133.6 KB, 1920x1080, test.png)

>>36
I've ported your code to C++ and played with it a bit

 No.1639

>>1635

This looks great, please publish the code.

 No.1641

>>1638
Looks really good.

 No.1707

echo "uBMAzRBoAKAfTjHJu3YBYOgVAOh3AGFLdfVgMdK5AQC0hs0VYUHr5FEx0onYuQMA9/FZ2+
NniUQk/mffRCT+Z4lMJP5n3kwk/meJVCT+Z99EJP5nx0Qk/kAAZ950JP7YwWfHRCT+gABn3nQk/t
n+Z8dEJP4FAGfeTCT+Z95EJP5n31wk/meKRCT+BB/DUFEx0onYuRkA9/GD+gB1A1lYw7sABYPrB4
PDDUp1+oHDQBBIdflZWOgBAMNguQoAugoAiAdDSnX6g+sKgcNAAUl17WHDAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////
////////////////////////////////////////////////////////////////////////////
//Vao=" | base64 --decode > jd2.img & qemu-system-x86_64 jd2.img



[Return] [Go to top] [ Catalog ] [Post a Reply]
Delete Post [ ]