[ kaitensushi ] [ lounge / arcade / kawaii / kitchen / tunes / culture / silicon ] [ otaku ] [ yakuza ] [ hell / lewd ] [ ? / irc ] [ lewd / uboa ] [ x ]

/silicon/ - technology

from the trenches
Name
Email
Subject
Comment
File
Embed
Password (For file deletion.)

• Files Supported: webm, swf, flv, mkv, mp4, torrent, 7z, zip, pdf, epub, & mobi.
• Embeds Supported: youtube, vimeo, dailymotion, metacafe, & vocaroo.
• Max. post size is 10MB / 4 files.

Remember to keep it cozy!

We just did an update! Let me know if anything breaks. ~Seisatsu

File: 1476067336339.jpg (108.63 KB, 500x375, 1440248459502.jpg)

 No.257[View All]

Let's talk coding and software, sushis, because I don't do enough of it and I really should. Let's hear about projects you're working on, stuff your coding, learning. Trade secrets, info, tips, whatever. Programming isn't something that should be done alone in a corner.

I guess if we need a thread starter, I want to brush up on my coding skills. I want to find something to play around with, something not as mainstream as the stuff like Java and C, but will still be useful in a professional setting, something I can make usable stuff out of.
61 posts and 19 image replies omitted. Click reply to view.

 No.1489

File: 1574514087770.jpg (2.6 MB, 4032x3024, 20191115_102740.jpg)

>>1481
Journal, list projects and focuses, wake sleep leave arrive routines, blah blah yadda…
When I tried forth it felt like trying to do things with one hand. A cool experience and a nod towards a lower level, but not something I'd describe as useful in itself. Did I miss the point?
I did an electronic course and really liked coming up from below rather than descending like I used to always do. Now it's like I'm filling in the middle, I can almost see all the way from voltages to object abstractions, with only specifics of architecture and kernel and os stuff remaining fuzzy. I wanna refine my study habits…

 No.1498

Not >>1481 but,
>>1482
Your second paragraph is me so hard it hurts. Here's to sushis like us making meaningful changes in 2020 and living life with more vigor

 No.1511

File: 1579546041139.png (130.41 KB, 267x377, C .png)

Hey sushis I wanna learn to know C++… Is the C++ Primer by Lippman still a good book even though it is for an older version or would it be better to use a newer book? Kinda wanna learn C++ cuz apparently it's used a lot… only know a little Python…

 No.1516

File: 1579757499756.gif (1.15 MB, 498x286, hi.gif)

>>1511
If you want to go for a C family language I recommend just sticking to C, there's a good saying that C will give you all the rope to hang yourself and C++ will give you infinte rope and then strangle you when you fuck up or something like that. Only learn it if you want to do game development.
C is nice for low level stuff too, and if you work in tandem with assembly you can have some fun with learning about system kernels, memory management etc etc if that's what you're interested in.

Meanwhile I've been making my own bot for dickcord (yes I know, the horror) to help me learn JS which is turning out nicely, except that I'm struggling with a cooldown timer for bot commands…
Oh well I figured out if/else statements I'll probably handle this just fine. NodeJS is surprisingly comfy especially when running on top of Nix. Ahhh the comfiness of development~
Anyway sorry for my rambling I just haven't shared stuff in a while

 No.1517

>>1516
>C will give you all the rope to hang yourself and C++ will give you
>The motivation to go for it
ftfy

 No.1520

>>1511
Lippman is C++11 right? That's fine. The important thing is to avoid any C++ examples or advice from before that standard.

>>1516
It sounds like he's interested in existing C++ code bases. This is very poor advice for that.

 No.1521

ITT: People who care more about the technology than the actual product they are creating.

 No.1522

>>1521
The medium is the message, don't you know?

 No.1526

>>1516
For cooldown you can just save the time the command was last used and then on the next invocation check if sufficient time elapsed since that.

 No.1535

I recently started working on improving OpenIB and plan to release a new fork at one point.
https://9san.ch/g/

 No.1558

