[ home / rules / faq / search ] [ overboard / sfw / alt ] [ leftypol / edu / labor / siberia / lgbt / latam / hobby / tech / games / anime / music / draw / AKM / ufo / 420 ] [ meta ] [ wiki / shop / tv / tiktok / twitter / patreon ] [ GET / ref / marx / booru ]

/tech/ - Technology

"Technology reveals the active relation of man to nature" - Karl Marx
Name
Options
Subject
Comment
Flag
File
Embed
Password(For file deletion.)
What is 6 - 2?

Check out our new store at shop.leftypol.org!

| Catalog | Home
|

File: 1787991049489-4.png (383.11 KB, 526x640, ClipboardImage.png)

 

expectation
>oh i'll learn to code; that means i'll learn the syntax of some language then start building stuff
reality
<oh i'm installing a bunch of libraries and dependencies and package managers and IDEs and other garbage I don't want in order to follow tutorials, and the commands i'm being told to use aren't working and the error messages are really long and impossible to paste into a search engine and full of doxxing details about my file system
11 posts and 1 image reply omitted.

Tbh learning the syntax of a language is mostly trivial, books involve frameworks and IDEs and shit because if you’re learning to program for a job then the experience you’ll be asked to demonstrate will revolve around the environment since that’s a much larger information space than language syntax.

That being said, probably best to just read books on specific kinds of programming concepts (commonly recommended is Data Structures and Algorithms, but think networking or multiprocessing or operating systems) rather than general language books to gain the knowledge you seek.

>>34369

i don't know if i would call it a love letter, just an explanation of why pascal is a good teaching language for novice programmers. obviously it's not the most useful or flexible language and it has a lot of annoying limitations that c/c++ doesn't have especially ansi standard pascal and it only really became a useful practical language through non-standard extended dialects such as turbo pascal/delphi/freepascal, but for someone who knows nothing about programming its easier to start with pascal than it is to start with c or c++ and get bogged down in all the various quirks and gotchas of those languages, especially c++ which is just footgun city.

>>34370

delphi and pascal are the same thing, delphi is just the name of borland's later pascal dialect which succeeded turbo pascal. and pascal/delphi are still used quite heavily today believe it or not, particularly in eastern europe. pascal was huge in the eastern bloc due to being taught extensively in public schools and institutes in the ussr, and borland turbo pascal was extremely cheap and also very easy to pirate and it ran on a single floppy disk and could compile code very fast on a shitty cheap IBM PC clone with no hard drive, so pascal sort of became the lingua franca of eastern european programmers.

Learning to code, I started with Morse code first — dots and dashes for each letter, easiest code there is. I practised with https://morsecodetranslatr.com/ and it showed the text, the code, and the audio together, which made learning much easier.

You can avoid this by not learning new/niche languages or hellish webdev/modern-day high-level programming languages such as JavaScript or Python

Simply, instead of torturing yourself with this - learn C, C++, Rust or your desired flavor of Lisp (I prefer GNU Guile Scheme LISP)

You will not need a quintillion libraries or some weird IDE - you will need vi/vim/neovim/emacs and a compiler, have fun.

>>34232
Rust?



 

its insane, how efficient local llms have become. i can run on my 180€ samsung a17 my local llm. an uncensored model which fits on a single CD!

i am really shocked how smart such a tiny model can be!
19 posts and 2 image replies omitted.

>>34874
i'm not really concerned for you, or your mental well-being. i just don't think it's useful, entertaining or interesting in any way. i know this place is an echo chamber at times, when i notice that, it stops being a fun place to be in, so i favor insulting people on xitter most of the time. i think my point is that i'd choose more fun ways to poison my brain, like stimulants or hardcore pornography.

>>34869
Because an accounting course should not have a pointless AI section. This shouldn't even count as a technology, it's an affront to technology. AI is ludditic in nature because it takes resources away from real technology.

>>34876
ja, das klingt plausibel. letztendlich müssen wir alle irgendwie unsere zeit vertreiben.

>>34878
AI isn't a "real technology", but you still use tons of products like Linux that were made with AI. Interesting.

>>34851
alright. now train one, dumbass.



File: 1756414625701.png (571.1 KB, 1280x720, ClipboardImage.png)

 

Machine Learning general. So anybody here actually do any ML programming? I just installed PyTorch yesterday and actually started training some shit. It was pretty easy to get working. But… I am a dumb dumb, so I am going to go back and learn all the basics I think, because I have delusions that maybe I'll be able to do something interesting with it, but I know unless I'm really knowledgeable about it, the probability is less than zero.

