René's URL Explorer Experiment


Title: Consider additional adapt Ops between FunctionalTypes · Issue #47 · scijava/scijava · GitHub

Open Graph Title: Consider additional adapt Ops between FunctionalTypes · Issue #47 · scijava/scijava

X Title: Consider additional adapt Ops between FunctionalTypes · Issue #47 · scijava/scijava

Description: Currently scijava-ops has support for the following adaptations: Computers to Functions Functions to Computers Inplaces to Functions @ctrueden and I have discussed (several times) why the other three conversions have not been implemented...

Open Graph Description: Currently scijava-ops has support for the following adaptations: Computers to Functions Functions to Computers Inplaces to Functions @ctrueden and I have discussed (several times) why the other thr...

X Description: Currently scijava-ops has support for the following adaptations: Computers to Functions Functions to Computers Inplaces to Functions @ctrueden and I have discussed (several times) why the other thr...

Opengraph URL: https://github.com/scijava/scijava/issues/47

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider additional adapt Ops between FunctionalTypes","articleBody":"Currently scijava-ops has support for the following `adapt`ations:\r\n* `Computer`s to `Function`s\r\n* `Function`s to `Computer`s\r\n* `Inplace`s to `Function`s\r\n\r\n@ctrueden and I have discussed (*several* times) why the other three conversions have not been implemented. I think it a good idea to put the discussion here for posterity (and because I found myself again asking why we do not have these):\r\n\r\n* `Computer` to `Inplace`: Suppose we have a `double[]` and want to mutate this array with `math.sqrt`. Such a converter might look like\r\n```java\r\n@Plugin(type = Op.class, name = \"adapt\")\r\npublic class CompToInplaceAdaptor implements Function\u003cComputers.Arity1\u003cIO, IO\u003e, Inplaces.Arity1\u003cIO\u003e\u003e {\r\n\r\n  @OpDependency(name = \"copy\")\r\n  private Function\u003cIO, IO\u003e copyOp;\r\n\r\n  public Inplaces.Arity1\u003cIO\u003e apply (final Computers.Arity1\u003cIO, IO\u003e computer) {\r\n    return (io) -\u003e {\r\n      IO copy = copyOp.apply(io);\r\n      computer.compute(copy, io);\r\n    };\r\n  }\r\n};\r\n```\r\n\r\n* `Inplace` to `Function`: I cannot really think of a use case for this, but the general idea is that the user expects an output to be generated for them, and that their input will not be modified:\r\n```java\r\n@Plugin(type = Op.class, name = \"adapt\")\r\npublic class InplaceToFunctionAdaptor implements Function\u003cInplaces.Arity1\u003cIO\u003e, Function\u003cIO, IO\u003e\u003e {\r\n\r\n  @OpDependency(name = \"copy\")\r\n  private Function\u003cIO, IO\u003e copyOp;\r\n\r\n  public Function\u003cIO, IO\u003e apply (final Inplaces.Arity1\u003cIO\u003e inplace) {\r\n    return (in ) -\u003e {\r\n      IO copy = copyOp.apply(io);\r\n      inplace.mutate(copy);\r\n      return copy;\r\n    };\r\n  }\r\n};\r\n```\r\n\r\n* `Inplace` to `Computer`: I cannot really think of a use case for this, but the general idea is that the user expects the output of the Op to be placed in their preallocated output, and that their input will not be modified:\r\n```java\r\n@Plugin(type = Op.class, name = \"adapt\")\r\npublic class InplaceToComputerAdaptor implements Function\u003cInplaces.Arity1\u003cIO\u003e, Computers.Arity1\u003cIO, IO\u003e\u003e {\r\n\r\n  @OpDependency(name = \"copy\")\r\n  private Computers.Arity1\u003cIO, IO\u003e copyOp;\r\n\r\n  public Computers.Arity1\u003cIO, IO\u003e apply (final Inplaces.Arity1\u003cIO\u003e inplace) {\r\n    return (in, out) -\u003e {\r\n      copyOp.compute(in, out);\r\n      inplace.mutate(out);\r\n    };\r\n  }\r\n};\r\n```","author":{"url":"https://github.com/gselzer","@type":"Person","name":"gselzer"},"datePublished":"2020-07-01T13:58:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/47/scijava/issues/47"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:259982df-0407-3586-fa20-6a02a64daab5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idABBE:2C3E22:198B18A:21093CA:696B2F68
html-safe-noncec07ca96c8414e64c35d03a022886acc57d52545c0b24163dcdaeab424acc5855
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkJFOjJDM0UyMjoxOThCMThBOjIxMDkzQ0E6Njk2QjJGNjgiLCJ2aXNpdG9yX2lkIjoiNDcwNzMzNDgxMTc2Njc0MTUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1db1007d9e6575aa282a0d7a8cab7f0995cb4c7261e4ff0905ad1dbfc5e2a38b
hovercard-subject-tagissue:649004948
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava/47/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5d50f29217367f2a77f2496fdbe60890aedcad6989f2d670fff00e60f2fe8554/scijava/scijava/issues/47
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5d50f29217367f2a77f2496fdbe60890aedcad6989f2d670fff00e60f2fe8554/scijava/scijava/issues/47
og:image:altCurrently scijava-ops has support for the following adaptations: Computers to Functions Functions to Computers Inplaces to Functions @ctrueden and I have discussed (several times) why the other thr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegselzer
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/scijava/scijava git https://github.com/scijava/scijava.git
octolytics-dimension-user_id1262770
octolytics-dimension-user_loginscijava
octolytics-dimension-repository_id85618439
octolytics-dimension-repository_nwoscijava/scijava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id85618439
octolytics-dimension-repository_network_root_nwoscijava/scijava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/scijava/scijava/issues/47#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscijava%2Fissues%2F47
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscijava%2Fissues%2F47
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scijava%2Fscijava
Reloadhttps://github.com/scijava/scijava/issues/47
Reloadhttps://github.com/scijava/scijava/issues/47
Reloadhttps://github.com/scijava/scijava/issues/47
scijava https://github.com/scijava
scijavahttps://github.com/scijava/scijava
Notifications https://github.com/login?return_to=%2Fscijava%2Fscijava
Fork 0 https://github.com/login?return_to=%2Fscijava%2Fscijava
Star 8 https://github.com/login?return_to=%2Fscijava%2Fscijava
Code https://github.com/scijava/scijava
Issues 63 https://github.com/scijava/scijava/issues
Pull requests 1 https://github.com/scijava/scijava/pulls
Actions https://github.com/scijava/scijava/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/scijava/scijava/security
Please reload this pagehttps://github.com/scijava/scijava/issues/47
Insights https://github.com/scijava/scijava/pulse
Code https://github.com/scijava/scijava
Issues https://github.com/scijava/scijava/issues
Pull requests https://github.com/scijava/scijava/pulls
Actions https://github.com/scijava/scijava/actions
Security https://github.com/scijava/scijava/security
Insights https://github.com/scijava/scijava/pulse
New issuehttps://github.com/login?return_to=https://github.com/scijava/scijava/issues/47
New issuehttps://github.com/login?return_to=https://github.com/scijava/scijava/issues/47
Consider additional adapt Ops between FunctionalTypeshttps://github.com/scijava/scijava/issues/47#top
https://github.com/gselzer
unscheduledhttps://github.com/scijava/scijava/milestone/2
https://github.com/gselzer
https://github.com/gselzer
gselzerhttps://github.com/gselzer
on Jul 1, 2020https://github.com/scijava/scijava/issues/47#issue-649004948
@ctruedenhttps://github.com/ctrueden
gselzerhttps://github.com/gselzer
SciJava Ops Paper #2: Polyglothttps://github.com/orgs/scijava/projects/2
unscheduledNo due datehttps://github.com/scijava/scijava/milestone/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.