Better HN
topnewbestaskshowjobs
Log inSign up

voodooEntity

403 karma · joined Oct 7, 2019 (7y ago) · 168 submissions

Submissions

comment 1y ago · link · parent

Well i partly agree, and if i would be the one building the counterpart, i prolly had used presigned s3 urls also.

In this specific case im getting oldschool file upload request from software that was partly written before the 2000s - noones gonne adjust anything any more.

And ye, just accepting giant size uploads is far from good in terms of "Security" like DoS - but ye we talking about stupidly somewhere between 100 and 300mb CSV files (called them "huge" because in terms of product data 200-300mb text include quite alot) - not great but well we try to satisfy our customers needs.

But ye like all the other points - everything is solvable somehow - just needs us to spend more time to solve something that technickly wasn't a real problem in first place.

Edit: Another funny example. In a similar process on another provider i downloaded files in a similar size range from S3 to parse them - which died again and again. After contacting the hoster, because their logs litearlly just stopped no error tracing nothing) they told me that basically their setup only allows for 10mb local storing - and the default (in this case aws s3 adapter for PHP) always downloads it even if you tell it to "stream". So i build a solution that used HTTP ranged requests to "fake stream" the file into memory in smaller chunks so i could process it afterwards without completely download it. Just another example of : yes its solvable, but annoying.

comment 1y ago · link · parent

As someone who worked with serverless for multiple years (mostly amazon lambda but others too) i can absolutely apporove the authors points.

While it "takes away" some work from you, it adds this work on other points to solve the "artificial induced problems".

Another example i hit was a hard upload limit. Ported an application to a serverless variant, had an import API for huge customer exports. Shouldnt be a problem right? Just setup an ingest endpoint and some background workers to process the data.

Tho than i learned : i cant upload more than 100mb at a time through the "api gateway" (basically their proxy to invoke your code) and when asking if i could change it somehow i just was told to tell our customers to upload smaller file chunks.

While from a "technical" perspective this sounds logical, our customers not gonne start exchanging all their software so we get a "nicer upload strategy".

For me this is comparable with "it works in a vacuum" type of things. Its cool in theory, but as soon it hits reality you will realice quite fast that the time and money you safed on changing from permanent running machines to serverless, you will spend in other ways to solve the serverless specialities.

comment 1y ago · link · parent

Remove the medication part than this seems like a normal day in IT as a single man.

comment 1y ago · link · parent

Ic and makes sense. Need to take some time at some point and going to investigate it further - now i at least know where i gonne start. So far i just accepted it because well got enaugh projects to deal with already...

Thanks for the hint tho, if i should find the time to investigate that further this will definatly safe me some time on searching the cause-

comment 1y ago · link · parent

Thanks for the response, and ye i get that. But what my point is : i have to recompile the shaders for every game every time i start it. And as i mentioned even without updates or if i start the game multiple times in a row.

This just , from a technical stance, doesnt make sense to me.

As another commenter to my statement wrote, it might be to make sure enaugh people have the same result on my HW setup in order to make sure its not abused for maleware. That makes sense to me tho i still dont get why there is not at least some local steam client caching.

And while as mentioned this might not work with every game - well it works with none. Im talking about a quite big set of games. So maybe im just VERY unlucky and ALL games i play have dynamic params which as you mention would result in recompilations every time - will have to look if i can approve this somehow.

Alternativly, which is why i mentioned using debian, its a linux issue of some sort (just a guess).

Thanks for explaination tho

comment 1y ago · link · parent

Thank you for linking, and it makes sure to say you have to have a certain set of proofs to make sure no malicious code is injected as a precompiled shader sounds like a great place for exploitation.

Tho i would expect (naive me) that the shaders at least might be cached locally - which is not the case since as i mentioned in my comment have to recompile them for every game every time i start.

comment 1y ago · link · parent

Well my doubts are that the feature is actually working. Im not saying that precompiling shader doesnt exist neither it cant be done. But based on my comment, i doubt it working the way as described. Else i would not have to recompile those shaders every time for every game in my library.

comment 1y ago · link · parent