I've been working on learning NodeJS web development. I'm currently learning about sessions and how to do logins and stuff. It's a lot of fun!(^-^)

 No.1559

I've been thinking of learning Java or C++, I don't know any programming languages and wouldn't really consider myself smart though. Are either one good languages to learn just for the fun of it and could someone lead me to good books for beginners in either language or other ones that might be better suited to me? Thanks in advance.

 No.1560

>>1559
I wouldn't recommend either to begin with tbh.
Better with something small, so you can concentrate on programming concepts rather than language quirks.
What would be better suited kinda depends, do you have some kind of goal? Just for fun keeping your brain in shape or like, games? Make a career? Web-stuff?
Is it more important that it's comfy or that it would have a larger backlog of already asked beginner questions and such?

 No.1561

>>1560
Just for fun honestly, beyond that I don't really have a clear goal in mind for why I want to learn a programming language and what I want to do with it. Basically just for shits and giggles.

 No.1562

File: 1585516925404.pdf (1.08 MB, gentleLisp.pdf)

>>1561
Neat, then you're free to get into that weird shit if you want.
I'm also kinda in it for that, the best puzzle game there is and it's for free.
Lisp was the first lang I really liked, so I gotta put in a recc. for that. PDF related is the most approachable introductory programming book I've read, wish that had been my first take on programming rather than all those failed attempts to into C++ "cause that's what the big boys use" spanning over several years.
Python is kinda a goto recommendation for beginners cause there's so much entry level resources and loads of libraries etc.
Other than that I don't really know, there's so many.
Nothing that says you couldn't start out with Fortran, Forth or J, something that way.
I guess I'd recommend trying out a couple of ones to see what's your style, go on some dates, then get really down and dirty with the one you liked the most, since that is when you get to the actual programming parts rather than just learning how to speak.

 No.1564

>>1562
I'd say Javascript is the best beginner language around. On paper it's a train wreck. In practice though, it's a REPL in every desktop browser where linking to libraries could not be easier and every web page is an opportunity to inject new features.

 No.1565

>>1564
This literally is why we cant have nice things.

 No.1598

Can you guys recommend any good books for learning Java? I'm starting my bachelor of IT in July and my Programming Fundamentals course teaches Java, I want to get a headstart on it. Thanks in advance.

 No.1599

>>1562
I read a paper once which found that 5y/o children were just as comfortable learning man of tastele programming in APL as in BASIC. It's not in my bookmarks now but I've successfully taught the fundamentals of J to beginners in year 3 (age 7-8).

Myself, I'm learning C at the moment, having always avoided it as much as possible. I'm working towards building a text editor which is kind of like Acme but for the TTY and based on text objects. It's quite ambitious but I'm not doing super badly.

Oh another thing for beginners, I hugely recommend Scratch 1.4. The modern two versions aren't so great, but that oldest one is really nice. It lacks some nice features of the latest, but makes up for it with the fact it's implement in Squeak Smalltalk. This is super nice because it means that you can access the Smalltalk machine from inside the Scratch program (shift click on the R in the logo on the top left to turn off the fullscreen). People mock it as a children's environment, but it's very powerful and comfy.

 No.1600

>>1599
You taught J to grade-school kids?
I am much interested. How did they handle it? Did they have trouble with the symbolic nature of it? Or with the abstraction?
I think one reason people have a hard time with math may be the abstract level of discourse. I often wonder how a class would go for kids that are just learning addition and multiplication, but with some elementary algebra/number theory instead of silly computation.
Obviously easy stuff. For example, Gauss' sum of first n primes. Do you think it viable, now that you've worked with children?

 No.1601

>>1600
To be honest, it didn't go too badly. Most of the class was doing Scratch, and I was in an APL phase and had just read the paper I mentioned above. Anyway a couple kids said they wanted to do "real programming" so I walked through dome sinple J with them. It didn't go too bad, although one of the things the paper said was good about APL was the lacj of familiarity with the characters; didn't seem to be a massive bother for the children. They never got much more complicated than doing factorials, details of people in the class or whatever but it ended with minimal prompting.

 No.1602

