avernet
AI and the Human Voice
The AI coding divide: craft lovers vs. result chasers
Why total fertility rate doesn't reflect the children number women will have
Re:Useful built-in macOS command-line utilities
on Wednesday November 06, 2024 @03:24PM (#42068766)
Someone needs to create a brew formula for `hear`.
Re:Show HN: Repogather – copy relevant files to clipboard for LLM codi...
on Thursday September 12, 2024 @11:34AM (#41522076)
And how does repogather do it? From the README, it looks to me like it might provide the content of each file to the LLM to gauge its relevance. But this would seem prohibitively expensive on anything that isn't a very small codebase (the project I'm working on has on the order of 400k SLOC), even with gpt-4o-mini, wouldn't it?
Re:Ask HN: What's the fastest tool for basic CRUD?
on Monday January 20, 2020 @02:34PM (#22101468)
Yes, Form Builder, in Orbeon Forms, allows you to create a page with form fields, use the provided values to call a REST/CRUD API, and show the result on that page. You can try that out for yourself on demo.orbeon.com, or download the software and run it locally.
There is an open source (LGPL) Community Edition, but the services & actions feature you need for this is only available in the Professional Edition. This being said, if you just need this for your own local testing, you can get a trial license (automatic process, valid 3 months, no limit on number of licenses you get), and have fun with it.
Bias: I'm one of the Orbeon Forms developers ;). ‑Alex
TEDx Portsmouth: How to hack your biology and be in the zone every single day
Scala vs. Go: The perspective of a developer with experience with both
Re:Transducers are coming to Clojure
on Thursday August 07, 2014 @01:45PM (#8149033)
Re:Transducers are coming to Clojure
on Wednesday August 06, 2014 @08:13PM (#8145614)
OK, maybe we're getting somewhere. Let me try to write this `map`, just to see. I'm using Scala, so I can put some types, and have the compiler yell at me if I'm doing something overtly wrong (I need all the help I can get!).
For clarity, let's define a type alias for reducers:
type Reducer[X, A] = (X, A) ⇒ X
Let's define `map` to match the type definition you provided. And with that type definition, I only see one way in which the function can be implemented. So it must be: def map[X, A, B](f: A ⇒ B): (Reducer[X, B] ⇒ Reducer[X, A]) =
(redB: Reducer[X, B]) ⇒ (x: X, a: A) ⇒ redB(x, f(a))
How can I use this? Let's try the following: def addup(zero: Int, a: List[Int]) = a.foldLeft(zero)(_ + _)
def parseList(a: List[String]) = a.map(_.toInt)
map(parseList)(addup)(1, List("7", "8"))
This returns 16. OK, parsing the list, and adding up starting from 1. But it doesn't look to me like `map` implements anything like the usual semantic of map. It just converts the data structure, and applies the reducer. What am I missing here?
Re:Transducers are coming to Clojure
on Wednesday August 06, 2014 @03:21PM (#8144316)
Providing the signature of this new `map` function (e.g. as in Haskell's fmal http://www.haskell.org/hoogle/?hoogle=fmap), would certainly go a long way towards helping people understand what this `map` does.