I know that thread about bitching about ML is the most popular thread on /tech/ but I thought we should have a separate thread for people actually programming it.
55 posts and 4 image replies omitted.

Necessary precondition but not sufficient

Also public housing, 'member 5 stories optimal for shared air-conditioning and heating

Also office hours for the following 5 and a half hours

Any questions?

4 and half left of office hours for ML questions

3 and a half hours
🤭

File: 1795271225149-2.jpg (256.89 KB, 1450x1216, 可以.jpg)

2 and a half hours

Image credit 👌 >>2959276

One and a half hours of ML office hours remain
Corrected link to image: >>>/leftypol/2959276



File: 1795104627196-1.jpg (108.21 KB, 1024x765, 1795070881151.jpg)

 

why TF dont people just write raw SQL instead of xyz abstraction layers. The only thing thats valuable is maybe sanitizing inputs for SQL injections. Other than that ORMs are pointless.

>>34883
because of C and it's legacy
when languages don't have reflection (be it compile- or run- time) then you need an ORM to de/serialize to/from the sql query

I would argue that sql has failed as a concept and that each database engine should roll out their own fine-tuned binary protocol

Because it's easier and gives you less things to worry about, i.e. the reason we use any abstraction.

truke

>>34883
Learned the repo pattern from TypeORM. And dependency injection of repos from FastAPI. Where these patterns are nearly sacrosanct. As part of my efforts to not abandon negated pieces, ended up trying to emulate these with raw SQL — via pgtyped. Despite having run into issues with the translation layers of TypeORM and SQLAlchemy/SQLModel. A backport I guess?

In my most recent project anatta wanted to get the testing benefit of a functional core imperative shell — which are made much easier by the repo pattern and dependency injection. The repos just being mocked as simple functions, passed to another simple function for the tests.

On top of this I ended up using a unit-of-work pattern, and writing it as on-rails pattern wrapping all the repos all at once. The transaction doesn't need to be mocked in the test because of this, and the errors are uniformly handled, the same way as Zod errors for example — none of which reach the 500 handler in my app.

Of course protection against SQL injection was a requirement, and type safety a big added bonus. Anyway my experience has indicated that ORMs are upside down — that the full flexibility of SQL can be had with all the abstractions of your programming language of choice through something like hugsql (clojure), pugsql (python), or pgtyped (typescript).

Then again plain programming in strings is not good enough for what I've done. That would require tons of hand written boiler plate, and tools would not work on the queries.

https://gitlab.com/anatta/anatta/-/tree/main/database

>>34887
>efforts to not abandon negated pieces
Should read efforts to not abandon unnegated pieces.



File: 1794957858330-8.png (102.03 KB, 719x1031, muqy3bv2y72i1.png)

 

why is everything going through an outage right now? let's engage in wild and irresponsible speculation.
*the body was too meow too was the body was meow the body*

>>34877
i reckon its interal. The US glowies are attacking their own systems to test them with the added bonus of stirring up war propaganda.



File: 1794417039977-6.jpeg (42.36 KB, 622x480, images (53).jpeg)

 

I'm trying to run a non-linux app on linux. I found a script on the internet that does it through wine, it works fine but the issue is that it doesnt run my cracked version of the app. So I got in contact with the guy who made the script and he told me that piracy is a sin and goes against calvinist theology

So I'm looking for some linux god to show me the way.

share the script, its pr9bably not doing anything complicated

i've had no issues running cracked games on linux. pray tell, friend, what are you attempting to execute in your portable linux computing device



File: 1760128928458.png (16.06 KB, 512x512, ClipboardImage.png)

 

Why isn't it widely adopted yet? It's much better than AVIF since it's actually designed for still images, and Apple supports it natively on Safari and Photos. What's Google's endgame by killing work on support for it in Chrome?
4 posts and 1 image reply omitted.

>>31775
What's actually wrong with webp?

>>31776
In some places it might not be supported. Other than that, nothing.

>>31783
It just doesn't perform well compared to the formats it sought to replace, and has had several zero-day vulnerabilities, while being pushed by several companies that were overly enthusiastic about (tumblr, anything google, reddit, etc…) which made it seem very top down.

>>31788
I doubt its because of AVIF since it is very rarely used (due to its poor performance compared to most jpg implementations), I think I have only encountered one this year, or maybe the previos year?

Even chrome supports it now. Just gotta wait for websites to enable uploading them.



File: 1794806755950-1-0.png (10.87 KB, 1000x800, twitter_.png)

