[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


What are you koding on, /g/?

Previous: >>108101763
>>
>Wednesday Edition
>>
File: WQL9ZbRmYXI-HD.jpg (103 KB, 1280x720)
103 KB
103 KB JPG
>>108134603
Koding accelerator turned up to 11!!!

https://www.youtube.com/watch?v=WQL9ZbRmYXI
>>
>>108134703
Wednesday is the day of the week between Tuesday and Thursday. According to international standard ISO 8601, it is the third day of the week. In countries that adopt the traditional "Sunday first" convention, it is the fourth day of the week. Continued in Wikipedia
>>
Claude unironically shat out a feature I would spend a week or two writing in half an hour. I just need to clean it up a little.

I'm not a gret programmer though
>>
>>108134737
>doesn't post the code
And we all know why.
>>
File: ANP-516023968.jpg (1.21 MB, 3840x2560)
1.21 MB
1.21 MB JPG
Claude blaast publiek omver bij eerste publieksshow: dit is zijn ...
>>
>>108134603
>>108134603
> 1 gorillion threads on the board about gooner image generation and complaining about social media and YouTubers and 1 thread taking about programming
What the hell happened to this place
>>
feet
>>
>>108134603
She height mogs 99% of /g/
>>
ClaudeCuck
>>
>>108135845
I don't even know. I only came back here a few days ago and dpt is extremely fucking slow and one thread lasts for days.
BACK IN THE OLD DAYS we had multiple threads per day iirc
>>
>>
>>108134603
She got short hair. Ooooooooo, yes! :)
>>
this project can suck my dick. im not doing it
CMD is playing around too much and I have lost control of the project and every fix on fix is just adding up to turn it to more shit and its irredeemable
>>
>>108136420
Sounds like vibe coding ngl.
>>
I only use Python because it's the only language a white man should use. There is literally nothing you can't code in python.
>>
>>108136458
>Ngl
You have to be over 18 to post here, Champaroo
>Vibe coding
Works perfectly fine if you know what you're doing. The problem is most vibe coders don't even know what an object is. When you have idea what you're lookingnat or doing, no amount of "Claude make it do this" is going to result in success.
>>
>>108136467
low quality bait
>>
>>108136489
Sounds like cope ngl.
>>
>>108136489
>You have to be born in 2008 to post here
>>
>>108136758
It used to be
>you had to be born before 9/11 to post here
>you had to be born before the OCB to post here
>you had to be born before Reagan's second administration to post here
>>
>>108137055
Back in my day when the site first went live you had be born before the Bay of Pigs to post here
>>
>>108137055
>OCB
what's that?
>>
>>108137312
https://en.wikipedia.org/wiki/Oklahoma_City_bombing
>>
Why is linux so complex? Can't they just make it simple?
>>
Coming from Doom Emacs to Neovim (especifically using Lazyvim), how do I get something similar to vscodes builds? Or Sublime Text's Build Systems? Or Emacs' Compile Command?
The latter would be better if I had the choice.
For those who have never used Emacs, the compile command is you press a keystroke and type the command and the output is shown in a new horizontal small buffer/window. So I can do something like

