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: 1548307898640.png (26.98 KB, 1200x1200, 1200px-Unofficial_JavaScri….png)

 No.1440[Reply]

Right now my favorite language is javascript. I know and have used several other languages in the past, especially python, but I've decided that I see no reason to use anything but javascript nowdays, unless I need a certain tool for a specific job. Why? It turns out it's really comfortable to use, it makes sense, can look good if you format it nicely, it evolves quickly and smartly every year, it's everywhere: Web Applications, Desktop Applications, Mobile Applications, even on Embedded Devices (something I'm interested to try one day). I still have to catch up periodically because it's actually a pretty rich language, which ironically evolved from what appears to have been a quick hack. Right now it's still seen as a meme language by some, I personally fear Node, NPM and the ecosystem in general might not be as mature as they could be, but it works now and hopefully it evolves in an intelligent and safe way.
16 posts omitted. Click reply to view.

 No.1476

>>1475
>In JS world code or framework works whole few months, then its unusable
Could you please fix the syntax error here?
I can not parse it.

 No.1477

>>1476
i wrote something wrong? i am not natve speaker, so i am sorry, i got A from last english exam though

 No.1478

>>1477
Yeah, I'm not sure what the error is because i can't understand what you're trying to say.
maybe i would understand if you (or anyone who understands) were to rephrase it.

 No.1479

He has observed the fleeting nature of frameworks and of JS code in general.

 No.1480

>>1479
Thanks. I see how that could mean that now.



File: 1537390711749.gif (473.3 KB, 500x375, 4890897083_a5b7a770b2_o.gif)

 No.1369[Reply]

I want to make a GIF that randomly changes infinitely. how difficult will this be & where should I start?
1 post omitted. Click reply to view.

 No.1371

>>1370
Which formats? I'd like for it to be on a website And for each visitor to see there own random video for that instance.

 No.1372

>>1371
Maybe you should explain what you're going for before you getting into the technical details. Something like this?

https://bahamas10.github.io/tvstatic/

Maybe in a box on a web page?

 No.1375

>>1369
Check this out;
https://github.com/def-/gifstream
https://hookrace.net/blog/time.gif

It generates each frame and sends them while the browser is still displaying it.

 No.1376

File: 1537446338844.jpg (150.66 KB, 800x600, serveimage.jpg)

>>1371
You can manipulate SVGs with JavaScript. Does not really work for videos but you could do some interesting random infinite effects with that.

For videos just get a list of files on your server and select one randomly?

 No.1469

you can embed Processing into browser. Check out Generative art by Matt pearson



File: 1535726245951-0.jpg (185.06 KB, 445x484, IMG_20180831_163101.jpg)

 No.1332[Reply]

I've got 3 and a half years (7 Semesters) to teach myself everything someome coming out of a CompSci Bachelors education should know (takes 6 Semesters in my country).

I have already started SICP and am fluent in functional, OOP and systems programming languages. I have contributed to FLOSS projects and the like, I swear I am not just LARPing. I read through what the Uni in my country teaches, and I already have a firm grasp on the less than theoretical side of things, but when it comes to analysis, proofs and the like, I don't even understand half of what is required of me. Any lainer got textbooks to recommend? Anything really, I'd be very grateful for. I know this board is not really the right place to start, but I'll be damned if Alice doesn't have a CompSci degree.
5 posts omitted. Click reply to view.

 No.1374

Young friend, it's impossible to <<know pr0gramming>>, since there are too many different topics. Would you like to programm cars? Nah, you don't. Embedded a soykaf.

Rather try to become specialized and excell at a specific field which is fun for you.

What is fun?
Maybe take one year off to dig into web stuff.
Work your way down from HTML, CSS and JS to actually READING a few (internet-related) RFCs.Then learn some basics about servers and security (actually deploying a website and playing arroud with things like firewalls is good fun). And get into networking, at least some basics. Maybe read the first chapters from some CCNA training manual.

After that dig into Databases, Databases are underrated!
First the usual entry stuff (SQL basics, normal forms) and then I highly recommend:
"SQL Antipatterns" by B. Karwin


You can never go wrong with web stuff and databases and networking security.
Becoming decent in security is insane, but basics are mandatory.
Also security is so much fun, even the basics.

 No.1392