At work I'm doing some python scripts that interact with the Cisco DNA Controller´s API, seems quite easy for a non-programmer.

 No.1603

I am overflowing with code. So much code!!! I'll post some of it here someday.
>>1601
>dome sinple
My new favorite letter switching.

 No.1632

I always wanted to do something of decent size in scheme.
For example, an engine to write Text Adventures (aka IF).
I'd write all the functionality from the ground up, like a format function and an object system. I'd like to try novel ideas (for me) like continuations and metaobject protocol to innovate and add flexibility to the engine, to allow for experimentation.
I'd make it compile to Z-Machine, and in a way show that a great deal can be made with a pure R5RS system.


But I don't think I can, and I have other stuff which I need to tend to.

 No.1684

Docker is pretty damn cool. That's all I have to say.

 No.1709

File: 1606541973510.webm (532.46 KB, 480x360, indecipherable.webm)

>>257
Well really all I'm working on right now is staving off depression.
Downloaded some books n such,
Just looking for a cool linux distro so I can begin to fuck around.
Any suggestions for things I should learn?

Experience:
> some boring hs python classes
> arduino robots and such
> I know how to navigate linux filesystem

that's pretty much it
first real suggestion is what I'm sinking the next couple days into
:):)

 No.1711

>>257
god I want the fish app

 No.1712

>>1684
Docker is pretty damn shit. I have to use it at work…

 No.1713

>>1712
docker-compose does the networking so you don't have to!

 No.1715

>>1598
You probably want to learn the language itself, as well as data structures. I would recommend "Absolute Java 6th Ed." Its a good intro for beginners to programming and Java.

 No.1722

>>1709
For the depression? Exercise routine and spending time with family.

For your apparent boredom? It depends on what you are interested in.

For the Linux? Any Ubuntu based distro.

 No.1749

Not exactly programming, but I know basic CSS, and I'm looking to learn how to make it pretty. I want to learn some of the more, well I don't want to say advanced, but I guess more complex stuff that it has to offer. Like what are its limits?

Any resources for this would be appreciated. A book would be nice but I'll take whatever. Free of course :^)

 No.1750

I´ve kinda decided to make a first real project instead of just language hopping the basics over and over. Settled on making a text editor, cause it has a poetic sense to it to make something I can then write the next project inside of. Also nice with something that can be improved and twiddled with almost indefinitely with continued usage.
Right now at the stage of collecting and condensing a bunch of different resources on the hows and whys.

 No.1751

I'm reading through Effective Java, it's a pretty good source for people who already know Java but want to know best practices. I'm learning a lot, would recommend.

 No.1753


 No.1788

File: 1616038128654.jpeg (26.6 KB, 640x360, silver_1-640x360.jpeg)

In my own time I am learning assembly, particular for AVR boards. It's fun, and I get to cosplay as a spaceship engineer. I'm still a beginner at it, but the last thing I did was make a program that measures the voltage of a solar panel and displays it on an LED meter. (Brighter the light, the more LEDs light up, basically.) Works for batteries too of course (up to 5 volts).

At work I have two projects, one is really fun and the other is mundane as shit. I do telemetry decoding and simulation for rockets and spacecraft; project 1 is a python program that extracts sensor data from network packets and tracks their values over time, project 2 is… turning a big .XML file into a big SQL database instead. Makes me want to quit.

Everything we do is Python, but we don't meet performance requirements if we run on a particular server instead of the beefier ones. Feels so stupid to optimize Python code that needs to pump lots of data ridiculously fast. Also makes me want to quit.

Anyway, I want my code to be *on* spacecraft in the future, hence learning more low-level stuff.

 No.1790

>>1788
I'm sorry if this is really dumb question, i'm a big doofus with this stuff, but can't you convert or compile it or something using cython or f2py or numba or something?
Please don't bully me….

 No.1791

File: 1616274107306.jpeg (189.18 KB, 1280x720, 4779305134461.jpeg)

I'm taking a astronomical computing class that's done (annoyingly) entirely in Python. I just don't see why academics find writing code in Jupyter notebooks so appealing.

