
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
code.afis.me/logging
go get code.afis.me/logging
package main
import (
"code.afis.me/logging"
)
var logger *logging.Logger
var maxlogsize int64 = 10000
func init() {
logger := logging.NewLogger("test", []string{"/code.afis.me/logging/"})
// if you store logs
store := logging.NewLogsStore(maxlogsize)
logger.OutputHandler = func(ps *logging.PushLogs) {
store.Store(true, ps.ID, ps)
}
// end if you store logs
}
func main() {
err := fmt.Errorf("Hello")
// just display error output
logger.Error(err)
// if error not nil, then run os.Exit(2)
logger.Error(err).Quit(err)
logger.Debug("Hello from golang")
logger.Warning("Hello from golang")
logger.Success("Hello from golang")
}
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.