>>1332
A decent list for compilers and type systems:
Category Theory by Awodey (or Category theory for Programmers by Bartosz Milewski)
Compiling with Continuations by Appel
Types and Programming Languages and Advanced Topics in Types and Programming Languages by Pierce
Functional Programming Through Lambda Calculus by Michaelson
Implementing Functional Languages by Simon Peyton Jones

Category Theory is useful for almost all languages thus a valuable design tool to have around.

 No.1398

>>1392
>Category Theory is useful for almost all languages
why?

learn Category theory as you need it, in a vacuum it is completely useless. what you will likely find happening is that you stumble onto basic categorical concepts as you program (in a strongly typed functional language) and backtrack to the theory as you level up with the abstractions that you encounter.

>Functional Programming Through Lambda Calculus by Michaelson

is the only book on your list that wouldn't completely overwhelm an undergrad level student. All the others should be avoided until you have the required maths background. Another exception being Compiling with Continuations, avoid this altogether. If I can be bothered then I'll post some compiler papers/texts for anyone interested.

The Little Typer by Friedman & Christiansen, recently released, is a very friendly introduction to many basic concepts in type theory minus the usual prerequisite mathenese.

 No.1458

>>1392

A bachelors program typically might touch on a few of the topics you list here briefly. But really all of this is graduate level stuff and above that isn't going to be very useful unless this person is extremely interested in compiler design and theory.

>>1398
Category theory is as useful for learning functional programming languages as reading about design patterns are for learning object oriented languages. It is something that they could read alongside learning something like haskell and get a lot out of I'd argue.

 No.1461




File: 1538427934442.gif (1.09 MB, 972x1000, lainCOMP_FIN2.gif)

 No.1382[Reply]

any news about lainOS?

 No.1383

File: 1538428476199.png (326.4 KB, 1539x1329, 1537406690415.png)

I read that it's an open source project, so- where is it, what would we do with it, etc- if it were finished?

 No.1384

>>1382
the guy stopped working on it

 No.1459

>>1384

Is there a link to the repository anywhere in case someone else wanted to pick up where they left off?

 No.1460

>>1383
https://sourceforge.net/projects/lainos/

go for it. but honestly its probably going to be a fair amount of work to update it. Might as well make your own distro from scratch than decipher what all was going on in a 6 year-dead project and update it.

Just my take.



File: 1493891575527.png (33.66 KB, 300x296, 1476701764092.png)

 No.65[Reply]

Saw this over at the big shot thread and I decided to make it.

How did you get into programming? What sage advice can we learn from your rookie mistakes experience?

I'll start to get things rolling. Middle school had that Hour of code soykaf. I was fairly good at Codecademy so I thought like the idiot middle schooler I was I could do anything with my 133T 5k11l5. I tried to make a simple cipher in Python, and I was stuck at how to shift the letters. Then I decided to read a book and I was finished with the project within 8 days I had school and other stuff that got in the way okay?

Now I'm finally getting into C by creating a password generator based on diceware.
36 posts and 4 image replies omitted. Click reply to view.

 No.1281

>>65
I learned how to program from my mother's student copy of Microsoft VB98 and the included MSDN disc. I spent three years writing VB code. In the beginning I was focused on making games. At some point I decided that I wanted to make a clone of Harvest Moon and so I used my incredibly limited knowledge to make a really basic map editor and included in that editor was a really basic "script" "editor/compiler". It's pretty apparent to me now that it was just a lobotomized BASIC clone with features specifically for manipulating game objects. From there, I went on to C programming through devkitarm and failed to really make anything significant. I struggled for a long time with figuring out what I wanted to focus my time and energy on. I kept coming back to game development and reinvented the wheel time and time again until I realized I was much more content with creating plain old useful software. I've realized over the years that the realm of utilities and general software offers much more to the programmer than the same 5 genres of game development ever could. I think game development has more to offer to artists and musicians, personally. Since coming to that conclusion I've settled on Scheme, C, and Ruby for getting things done.

If I was to give someone interested in programming because of games any advice, it would be this: Unless you plan on dumping a majority of your resources into serious studio-quality game development, don't expect your interest to last. That being said, you can use it as a catalyst if you enjoy programming more than making game assets.

 No.1284

I learned how to program while playing Second Life. The game has a built-in scripting language that taught me basic control flow and callback-driven patterns. The best part about that was that it was a shared, interactive experience, so anything you made you could share/show off to your friends who were playing with you.

I honestly don't really think it matters so much how you first learn programming. If you're someone who cares about what you're doing, you'll be able to identify the bad habits you pick up and work to rid yourself of them. Learning how to unlearn something is a useful skill to have.

 No.1285