In terms of personal projects, I'm making a reminder system for the Japanese 5S methodology in C. My ability to plan and organize is garbage, so I figured its about time to offload as many of my executive functions as I can to The Machines. Eventually, I'd like to migrate it to a Pi terminal and write some more office-assistant scripts, so looks like there'll be some hardware fun down the line as well. Its kinda surreal though, writing code that I'm using as a way for the computer to program my real-life behavior.

 No.1792

>>1791
Astronomical computing, as in, radio data analysis, or what? Because I remember when I took that class we wrote the code in C, and the professor just crunched assembly. When you have terabytes, minimum, of raw binary to crunch, the fact that python is slow becomes crippling.

 No.1793

>>1792
Yup crunching radio data. We've been working with such small datasets (~few MB) that speed hasn't posed too much of a problem. With the amount people in the class have been struggling with pre-built data science packages in Python, I can't imagine how they'd cope with writing things in C instead.

Any general sagely wisdom for radio lab, O' master?

 No.1794

>>1793
Eh. I mean you're not using the same language as us and if the professor doesn't seem to care too much about how fast your code is you're also not being graded on the same criteria. If you have specific questions on the theory I guess I could give some pointers but I doubt any specific code or whatever would be useful in this case.

 No.1811

>>1790
Some small subset of our code uses numba, yes, but most of the drain on our software is just from the nature of how it is structured. There aren't really expensive calculations occurring, it's moreso that data is being copied around inefficiently, we don't store data structures in the same way that we send them out, and stupid things like that.

 No.1812

>>1791
>>1793
Most science is done in Python or R. The amount of packages with convenient tools available for these environments is immense. Any number crunching you do will almost certainly rely on C-written backends (e.g. numpy, and all of the other libraries that use numpy).

Python is also super popular in science since it's so quick to learn and to write. Plus, why roll your own statistics library in C when you don't have to? Science has to be done!

I was on the C high horse for years and years, but you cannot go wrong with Python for science. (But Python for high network throughput simulations… see my other post.)

 No.1814

>>1812
My problem isn't so much with Python or its packages. Its the language I'm most familiar with, so I use it to prototype programs pretty often.

I just don't like Jupyter Notebooks because they're used simultaneously as an editor, interpreter, markdown formatter, and (in my course) a presentation tool. I'm getting used to them now, but its a lot of features to figure out how/when to use properly. I'm used to writing in vim/nano and running stuff from commandline so I don't really take advantage of anything except the basic features every time I've tried IDE's.

 No.1815

>>1814
Ah I see what you mean. I haven't used Jupyter notebooks but I have seen a bit of it. I have always used vim too so that would be uncomfortable for me as well.

 No.1821

>>1814
RMarkdown, Jupyter Notebooks, et al are very comfy when your first concern is the science and math behind an idea and you don't really care about writing software for the particular task. "Editor" is not in the vocabulary of most computational researchers, because the computing is the means to the scientific ends they're after.

That's my assumption of why they prefer it at least…

 No.1826

>>1821
More on that:
ruby, python, haskell, and many other languages provide interactive shells that make it very easy to toy around with and try different language features and parts to see how they work, and to prototype ideas. APL also has interactive environments that predate yet resemble a lot of what the Jupyter experience looks like: tryapl.org

 No.1831

What's a good resource for learning Python?

 No.1832

>>1831
I remember using Tutorialspoint back when I wanted to learn Lua, they should probably have Python related stuff.

 No.1833

>>1831
The Python documentation has a tutorial which guides you through the basics of the language with lots of examples to copy learn from:
https://docs.python.org/3/tutorial/index.html

That's how I taught myself a few years ago. Now I write Python at work and no-one suspects me of being an amateur :)



[Return][Go to top] [Catalog] [Post a Reply]
Delete Post [ ]
[ kaitensushi ] [ lounge / arcade / kawaii / kitchen / tunes / culture / silicon ] [ otaku ] [ yakuza ] [ hell / lewd ] [ ? / irc ] [ lewd / uboa ] [ x ]