Compile Command: cargo run
or
Compile Command: Odin run .
>>
>>108137492
>Can't they just make it simple?
It already is. You're just retarded.
>>
>>108137492
Computers are complex, and so are the myriad users that use them. Not to mention all the various developers that work on it unpaid out of their own interest, which means everyone does whatever the fuck they want.
>>
>>108137510
kill yourself
>>
>>108137510
I swear the average IQ has plummeted over the years/generations. To claim modern Linux is "complicated" is beyond amazing to me. People can barely use their cell phones anymore, don't know how to copypaste a simple file, can't even use Outlook without a guide.
It's mind boggling how stupid people genuinely are these days. Not just when it comes to tech, but generally all around.
>>
>>108134603
I'm doing a Forth block editor, with ui a bit like lotus123 and some features like in acme editor.
>>
>>108137607
a modern sports car is slower than a horse if the horse moves directly to the destination while the car keeps stopping, reversing, going in the wrong direction, hesitating, going in another wrong direction, etc.
with doomscrolling distractions
200ms of IQ 100, applied to a problem, is much less impressive than 6 hours of 100 IQ applied to the same problem, and people are more willing to stop at 200ms, and after distractions the guy that only spends 200ms thinking about any particular thing, still feels as intellectual exhausted as if he'd done work
>>
>>108112624
holy shit, it really was vibe coding
https://forum.nim-lang.org/t/13706#83119
>The LLMs I was so confident in using didn't point out the mistakes.
I only occasionally pay attention to Nim, didn't realize this guy was saucing so hard
>>
File: 1752499831739471.gif (1.1 MB, 720x540)
1.1 MB
1.1 MB GIF
>studying concurrency
>>
>>108138202
You're the fag from last thread who asked about mutexes?
>>
>>108137510
>She has never done any kernel dev
Well, before that I thought linux is easy, too. You're welcome :-)
>>
>>108138229
Be quiet faggotron
>>
>>108138390
And if not?
>>
>>108137607
You stupid fuck. I wasn't talking about GNU. I was talking about the kernel.
While it is good engineering, it's still a huge clusterfuck and kernel dev is hard
>>
>>108138449
>While it is good engineering
A simple strace of any random program belies you.
>>
>>108138198
The fucking author of the language generated a new GC using AI?
>>
>>108138449
>kernel dev is hard
You didn't graduate high school did you? You loving your single wide mobile home, with your disability checks and your pit bull?
Should have stayed in school Chud. Low IQ poors like you will never understand
>>
>>108138517
I did fuck your mom a couple of times tho. I think that counts
>>
is stateless concepts pretty much none existant in GUI desktop apps?
>>
>>108138560
>he really is underage
>>
>>108138567
nope. I am 18.035
>>
>>108138565
>is stateless concepts pretty much none existant in GUI desktop apps?
worse
>>
>>108138494
Nim's time-immemorial problem has been a lack of thoroughness in development, that incomplete development is checked in and then never followed up on. This is the whole language, seen in the compiler, the stdlib, the runtime, the codegen, the documentation, the tooling.
looks like AI's initial contribution is to make a wobbly gear spin faster and wobblier, which is naturally going to break the machine faster.

Still, I have more faith in Araq than in most of his competitors. Time could come that Nim's standout feature is that it doesn't transpile to C anymore, when C compilers have totally collapsed under AI slop and backdoors and other bullshit.
>>
Yoooo I was dissing and jestermaxxing the cli brigade and the uncs went like "shut up you gui-tard" :crying:
>>
>>108138728
I can really feel the IQ points the zoomers are officially lacking now.
>>
started on the inaugural prototype of my schizo language, a textual, homoiconic dataflow graph reducer. there aren't any showstopping features in it, so hopefully it won't take long to get a full prototype working. i am creating it in luajit to utilize luajit's FFI so i can give future iterations a meaningful memory model early on.