File: 1532344036736.png (944.71 KB, 828x1169, ykk.png)

Started using Game Maker in 6th grade and then C++ in 7th grade because… I wanted to make games. I programmed all the time in middle school but didn't do it much in high school. I don't like games anymore, but I have a degree in CS. I also don't like programming anymore and wish I could be normal.

 No.1286

I started writing Batch/VBS "viruses" as pranks in 4th grade, then moved on to casually learning Python for fun, then started writing the frontend trio, C and bash about a year after I started using Linux.

 No.1450

18 years old, because I picked CS major at random. Ended up liking it and programming for fun.



File: 1546759250145-0.png (16.12 KB, 749x263, scrren.png)

 No.1430[Reply]

In case the subject
chatbots
refers to exclusively bots that chat with other bots or entities, excluding chatroom bots… I apologise, and mods can del this thread. If not checkout this pseudo anon chat whos server doesn't keep logs https://hack.chat/ and more specifically https://hack.chat/?programming which is where most of the bots are. Sry didn't know what spoiler does…

 No.1439

wouldntvisiteveragain/10
got derezzed from there for posting memes
░░░░░░░░░▓▓▓▓▀█░░░░░░░░░░░░░
░░░░░░▄▀▓▓▄██████▄░░░░░░░░░░
░░░░░▄█▄█▀░░▄░▄░█▀░░░░░░░░░░
░░░░▄▀░██▄░░▀░▀░▀▄░░░░░░░░░░
░░░░▀▄░░▀░▄█▄▄░░▄█▄░░░░░░░░░
░░░░░░▀█▄▄░░▀▀▀█▀░░░░░░░░░░░
░░░░░░█░░░░░░░░▄▀▀░▐░░░░░░░░
░░░░▄▀░░░░░░░░▐░▄▄▀░░░░░░░░░
░░▄▀░░░▐░░░░░█▄▀░▐░░░░░░░░░░
░░█░░░▐░░░░░░░░▄░█░░░░░░░░░░
░░░█▄░░▀▄░░░░▄▀▐░█░░░░░░░░░░
░░░█▐▀▀▀░▀▀▀▀░░▐░█░░░░░░░░░░
░░▐█▐▄░░▀░░░░░░▐░█▄▄░░░░░░░░
░░░▀▀░MODS░░░░▐▄▄▄▀░░░░░░░░░

 No.1447

Yeah… some mods are trigger happy, could unban u in case u ever do decide 2 visit, wouldn't need ur ip just ur hash which u can get there with /myhash, should've warned and given more info, but I don't post much on img boards, so soz about that, here's OC of inaccurate and oversimplified ISS as some sort of weird restitution.

^
%
0
!
.··. I .··.
/.'`.`·.____/ \___.·`.`'.\
\`..'.·```¯¯¯¯¯¯¯¯¯¯¯¯¯¯_ _¯¯¯¯¯¯¯¯¯¯¯¯¯¯```·.'..`/
`··` = = `··`
\ /
{ }
| |
| |
l f
/ : \
| |
| : |
| |
.··. ,'ˆˆ| I |ˆˆ', .··.
/.'`.`··;' | | ';··`.`'.\
\`..'.·` | : | `·.'..`/
`··` | | `··`
| : |
| |
| : |
| |
| : |
| |
/¯¯¯ I ¯¯¯\
GSEC7 /_ _-¯ ¯-_ _\
$$$ $$$
V V

 No.1448

whitespace is consumed, should've guessed…>>1447



File: 1542260505233.png (31.53 KB, 219x202, bug-bug-bug.png)

 No.1401[Reply]

This is a long shot, but I'll take it: any of you lot know anything about Windows' dynamic linker? Sometimes I run into intermittent crashes and the like where the intermittency seems attributable to nondeterminacy at load time. I'd like to find a way to control that nondeterminacy, so when I hit these kinds of problems I can actually turn them into a reliable reproducer.

 No.1432

Any chance this is due to DllMain or other things potentially triggered by DllMain? I believe some C++ runtimes use DllMain to manage lifetime of non-trivially constructable/destructible objects with static or thread-local storage duration.



File: 1539851245748.png (4.41 KB, 274x184, descarga.png)

 No.1393[Reply]

I want to add music to html website but it doesn't work, can you check it pls?

