oslac
Re:Automated Unit Test Improvement Using Large Language Models at Meta
on Saturday February 17, 2024 @03:56AM (#39407700)
Is there still no type theoretic answer to unit testing? Does not the type or the class generally contain all the necessary information to unit test itself, assuming its a unit? That is, we should not have to even write these "theoretically". Just hit "compiler --unit_test <type>"
Re:Struggles with the Continuum
on Monday November 27, 2023 @10:08AM (#38433087)
Any number that cannot be effectively computed does not exist; there are actual hard physical limits to Numbers.
Re:Pocket: It gets worse the more you use it
on Sunday July 09, 2023 @01:16AM (#36651751)
They don't let you know this, but you can just delete your "I read this later" backlog. You're not going to finish it, or read any of it.
Re:Joplin – open-source note-taking and to-do application with sync
on Thursday July 06, 2023 @07:51AM (#36614438)
I tried a few, but (nearly) default Obsidian won me over by simplicity, ease-of-use.
Re:Functions and algorithms implemented purely with TypeScript's type ...
on Wednesday July 05, 2023 @06:31AM (#36598358)
It's also bad because you have to, as a programmer, actually type out the types a lot (compared to say, Ocaml, Haskell or Rust), and like you say, it makes it impossible to read.
Re:Principles of Imperative Programming
on Sunday June 25, 2023 @12:30PM (#36469951)
Prerequisites are mostly fake. You can just study what you need - depth first learning (assuming you are open to self-studying and this is not about academic bureaucracy)
Re:Humans Aren’t Mentally Ready for an AI-Saturated ‘Post-Truth World’
on Wednesday June 21, 2023 @12:18PM (#36420499)
This isn't a new phenomena, and does not differ at all from a normal non-tech person getting their information from Google Search. Hidden motivations for this push left as an exercise for the astute reader.
Re:Don't Use Mocks
on Tuesday June 20, 2023 @07:44AM (#36402657)
Mock has expectations about how the function is called. If you read a file from a disk, and you expect it only to be done once, a mock is "usable" in this scenario to count the number of invocations. Note that there aren't outside, observable, state changes or behavior involved in this. It is about the non-functional introspection.
Fake is just a simple implementation, like in-memory db to stand-in for a real one. In the optimal case, provided by library authors.
Re:A daytime nap is good for the brain
on Tuesday June 20, 2023 @06:15AM (#36401926)
Coffee Nap is probably amongst the top 3 refreshing things I know of.
Re:/r/startrek/ migrates to lemmy
on Thursday June 15, 2023 @10:57AM (#36341407)
For public discussion, places like Zulip, Slack and Discord are fucking abysmal since they can hardly be googled and usually have stronger circle jerking in them.
Re:The Reddit blackout will continue
on Wednesday June 14, 2023 @02:55AM (#36322376)
Only instability introduced so far was by the subs going private. For some communities that are already notoriously unstable, this is not a particularly good look and makes me reconsider things.
Re:Microsoft Bringing OpenAI’s GPT-4 AI Model to US Government Agencies
on Tuesday June 13, 2023 @11:58AM (#36312173)
This is the actual, realizable AI risk: combining several badly understood complex systems that shape populations and lives.
Not the Skynet.
Re:Ask HN: Best way to play old games that require Windows 98/XP?
on Monday June 12, 2023 @02:43PM (#36298869)
Build / buy an old enough computer.
Re:From Stacks to Trees: A new aliasing model for Rust
on Monday June 12, 2023 @02:34AM (#36289221)
This is a good intuition, Rust's references can be thought of as a r/w locks.
Re:Chat Notebooks
on Saturday June 10, 2023 @12:05AM (#36267490)
Hard to believe people look at this Chat UX with LLMs as a good interface. Look at the amount of blabbering in the example - why?
Re:We should not let the Earth overheat
on Wednesday June 07, 2023 @01:58AM (#36223374)
Governments cannot even do little local control such as inflation, and people have these fancy ideas about controlling the *temperature* of the entire Earth. Ideas about ulterior motives left as an exercise to the reader.
Re:How to Design Programs 2nd Edition
on Tuesday May 02, 2023 @05:24AM (#35785112)
Having read through the old version I cannot recommend that one either.
Re:My Thoughts on OCaml
on Tuesday April 25, 2023 @12:49PM (#35703140)
It is for these (tooling / library) reasons it is almost impossible to recommend it for any project, almost like Nix in that regard for me.
Re:How Much Can Duolingo Teach Us?
on Sunday April 23, 2023 @02:46AM (#35673955)
I would say it is minimal, the help it provides. It will not get you to B1.
Re:Ask HN: Why call it an AI company if all it does is call open AI API?
on Saturday April 15, 2023 @11:43AM (#35581651)
Why call it "OpenAI" when it is probably the biggest blackbox thing out there.
Re:Effective Spaced Repetition
on Monday April 10, 2023 @02:55PM (#35515948)
I agree.
Re:Effective Spaced Repetition
on Monday April 10, 2023 @02:46PM (#35515841)
I would not call Duolingo a language learning application. It behaves more like language mimicry application. You learn a very particular subset of the language that I'd call "Duolingo <insert lang>". This is my conclusion after using it for two non-English languages.
You seriously need a basic beginner book if starting from fresh, and use Duolingo just as a repetition tool when you can during the day
Re:Effective Spaced Repetition
on Monday April 10, 2023 @08:40AM (#35511573)
Tending to a digital garden of your own making has been the most effective for me by far. No other organization beyond that, at most hitting a random note inside a subfolder for 10-15 minutes a day.
Re:Show HN: Promptr, let GPT operate on your codebase and other useful...
on Tuesday April 04, 2023 @09:29AM (#35439252)
It sounds like a good idea to send your codebase through a MITM to OpenAI, both of these ideas I mean.
Re:Parse, Don't Validate (2019)
on Tuesday March 07, 2023 @07:13AM (#35054472)
Not a perfect example, but this can be seen (pattern match replacing if) with Kotlin's when.
Re:Parse, Don't Validate (2019)
on Tuesday March 07, 2023 @07:03AM (#35054390)
One of the best articles about programming tbh.
Re:Nix journey part 0: Learning and reference materials
on Thursday March 02, 2023 @03:03AM (#34993257)
Aha, yet another tutorial since nobody can agree on anything about it seems. I can set up a nice development environment within VSCode using development containers in like 2 or 3 clicks that I can just yeet to to my GitHub for anyone to use and you don't need this kind of PhD for it.
For an average programmer or team, this stuff needs to be heavily, massively, streamlined / centralized to a single Best Practice.
Re:Why and How I use Org Mode for my writing and more
on Tuesday February 28, 2023 @01:24PM (#34972845)
It would be nice if it was as easy to use as VSCode / Obsidian, but alas. I will not learn a second language for using it and I will not paste mystery snippets from blogs and other sources to get something done.
Re:Ask HN: Why is gain of function research allowed given possibility ...
on Monday February 27, 2023 @01:02PM (#34959742)
It is amusing how history is being now rewritten as "We All Always Agreed Lab Leak Was the Real Source".
Re:Ask HN: What are some good examples of Rust code bases to read and ...
on Sunday February 26, 2023 @08:44AM (#34945475)
rust compiler, rust-analyzer, the top rust crates (ie. rand is a great example)