File: 1794806755950-2-1.png (8.53 KB, 415x435, 1612113866311.png)

 

I am extremely not sober so what I'm saying might not make any sense

Regardless, I feel almost like the Fediverse doesn't go far enough because its individual services still mostly aggregate hosting, indexing and presenting content together.

Basically you could have a system like
>all content of every media type is made available in a basic, minimal, standard format
>tagging and indexing is made available in a separate structure that points back to the unique identifier of that content
>everything except absolutely fundamental metadata like uid is part of that separate structure instead of the content itself
>tags can be freely adapted to any typical social media or content distribution structure, whether twitter-esque feeds, standard forum threads, etc. for example you can use tags to identify which post(s) a post is replying to. so tags can represent a simple forum thread-like structure but also a more structured reddit-esque threads-within-threads structure

So for example, instead of having a single leftypol site where everything is controlled and moderated by a single group, you have a federation of small instances that each host imageboard-esque content but also index everyone else's content. Each instance moderates its own content. The user is free to choose which instances he fetches content from and which indexes he wants to make use of to filter and find content. One instance could have a very lax low-moderation culture whereas another one could be more uptight and not only moderate its own content but also tag certain content in other instances as violating its own rules etc whereas it might not violate theirs, and users can choose to exclude that content if they want

You could theoretically adapt this to any kind of social media or content networks and basically make a freely and easily decentralizable, flexible and explorable alternate Internet of volunteer sites. Just theoretically

Or maybe I should go to sleep. Whatever

I've had an idea similar to this as well. IMO the best way of implementing it would be defining an immutable packet format, that is split into an arbitrary data part and a series of tags allowing for referencing other packets and signatures, yet excluding any overly complex features like markup or transclusions at the infrastructure layer. Linking together revisions, comments and other content types would be solved by the ability to restrict link types based on a packet's signature (i.e. a forum would be a packet, that whitelists a field for every member signature; a thread would allow replies and so on). Instances would exchange packets based on user requests and eventually prune them based on age, importance and storage limits. Clients would then retrieve packet structures by for example retrieving a thread packet's reply backlinks, which would necessitate instances providing this data efficiently, but would keep the packets self-contained and immutable.

Basically it would be Project Xanadu on a budget, consciously breaking rules 6, 9, 12, 13, as well as 3, 4, 8 and 14 depending on a configuration.

Sounds kinda like RSS feeds if you could relay posts from other feeds.

>>34847
someone should come up with a standard based on RSS and other microformats
oh wait I just reinvented OStatus from first principles



 

>buy an LG monitor
>plug it in
>windows automatic downloads drivers
>automatically installs LG software without asking user for permission
>has baked in ads
>McAfee pops up every time time on boot
>even on monitors from 2023
>harvests your data
15 posts and 2 image replies omitted.

>>34810
> tv is ideally just a monito
Absolute retardation I see.

Like why are you obsessed with defending this capitalist retard?

>>34744
Perhaps I lost the debate, but I'm not a schizo in bad need of medication, so ultimately I win

Who the fuck is steve


>>34818
i'm not OP uygha. i don't know who this steve fella is but you seem obsessed



 

8 posts and 1 image reply omitted.

It is amazing how the best softsynth in existence is free and Linux native/open source. You can do basically anything in it. I've actually been using it as basically a subtractive synth, and there are presets that emulate a bunch of historical synth sounds as well. Oh, and what's even more amazing is that the 2nd best softsynth in existence, Surge, is also free and Linux native. https://surge-synthesizer.github.io/manual/

>>34386
>I also prefer to have a grid sequencer for my drum machine as well.
Bitwig has one of those built in IIRC.

https://www.linuxmusic.rocks/
https://linuxsynths.com/
Couple of Linux plugin databases. Linuxsynths.com seems to have slightly out-of-date info.

Really good instrument

>>34816
Not mentioned in the video but right click note velocity and click "add automation lane". You can do this for each note



Delete Post [ ]
[ home / rules / faq / search ] [ overboard / sfw / alt ] [ leftypol / edu / labor / siberia / lgbt / latam / hobby / tech / games / anime / music / draw / AKM / ufo / 420 ] [ meta ] [ wiki / shop / tv / tiktok / twitter / patreon ] [ GET / ref / marx / booru ]
[ 1 /2 /3 /4 /5 /6 /7 /8 /9 /10 /11 /12 /13 /14 /15 /16 /17 /18 /19 /20 /21 /22 /23 /24 /25 /26 /27 /28 /29 /30 /31 /32 /33 /34 /35 /36 ]
| Catalog | Home