<iframe class="music" width="560" height="315" src="https://www.youtube.com/embed/wT8DIvJKxQc?rel=0&autoplay=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

and in css file:

.music{
display: none;
}

Thanks you in advance

 No.1394

>Welcome to Stackexchange

What does not work? Display? Autoplay? Sound? Please edit your Question.

 No.1395

also honestly just embed an MP3 instead of infesting yet another site with google soykaf.

 No.1396

https://www.w3schools.com/html/html5_audio.asp

<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>



File: 1499644503931.jpg (2.11 KB, 144x144, android.jpg)

 No.401[Reply]

Anybody have anything for getting started with android development? I've been looking for some good free courses but can't seem to find anything good or anything that isn't behind a paywall.
1 post omitted. Click reply to view.

 No.407

>>402
OP wants a course. The problem with courses and mobile development is that they'll be out of date within 2 years. Documentation is usually pretty good and intended to be 100% sufficient for people who are already programmers, so that's where I would recommend starting. Maybe a Youtube video for an environment and work flow set up if you've never used those heavyweight IDEs.

 No.434

File: 1500658989333.jpg (112.33 KB, 640x640, kokoro.jpg)

not OP but would love to get a link to free youtube playlist or something for making android apps

 No.435

>>434
Seconding this. Any decent material is appreciated.

Or should I find the latest books I can find and dive into them?

 No.1386

>>401
check the new boston youtube series on android

 No.1387

Are you interested in developing for Android or developing Android itself?



File: 1532532161630.jpg (132.84 KB, 1024x777, commodore.jpg)

 No.1289[Reply]

I've recently taken to refreshing myself on 6502 assembly in order to write software for the C64. Initially I was torn between choosing learning assembly for the Gameboy and the C64, but I figured development would be more satisfying on the C64 since I would be able to see results on the physical hardware without much hassle. There are also some features of the 6502's instruction set that I like over the Gameboy's CPU such as the index registers being very helpful with working on larger amounts of data and not being restricted to perform comparisons exclusively on the accumulator. I believe the zero page is larger on the C64 as well as not being forced to transfer and execute a subroutine in the zero page just in order to update sprite RAM.

Anyways, if there are any of you that have experience with writing assembly for 8-bit platforms I would love to hear about your experiences with it.

For those who would be interested in learning assembly for an 8-bit platform here are some resources for learning how to do so:
6502 assembly crash course - https://skilldrick.github.io/easy6502/
C64 specific tutorial - https://github.com/petriw/Commodore64Programming
Links to various GB assembly tutorials - http://www.chrisantonellis.com/gameboy/
Platform agnostic tutorial for Z80 assembly - http://www.chibiakumas.com/z80/multiplatform.php

If you want to learn how to program for one of these platforms but you think you can't for whatever reason, it really isn't much harder than writing C. It's probably more tedious than anything, but certainly not difficult to wrap your head around.

 No.1290

I guess I should also explain my reasoning for wanting to work primarily with 8-bit systems. It's not to make games, I'm more interested in the idea of making a computer myself from scratch (or pretty darn close to it) and implementing a basic OS on it. Having it be centered around a 6502 or Z80 (or equivalent) makes that much more approachable and easier to plan out as a whole. There's no overwhelmingly complicated features to these chips that makes it hard to visualize how they work like with modern CPUs and whatnot. You've got a CPU, you've got RAM, you've got an IO controller(s) and there you go, you've got the basis for a fully functional and "useful" computer.

 No.1291

Wish I could help but I only know Atari BASIC :)

 No.1292

>>1290
You might try putting together a ZX Spectrum clone. Cloning the Spectrum was practically a cottage industry in Eastern Europe 30 years ago and people are still doing it.

 No.1293

>>1292
I hadn't even thought about that, that's not a bad idea. In fact, I just did a quick search and found this little nugget: http://www.pestingers.net/pdfs/other-computers/build-your-own-z80.pdf . It's not specifically aimed at the ZX, I don't think, but I imagine it's incredibly helpful all the same. I'll have to keep that in mind, thanks!

 No.1331

>>1290

Not sure if you already know about it but http://6502.org/ is an excellent ressource when it comes to homebrew 8-bit systems. Beware of the C64 as a dev platform since it is mostly built on custom chips and has atrociously slow mass storage. For a simple starting point Grant's boards are quite nice: http://searle.hostei.com/grant/

Good luck with your ambitions hopefully you will keep us updated on eventual updates.



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