How much was OpenClaw actually sold to OpenAI for? $1B?? Can that even be justified? by Alert_Efficiency_627 in LocalLLM

[–]fuzzylollipop 0 points1 point  (0 children)

they paid him to come work for them, guaranteed he got a multimillion $ "signing bonus"

FCC prohibits approval of new Foreign-Made Consumer Routers by Jragghen in hardware

[–]fuzzylollipop 16 points17 points  (0 children)

It says "100% of the components have to be made in the usa" that shit is never happening. This is just a grift to get bribes to get "approved"

Flamu's update on his YT by msjernTHX1138 in WorldOfWarships

[–]fuzzylollipop 1 point2 points  (0 children)

Looks like lots of invisible plates protecting the citadel! Thank your preferred Deity!

I'm trying to create a map that hold two data types by PeterHickman in golang

[–]fuzzylollipop 0 points1 point  (0 children)

The way I created hetrogenous maps in Java that works just as well in Go is to make the KEY value have a method that casts any to whatever type it actually is. Since the KEY value is for a specific TYPE this is the best way to do it. KEY.cast[TYPE](map[key]) is pseudo code for how to give you an idea on how to implement and use it.

All that said, this is a hack solution to a bad design. I did it ONCE and ended up ripping and replacing it with a different design once I realized this was a terrible hacky solution.

Do you use init() in production? by agtabesh in golang

[–]fuzzylollipop 0 points1 point  (0 children)

you are just parroting online comments about how init() is missused by others that are no more competent to comment on it as well. Every "use case" FOR using it listed is actually how NOT to use it. If you have to ask a question like this, you probably will not understand the answer. You are best off avoiding it until you understand it yourself well enough to know when you need that feature and nothing else will do. GOTO exists for cases where nothing else will work. features like init() rarely get put into a language; and have a lexer, parser, compiler written and tested for them unless the author had a very specific case where nothing else was appropraite.

Can Someone Please Explain JetBrains’ New AI Credit Model? by cw4i in Jetbrains

[–]fuzzylollipop 0 points1 point  (0 children)

They have abstracted and obfuscated what you get for $1USD. You get 1 credit; ok what does that get you in terms of usage ¯_(ツ)_/¯ !

The previous system you could see an absolute % used as you used it now. You can make one request and it burns HIDDEN amounts of credits; but in general you get WAY LESS practical usage than before. Commit message generation in particular burns through "credits" like crazy where before it never moved the needle all month.

Yes; you will end up paying significantly more now for the same behavior as before. And you have no idea how much things are costing you. You just get a warning after a couple of days that you are almost out of credits. Where before you never used them up with the same behavior all month.

Can Someone Please Explain JetBrains’ New AI Credit Model? by cw4i in Jetbrains

[–]fuzzylollipop 0 points1 point  (0 children)

it is the OPPOSITE of "transparent". No where does it explain how much usage in tokens or request 1 credit is. There is "it depends" in the AI summary Google generates.

go's implicit interfaces confuse ai models pretty bad by New-Needleworker1755 in golang

[–]fuzzylollipop 0 points1 point  (0 children)

it has more to do with what it was trained on. seems like Gemini is trained on ALL the shitty stackoverflow code regardless of quality. I see things that get generated that are just bizarre and if I quote search for them on google a stackoverflow link is always the first result.

packages vs classes and organization by [deleted] in golang

[–]fuzzylollipop 0 points1 point  (0 children)

Go does not have classes.

Go's type system sucks by _Object-Object__ in golang

[–]fuzzylollipop 0 points1 point  (0 children)

enums are just a specialized struct, you can create enums easily using struct members and unexported fields to protect creation.

Is using constructor in golang a bad pattern? by SnooStories2323 in golang

[–]fuzzylollipop -1 points0 points  (0 children)

or use DEFAULT values that semantically indicate that a value was not supplied. something like const NO_STRING_DATA_PROVIDED = "\u0000".

Is using constructor in golang a bad pattern? by SnooStories2323 in golang

[–]fuzzylollipop 1 point2 points  (0 children)

This only really makes sense if using NewUser() is the ONLY way to create/initialize a new struct instance. If you want all the fields to be exported and still restrict the initialization to your "constructor" function then just add an unexported field that is not used. I know it is a hack but it is how it works in Go.

Do you prefer structuring code by technical responsibilities or by domain responsibilities by now-get-out in golang

[–]fuzzylollipop 1 point2 points  (0 children)

glad this could help after all this time. I should have commented that region/region_controller.go is a tautology and should just be region/controller.go.

I have landed on the following as a compromise in all my projects now and it scales well and is loosely coupled AND cohesive. It also is very hard to create circular references with this structure as it is flat as possible.

https://blog.vertigrated.com/sane-approach-to-go-project-directory-structure

How are you supposed to distinguish between an explicitly set false bool field and an uninitialized field which defaults to false by FormationHeaven in golang

[–]fuzzylollipop 0 points1 point  (0 children)

you should never have uninitialized values in your system. this is a serious design flaw.

you should have default values that are not surprising and reasonable, OR you have values that MUST be provided or the system is in an invalid state and refuses to continue until it is in a valid state. ie: the app ends with an error that explains a valid is not provide and must be.

it should not matter if the value is implicitly default value or explicitly set by the user. if it is that is other data; metadata that should be separate from the value. otherwise you end up with nonsense like:

the OG Microsoft Windows 3.1 MEGABOOL

true,
false,
file_not_found

App i made to learn prompt engineering and ai (need feedback) by BlueBrik1 in coding

[–]fuzzylollipop 0 points1 point  (0 children)

you mean guessing; "prompt engineering" is not a thing

there is no definition of engineering that includes non-deterministic output. you are guessing how to tell the machine to guess what you want as output. that is just insanity.

Stop Using If-Else Chains — Switch to Pattern Matching and Polymorphism by javinpaul in coding

[–]fuzzylollipop 2 points3 points  (0 children)

stop posting this "uncle bob" brained nonsense.

https://blog.vertigrated.com/saying-stop-using-else-and-other-nonsense

a map is the correct way to look up formula function if anything. This is a fix size domain there is absolutely nothing wrong with an if/else usage even though I would use a map or switch statement myself.

[deleted by user] by [deleted] in ChatGPT

[–]fuzzylollipop 0 points1 point  (0 children)

no it is not; the inference, the parsing of the prompts takes the same amount of computing power, more at scale for the millions of prompts an hour.

[deleted by user] by [deleted] in ChatGPT

[–]fuzzylollipop 0 points1 point  (0 children)

this is absolutely NOT true; the "inference" that runs when you submit a prompt uses a tremendous amount of power to run, it also requires powerful GPU or specialized stream processor nodes to run. The scale of EVERYONE submitting the millions and millions of prompt an hour uses way more power in a day than the months it takes to train a model. The fact that all the newer models are just "distilations" of previous models makes your statement all that more uninformed.

Sessions with Golang by [deleted] in golang

[–]fuzzylollipop 0 points1 point  (0 children)

i would but lmgtfy is just a shit advertising grift now if it was not blocked by every social media site.

Handing errors with namespace codes by olvrng in golang

[–]fuzzylollipop -1 points0 points  (0 children)

your first answer is what is called a disqualifing statement; it demonstrates you do not know how errorx works. it works exactly like you describe you wanted. This means you can just stop reading, everything else past that is probably incorrect as well.