in essence, the language is like exposing compiler behavior as a first class property. the language *almost* resembles an SSA IR.
>>
>>108138845
>exposing compiler
nelua?
>textual graph reducer
a term-rewriting language?
>>
>>108138855
no, the language will be entirely self-hosting, luajit simply has a really good and fast FFI (and i'm familiar with it) so it is desirable for iteration until i get a proper interpreter written
>a term-rewriting language?
yes; where graphs are simultaneously symbols and structures of behavior/memory
>>
>>108138824
Especially hilarious when they try to hide it with irony.
>>108134603
Is Jai out yet? No point coding online until jai releases.
>>
>>108138898
no it is not, but Thekla recently announced the game they've been working on, and i imagine they'll both release around the same time
>>
>>108138915
Nice. I wanna do intermediate mode GUI programming with introspection. Rust, zig, odin. They are all just pale imitations of Blow's genius.
>>
Some ramblings on databases:
The more experience I gain around databases and their usage, the more I feel like they're just not a proper solution to data-storage at scale.
The same way pre made UI frameworks or game engines anre't a proper solution once you want to do things at a certain level of sophistication.
The same way garbage collection or RAII isn't a proper solution for systems-level programming.

First you have to have a second process to "run" the database. Then to interface with that datastore you need to either embed a not-really-standardized-DSL in string literals in your code, or have some (probably very complicated) solution to generate that DSL.
Both ways of doing things bring a whole slew of issues with them.

Then there's the problem of the relational data model just being god awful at modelling certain things.
Want to store heterogenous, hierachical data in your relational databsae? Have fun, it's gonna be a massive clusterfuck.
Then there's the issue of the code and DB schema needing to be in-sync.
Then there's the problem of the core of your application now being a gigantic external dependency.
And then there's the issue of migrations, with all the complications around that.
>>
>>108138964
Sometimes I feel like devs of a higher caliber would be better off if they wrote their own datastore, which could have a proper specialized API in an actual programming language, because it wouldn't even be a separate entity from the rest of your application.
You'd obviously still want to change the shape of your data now and then, but since you'd be in full control of the datastore you could just adjust the code and do it in a way that existing data can still be read properly, like with any other versioned serilization format.
The obvious downside is that getting a custom solution performant and reliable requires specialized talent and you can royally screw yourself over if not done well.
If you can get it right though, you should be able to have unbeatable performance and no headaches around all the complications of traditional databases.

But when I look around feel like no one even considers this. Using a database is just presumed to be the only viable solution.

The crazy thing is that DBs also aren't all that great for the other end of the software project spectrum.
Want to write a small simple program to or manage some data?
A database would be a massive hassle to setup and for lot's of usecases you'd be better off just serializing your data as json or xml.
SQLite is kinda an exception to this since it's more like a binary serlization format than other databases, but the point about having to use a DSL for data definition, querying and modification still stands.

Having a procedural DSL to define the shape of your data is also totally backwards. If you're going to have a DSL at all, why not just let me describe the shape of the data? like with XSD schemas or protobufs.
And I don't even think SQL is all that bad as a langauge. It's great for interactive use. But having to embed another language inside your program just adds friction and problems everywhere.
>>
>>108138956
i dunno, jai doesn't really seem all that special, you can already just build your own renderer in C lol. the hard parts of any project has very little to do w/the language. i just hope jai has a well-defined ABI and doesn't lean in the rust direction
>>
>>108138996
ignoring your first part. To your second part I believe you can pass a jai struct to any c function
You have slightly larger binaries and lose a general register (to hold the context pointer) I think.
>>
I hate v4l2, gstreamer, ffmpeg and all that shit so fucking much man.
Took me all fucking day to get that shit onto a webpage. The poor 600MHz quad core goes to about 70% when I open the webpage, but that's fine.
It's streaming raw rgb565 right now to mjpeg. It's too slow for h264.
I'll do a cute little webpage now for the controls and image and then we try h264 or jpeg in hardware
>>
>>108139149
Woopsie. That was the video from yesterday.
Well today doesn't look that much different, because I was stuck on deciding colorspace and trying to get a little less CPU usage, but apparently that's not possible without hardware encoding
>>
>>108139149
>red is 5a 54 48
>which is almost gray
I think your colors are fucked up in general.
>>
>>108139180
Nah, that's the ov5467 sensor (and maybe my settings for it)
>>
>>108138845
>a textual, homoiconic dataflow graph reducer
but why?
>>
havent written a line of code in 2~3 years due to depression, alcohol and jerking off
what are some good projects to get me back in track?
>>
>>108139355
turned out to be a good way to represent programs
>>
>>108139438
how so?
>>
>>108138964
Complexity? In my non-trivial production software? You don't say.
>>
>>108139823
precise + frictionless, at least in principle
>>
>>108134603
I like her
>>
>>108139893
I don't see what problem does it solve.
>>
File: ihaveabigcock.jpg (71 KB, 1300x956)
71 KB
71 KB JPG
Who's assigned to night shift today???
>>
>>108140101
your mom
>>
>>108140158
Frag meinen Psychiater, meine Sektlaune hält ewig
Plus das mit dem Fetten-Frau'n-Fetisch hätt sich auch erledigt
>>
>>108140192
no speaky espanol
>>
I used to be obsessed with writing native code in C/C++ but honestly after using hot reload with interpreted languages I've found them to be better simply thanks to that.
>>
>>108140287
If only dynamic linking existed. Oh wait, it does.
>>
File: Acrobat_jYC3AE2s5h.png (194 KB, 1085x1308)
194 KB
194 KB PNG
fun!!!
>>
>>108140357
This can't be done while stepping
>>
>>108138964
What scale? If you're not Google then relational works fine, handling millions of records. You can get amazing mileage out of it if you're not retarded and ACID compliance guarantees your data is never fucked.
>>
>>108140398
Yes it can, you can call functions in the debugger.
>>
>>108140489
Java, Java, Java and maybe C++.
>>
So I just got hired by the new owner to modernize a very old company. His son is someone I know through mutual friends. They only have five employees, and they have all been there for around 20 years. The entire stack is Java. Clicking almost any button takes seconds to load the next page, and the app feels like it came straight out of 2005.

What surprised me is that the senior dev who got assigned as my buddy is genuinely excited to update things, and I have his full support. Even so, I want to move in a friendly, respectful way so everyone gets on board without feeling like they are being pushed off a cliff.

My background is mostly Next.js and TypeScript. I also use a lot of Python, but it probably is not the best fit here. This is a web app used by banks for banking workflows, with databases, integrations, and everything that comes with it.

A friend of mine runs an international money transfer company, and they use Kotlin, which he praises nonstop. Should I try to push for Kotlin, either full stack or just for the backend? I cannot even print “Hello, world” in Kotlin yet, but I am confident we could learn it quickly. It seems like the perfect middle ground because it is completely interoperable with the existing code and far easier for Java developers to transition to than a completely new ecosystem.

>Just stay on Java and remake or improve the codebase
I have considered that, but I really do not like Java. I also think it is weaker from a marketing perspective compared to saying we are on a modern, "better Java" stack.
>>
>>108140532
>>108124027
>>
>>108140532
I've seen this before a couple days ago. Is this a new copypasta?
>>
>>108139949
it is designed to explicitly leverage real time compilation (this is its main purpose) and, once it is fully engineered, it should bridge the gap between low level and high level languages by having something that is as abstract and easy to write in as Lua, as feature-clean and intentional as C, and at least as fast as any compiled language, with just as much specification over e.g. memory. there's nothing that exists right now that fills this niche; closest you can get is LuaJIT w/its FFI, except it exposes the FFI through Lua and it is not fun to work with
>>
>>108140260
je ne parle pas francais
>>
>>108140679
based you should never pass pearls to french swine
>>
>>108138202
how exactly are you studying concurrency? I'd like to do some studying as well. Share your resources?
>>
>>108140776
>how exactly are you studying concurrency? I'd like to do some studying as well. Share your resources?
dude you have two eyes just study too different things at once. done. concurrency. or is that paraplegia? I always get those mixed up
>>
>>108140776
Concurrent data modification = Race conditions
Atomic operations = No race conditions
VOILA
That's pretty much all there is to it
>>
>>108140727
try:
francais
except:
pass
>>
>>108140557
so?
>>
>>108140874
try français () with _ -> ()

please use the French language, not the Dutch one
>>
>>108140937
>ditch francais
if you say so
>>
File: 1763801850817958.png (32 KB, 130x131)
32 KB
32 KB PNG
>>108140776
I'm studying apple's concurrency APIs for Swift. Sorry to disappoint you. They get heavily into detail behind the basis of concurrency but it's all Swift specific so you'll have a hard time following along.
Apple also has like 3 different APIs for this shit.
>DispatchQueue - Simplest, "old" method, just assign a workload to a thread and then call the task. No data race protections. (This is the one I'm most familiar with)
>New Async / Await API - more modern concurrency API
This one is really complex because there's in built data race protections at compile time. You are not allowed to compile code that could cause data races. They enforce this by preventing asynchronous functions from accessing shared state, making you to conform all the data an asynchronous function uses to a "Sendable" protocol (you have to make an unmutable copy of the data before calling any of the functions, async functions cannot access data from outside their specific thread whatsoever), there's also a bunch more bullshit to control threading and task groups.
>Combine - built on top of async / await, just some more keywords and built in methods that help you coordinate data across multiple classes

>resources
Apple came out with some tutorials themselves. They're not long but they're in depth and explain concurrency concepts welll.
https://developer.apple.com/videos/play/wwdc2025/270/
https://developer.apple.com/videos/play/wwdc2025/268/
the documentation is also good but it's brief
https://docs.swift.org/swift-book/documentation/the-swift-programming-language/concurrency/
Hacking with Swift is the goat of all websites for learning literally everything related to swift
https://www.hackingwithswift.com/quick-start/concurrency
I'm also reviewing this guy's videos, he does a great job at explaining shit with examples similar to WWDC style but far more in depth (he's White, dw it's not jeetshit)
https://www.youtube.com/@SwiftfulThinking
>>
how do apps generally structure their projects in terms of features?

For example through the ui the admin user creates another user, in the backend would you have a class that has injected database, the data models (to update the table of users and any other related models dependent), cache systems, notification service to email the user been created etc

I currently have something different where a lot of this logic is split off and calls one another but its already spagetti and falls appart when you want to do the same thing from a background thread (data models doesn't like this)
>>
>>108140532
You have your answers, retard.
>>
>>108141272
we're an AI and he's rolling for another answer.
could you forget the context already, please?
>>
>>108141279
>rolling for another answer
Imagine requiring the buy-in of an LLM to act.
>>
>>108138517
Define hard.
>>
File: entertainment.jpg (37 KB, 367x550)
37 KB
37 KB JPG
>>
>>108140640
I have no idea what a dataflow graph reducer is, nor what is your point here.
Is it an optimizing compiler IR? Why are you talking about it like a language as in compiler front end? Whatever graph compiler IR you want, there is no need that the language should be like that.

>real time compilation
is this how you call a JIT?
>it should bridge the gap between low level and high level languages by
what comes after "by" isn't an explanation of how it bridges the gap
>there's nothing that exists right now that fills this niche
what niche?
>closest you can get is LuaJIT w/its FFI, except it exposes the FFI through Lua and it is not fun to work with
what does a native calls have to do with a language front end or compiler IR?
>>
>>108141388
shutup loser
>>
>>108141495
keep seething
>>
>>108141522
oh no no no fuck you
>>
File: 1753921601635349.png (340 KB, 2250x1480)
340 KB
340 KB PNG
no matter how many LC problems I solve I always see shit like this and go back to feeling like a useless retard

https://leetcode.com/problems/champagne-tower/description
>>
>>108141553
ai can solve this
>>
>>108141551
So you think what the other anon has said makes sense, uh?
Do (You) know what a dataflow graph reducer is then?
>>
>>108141495
>oy vey, someone is trying to have an intelligent conversation
>shut him down
>>
>>108141604
yes
>>
>>108141660
>say retarded shit
>get called out
and now you cry about it pretend to be someone else
>>
File: 1740398775167455.png (128 KB, 833x1307)
128 KB
128 KB PNG
>>108141567
>>
>>108141757
>>say retarded shit
name it
>>
>>108141757
>and now you cry about it
that's exacty what you are doing
>>
>>108141752
No you don't. You're shitposting.
>>
>>108141843
>>108141839
you are both retards pretending to be smart, not my fault
>>
>>108141757
>no intelligent conversation allowed
>>
>>108141777
>hides the model used
Show it
>>
>>108141848
if you have to call your own convo intelligent, then it ain't
>>
>>108141845
Actually yes, I would pretend to be smart if the original conversation continued but instead I'm shitposting back at you.
>>
>>108141853
>attempt at goalpost moving
>>
>>108141845
as opposed to your low effort posts?
>>
>>108141853
its the default model in a brand new incognito window. so 5.2
>>
>>108141881
>>108141871
even if it is 5.2 you still didn't show the reasoning mode

>use retarded model or reasoning mode
>guys ai is le dumb
an hero
>>
>>108141856
>pretending to be smart in my comparison to my shitpost in reponse to his shitposts in response to my shitpost in reponse to his derailing of me trying to have a conversation
Wow your posts are so smart.
>>
>>108141856
>I'm writing words that talk about nothing but you're the dumb one.
>>
File: file.png (70 KB, 756x848)
70 KB
70 KB PNG
>>108141892
I guess chatgpt is just retarded
>>
I still don't know what a dataflow graph reducer is.
>>
>>108134603
nothing
>>
>>108141777
>>108141915
also worth pointing out that both of these models immediately identified this as the champagne tower problem. They already had an idea of how to solve it because they had seen it before.
>>
>>108141892
>still attempts to move goalposts
>still doesn't work
Yes, an hero. But you.
>>
>>108141953
which is good, super memory is a feature
>>
>>108141960
>no u
lol are you even trying?
>>
>>108142033
>identifies the problem
>had a cheat sheet from seeing it before
>still gets it wrong
>>
>>108134603
think her milk would be good, or stale?
>>
>>108142060
it would be lustful
>>
>>108142034
Are you, goalpost-mover?
>>
>>108142049
but it didnt
>>
>>108140899
>A friend of mine runs an international money transfer company, and they use Kotlin
>A friend of mine runs an international money transfer company, and they use Rust
What are you doing.
>>
>>108142209
Praying every day, it seems.
>>
>>108134603
Where can I find a list of stuff she has programmed? Does she have a github?
>>
File: car-wash.png (33 KB, 970x249)
33 KB
33 KB PNG
>>108141915
>>
what's a good chatgpt prompt for asking questions about programming to make it tell the truth?
>>
>>108142267
>walk there
>drop off the car
Your poor back.
>>
>>108142209
Why not answer the actual question? No intelligent discussing allowed it seems.
>>
>>108142267
>ask retarded human question
>retards answer retardly
>humans are retarded
retard
>>
File: cope.png (19 KB, 742x263)
19 KB
19 KB PNG
>>
Behold, ladies and gents:
An autistic answer: >>108142322
A non-autistic answer: >>108142299
>>
>>108142359
stop trolling, we all know you use that local model to goon
>>
>>108142257
there is this one but I imagine that if it was really her's there would her picture
https://github.com/karliekloss
>>
File: 1762080312947632.png (39 KB, 845x694)
39 KB
39 KB PNG
why does it mark random parts of its answer as random languages

makefile???
>>
>>108142645
syntax highlighters usually work with a lexer, not a parser
>>
Just got back from a software engineer interview. The technical screening was standard, but then HR pulled a "new heuristic" pilot. She asked me to open ChatGPT and generate a profile based on my entire chat history right in front of them. I refused since that's basically a diary. They immediately shut down and ended the interview early. Is this actually the future of hiring? Demanding access to private AI logs feels insane.
>>
>>108142729
>I don't use socials or LLMs
There, was that so hard?
>>
>>108142772
>Just tell them you don't have socials
lol

>Just tell them you never used ai
extra lol
>>
>>108142785
Seems like the problem is in your head.
>>
>>108142807
ok boomer
>>
>>108142817
OK, zoomer: >>108138824
>>
>>108142826
I will be fucking catgirls while you will be dead
>>
>>108142875
Not if your suicide rates go up even further.
>>
File: benjamin_kirkenyahu.webm (892 KB, 1358x720)
892 KB
892 KB WEBM
>>108134603
I'm adding a vertical layout for mah frame analysis web app so its easier to view tall structures.

It ain't steve jobs apple UI/UX design but I'm okay with it, there's only so much you can do.
>>
>>108143286
how long have you been working on this?
>>
>>108143420
I started out like late 2024, around december I think and finished the solver and backend + basic UI around july/august 2025. Then I got bored and I fucked around with other useless projects and played vidya for months, so maybe around 1+ years. ngl, when I viewed the code again earlier this month it's so disgusting kek.
>>
File: 17289434232349.jpg (63 KB, 933x933)
63 KB
63 KB JPG
total noob here
anyway I started yesterday to work on this web app that's kind of a dashboard/panel/log where I can just log the shit that I do during the day, you just have to see it I guess, imagine letterboxd except it's not retarded
https://github.com/mihail-pop/media-journal
>inb4 why reinvent the wheel
well for once it's something I actually care about it and I think it's a resonable project to learn more about web dev instead of doing your classic to-do/weather app
I'm not really following any tutorials or reading books just looking shit up as it comes and while I kinda struggle (because I obviously don't know what I'm doing it) I kinda feel it's very rewarding since I have been putting off working on this for a long time for some dumb reason
so far I've go a backend server skeleton in node.js with ejs/express running, it's for private use only and I don't really plan to publish it anywhere (it's not like anyone cares anyway)
todo:
- styling, obviously, I will probably use a template
- db, sqlite to store my shit
- api queries
I wish everyone a chill weekend and happy st. valentine's day

any pitfalls to look out for/advice from people who already worked on some shit like this?
>>
>>108144329
>python
>>
>>108144329
>total noob
>obviously don't know what I'm doing
>except it's not retarded
yeah...

Still, good on you for doing it, retarded or not. Everyone here keeps saying a project is the best way to learn.
>>
delta G = delta H - t = x: x \cdot e^i,2pi delta S
true?
>>
>>108144805
>Everyone here keeps saying a project is the best way to learn.
This.
But the crucial thing is doing the first iteration like you think it should be done. Not wasting time looking up things how it could be perfect.
Maybe just some tiny layout research, but not more. Because then you know what kinda shit you wrote and understand why other people do things differently.
Only copying is bad. Sometimes copying first and then reinventing can also work, but it's not as rewarding imo
>>
>>108144821
>>>/r/maths
>>
I wanted to have an id that's resistant to collisions if different clients create new entities at the same time, but also as well-ordered as possible. I have a local 128 bit current_id and add a random number between 0 and u64::max when I want a new one. And whenever I see a new id from the network, I bump it to match it. This way the collision chance is 1/u64::MAX and you have at least u64::MAX entities before overflow.
It's cool that 128 bit integers let you do things like this, but now I'm wondering if it wouldn't have been better to just use a nanosecond timestamp and assume that people wouldn't create entities in the same nanosecond. Or maybe a timestamp + random bits.
>>
>>108145231
base64 and entropy
>>
based64 has 0 entropy (if binary is 1 entropy)
>>
File: Snowflake-identifier.png (23 KB, 1417x407)
23 KB
23 KB PNG
google for twitter snowflake ID
https://en.wikipedia.org/wiki/Snowflake_ID

essentially the ID contains bits for the timestamp, bits for the ID of the request (0, 1, 2, 3 if you have request arriving in the timestamp unit (microsecond, nanosecond, ..)), bits that indicates the thread ID (or machine ID, or ...)
>>
>>108145655
>>108145284



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.