I don't doubt that this feature in theory exists, i doubt it works for the reasons i listed in my comment.

comment 1y ago · link · parent

I have massive doubts about the "They also seems to also be able to download the compilation cache from Steam if someone already have done the process on the same GPU + driver version."

This would imply that if I already calculated the shaders for the current game state than i could reuse them and not have to go through the whole compilation step (if no changes happen inbetween).

Matter of fact, i have to recompile the shaders on every game start for every game, even if i restart the game just x times in a row.

For context: using linux/debian and basically running everything on vulcan

comment 1y ago · link · parent

used irssi for many years, never needed a docker. *shrug

comment 1y ago · link · parent

Im struggling to find the words but ill try:

Sir : you did a fantastic job.

As someone who worked many years in web development and always was annoyed by bad UIs, this one is outstandingly good. And im not just talking about the "lookalike" itself, which is very clean and structured. Also the usability and how it "feels" to use the website is the closest to any "browser fake os" page i've ever tried (and i tried many...) - literally the only thing i was missing (and thats nitpicking on the highest level) - was when i right clicked the background that the context menu didn't have a "refresh" that i could click which sure would have no usefull effect but it would have my "using a desktop" feeling 100% round :D

So basically: great job, great website !

comment 1y ago · link · parent

Well it kinda feels like the optimal example of "if you cant make it good make it look good".

While, if the author reached its goal and is happy about it, thats fair and fine - tho for me as a former webdev looking at the source and how its build well it basically yells AI... and absolutly not in a good way....

If you really want to learn coding - put the AI aside and learn it by yourself. You may use AI to search for documentations and stuff, but dont try to learn coding style/sturcturing from it ... because its very bad at it.

comment 1y ago · link · parent

As someone who for >10 years writes golang and has written some bigger codebases using it, this are my takes on this articles claims:

:Error variable Scope -> Yes can be confusing at the beginning, but if you have some experience it doesnt really matter. Would it be cool to scope it down?`Sure, but it feels like here is something blown up to an "issue" where i would see other things to alot more important for the go team to revisit. Regarding the error handling in go, some hate it , some love it : i personally like it (yes i really do) so i think its more a preference than a "bad" thing.

:Two types of nil -> Funny, i never encountered this in > 10 years of go with ALOT of work in pointer juggling, so i wonder in which reality this hits your where it cant be avoided. Tho confusing i admit

:It’s not portable -> I have no opinion here since i work on unix systems only and i have my compiled binaries specific shrug dont see any issue here either.

:append with no defined ownership -> I mean... seriously? Your test case, while the results may be unexpected, is a super wierd one. Why you you append a mid field, if you think about what these functions do under the hood your attemp actualyl feels like you WANT to procude strange behaviour and things like that can be done in any language.

:defer is dumb -> Here i 100% agree - from my pov it leads to massive resource wasting and in certain situations it can also create strange errors, but im not motivated to explain this - ill just say defer, while it seems usefull, from my pov is a bad thing and should not be used.

:The standard library swallows exceptions, so all hope is lost -> "So all hope is lost" i mean you already left the realm of objectiveness long before tbut this really tops it. I wrote some quite big go applications and i never had a situation where i could not handle an exception simply by adjusting my code in a way that i prevent it from even happening. Again - i feel like someone is just in search of things to complain that could simply be avoided. (also in case someone comes up with a super specific probably once in a million case, well alrways keep in mind that language design doesnt orient on the least occuring thing).

:Sometimes things aren’t UTF-8 -> I wont bother to read another whole article, if its important include an example. I have dealth with different encodings (web crawler) and i could handle all of them.

:Memory use -> What you describe is one of the design decisions im not absolutly happy with, the memory handling. But than, one of my golang projects is an in memory graph storage/database - which in one of my cases run for ~2years without restart and had about 18GB of dataset stored in it. It has a lot of mutex handling (regarding your earlier complain with exxceptions, never had one) and it btw run as backend of a internet facing service so it wasnt just fed internal data.

--------------------

Finally i wanne say : often things come down to personal preference. I could spend days raging about javascript, java, c++ or some other languages, but whatfor? Pick the language that fits your use case and your liking, dont pick one that doesnt and complain about it.

Also , just to show im not just a big "golang is the best" fanboy, because it isnt - there are things to critizize like the previously mentioned memory handling.

While i still think you just created memory leaks in your app, golang had this idea of "arenas" which would enable the code to manage memory partly himself and therefor developt much more memory efficient applications. This has stalled lately and i REALLY hope the go team will pick it up again and make this a stable thing to use. I probably would update all of my bigger codebases using it.

Also - and thats something thats annoying me ALOT beacuse it made me spend alot of hours - the golang plugin system. I wrote an architecture to orchestrate processing and for certain reasons i wanted to implement the orchestrated "things" as plugins. But the plugin system as it is rn can only be described as the torments of hell. I messed with it for like 3 years till i recently dropped the plugin functionality and added the stuff directly. Plugins are a very powerfull thing and a good plugin system could be a great thing, but in its current state i would recommend noone to touch it.

These are just two points, i could list some more but the point i want to get to is : there are real things you can critizize instead of things that you create yourself or that are language design decision that you just dont like. Im not sure if such articles are the rage of someone who just is bored or its ragebait to make people read it. Either way its not helping anyone.

comment 1y ago · link · parent

@Author i would recommend you to give

https://github.com/vasturiano/3d-force-graph

a try, for the text labels you can use

https://github.com/vasturiano/three-spritetext

its based on Three.js and creates great 3D graph visualisations GPU rendered (webgl). This could make it alot more interresting to watch because it could display actual depth (your gpu is gonne run hot but i guess worth it)

just a suggestion.

comment 1y ago · link · parent

I think, while i agree to "problem with LLMs is just with training" i also think to a certain degree we need to step back from LLM's as in text processors and to achieve "AI" as in something really intelligent we need to go more abstract back to NN and build a self learning "entity". While LLM's accomplish fascinating results, we are trying to force speech as the primary way of learning, tho this is a really limiting factor. If we would accomplish to create an NN driven AI in a virtual space which would have an simulated environment and learn from a base state like a "newborn" it still could accomplish the skills to understand language as we humans prefer to use it, tho it wouldn't be limited in "thinking" in and only based on this.

I know this is a very simple and abstract way to explain it but i think you get my point.

Towards the simulated AI learning environment, theres this interview with Jensen Huang that i can recommend in which he touches on the topic and how nvidia is working on such https://www.youtube.com/watch?v=7ARBJQn6QkM

While im not a "expert" in this topic, i might have spend quite a portion of the past 10 years in my freetime to think about it and tinker, and ill stick with the point - we need a free self-trained system to actually call it AI, and while LLM's as GPT's nowadays are powerfull tools, for me those are not "Artificial Intelligence" (intelligence from my pov must include reasoning, understanding of its own action, pro-active acting, self-awareness). And even tho the LLM's we use can "answer" to certain questions as if they would have any of those, its just pre-trained answers and they dont bring any of those (we work on reasoning but lets be fair its not that great yet).

Just my two cents.

comment 1y ago · link · parent

Am i the only one reading the question and thinking "Please keep freaking emojis out of my shell" ?

107.

The Journey to Gits: Building an In-Memory Graph Database in Go (Story)(blog.laughingman.dev ↗)

1 points · by voodooEntity · 1y ago · discuss

comment 1y ago · link · parent

Very nice work :) especially that you even support building sideways and the "hover" always is perfectly placed. Thats something that amazes me the most how clean it feels to place a block. Very good job!

comment 1y ago · link · parent

One of my absolute favorite movies.

Got the dvd still and did recently just watch it again.

comment 1y ago · link · parent

Well im working alot with json in my job and privat coding life used from all sorts of different languages, and so far i always could sort stuff out.

And well - if anyone trusts external coders he should be damned (or isnt he already for doing so? never trust external data - the golden rule...)

Your case is interesting, i worked with Neo4j years ago in a PHP project and never run into such issues, but maybe i was just lucky.

Nowadays i code mostly golang and im always making sure that whatever an external party sends me is what im expecting (validation ...).

To your point of preventing somebody to write bad code - i've given up on that. Whenever i thought the environment will enforce someone to write proper code, people proof me to be wrong be finding new ways to do the most absurd things.

But ye, its worth a try.

So - why i question such a thing? Because i'm not a fan of adding more and more 3'rd party dependencies to my projects. And while confetti might be a good thing (i never said it can't be) it wont get into any default packaging in a forseeable future meaning i have to make sure that the dependency stays stable which adds another task and liability on my end. So instead of having to deal with the devil i know (validating json data) i have to deal with a new one to eliminate the old one.

Time will tell if confetti will make its way into stable reliable state for common languages - than i might give it a try.

comment 1y ago · link · parent

So i get your point with date/time - while i may be an oldie with still preferring just having an integer seconds - but thats subjective to me.

Tho the quote for string argument i can't fully agree on. While sure in for example a json i would have to quote the values if i want them "typeless as string" - tho json is far supported everywhere and i'm able to interpret the parsed string values in whatever way i want to.

Adding a new dependency (confetti parsing) to spare out quotes doesn't seem to be worth the convenience to me.

Tho - both probably very subjective things to me.

comment 1y ago · link · parent

I see your argument tho maybe im just not getting the real use case.

Because when saying defaulting back to string and thatfor ignoring typing, wouldnt that just be the same as beeing typeless? Therefor doesn't every format support string therefor supporting typeless?

Also, in how many cases do you need to parse the same configuration in multiple different languages?

Im not saying its not useful - i just try to get the use case for this arguments.

comment 1y ago · link · parent

Why is typeless considered something good?

comment 1y ago · link · parent

I mean im not shocked by neither the fact this happend nor the content. it portraits the staff exactly as i would imagine them.

Tho i still find it kinda amusing that this is the finally proofs that the average security invested joe has a better opsec than the highest ranking us gov officials.

comment 1y ago · link · parent

I mean, if theres people that need this i won't judge - but im in tech for ~20 years now and its really not hard to formulate interview questions if you know what the target position is and also have a little of social skills.

comment 1y ago · link · parent

Some time ago i wrote a short blog article about getting started with goravel - might be interresting:

https://blog.laughingman.dev/article/Building_a_simple_demo_...

comment 1y ago · link · parent

Kinda. So first i went for a standalone application back than to use it as storage/database. This part is archived now. it was released under: https://github.com/voodooEntity/slingshotdb

At this point i think its important to mention that its nativly an in-memory graph database/storage.

At some point (4-5 years ago) i decided to change the way i handle it. Since im using the storage in many private projects, and there was no real traction (while also maintaining a database is quite some work) i decided i gonne change the way i handle it away from a standalone database to a library that works as an in-memory graph storage.

Also i added a custom query language including builder (the queries are 100% json compatible so you can in theory build queries from whatever language and transmit it via json.

The library is released under : https://github.com/voodooEntity/gits

Currently im completly reworking the query parser but since this is a privat project and im the only maintainer it may take some to to finish it. The update will takle some smaller bugs in the query parser that can occur on very complex nested queries and also will optimize query speeds. I cant provide a date when the update will occure i only can say it will (because i need it myself).

Finally said: The strength of gits is to be very fast (hence in memory handling) and easy to use from golang. Its threadsafe by default.

comment 1y ago · link · parent

I didnt look into it yet but i already wanted to say - cuz of curiosity i build my own graph database in golang :) and i learned alot. so i absolutly understand why you did it and what experiences you probably made on the way :D

congratz !

comment 1y ago · link · parent

ye clickbait first i saw was pricing. this should be deleted (thread)

comment 1y ago · link · parent

We build an Infrastructure with about 6 microservices and Kafka as main message queue (job queue).

The problem the author describes is 100% true and if you are scaled with enaugh workers this can turn out really bad.

While not beeing the only issue we faced (others are more environment/project-language specific) we got to a point where we decided to switch from kafka to rabbitmq.

123456